Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add cli test to validate multiple manifest generation paths result in comparable output #1642

Merged
merged 55 commits into from
Jan 15, 2025

Conversation

btlghrants
Copy link
Collaborator

@btlghrants btlghrants commented Jan 9, 2025

Description

Adds a new npm run test:int (int == "integration") script to invoke a new style of test -- integration tests -- where "integration" means something like "wider in scope than unit tests" but "not requiring a full K8s cluster" (general idea is to have a nice place for non-k8s-required tests to land (e.g. client-side pepr CLI commands, like init / build).

Related Issue

Fixes #1654

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@btlghrants btlghrants changed the title test: add integration-style cli test to validate that multiple manifest generation paths result in comparable output test: add cli test to validate multiple manifest generation paths result in comparable output Jan 9, 2025
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.52%. Comparing base (d5322f4) to head (26706f6).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1642   +/-   ##
=======================================
  Coverage   79.52%   79.52%           
=======================================
  Files          48       48           
  Lines        2090     2090           
  Branches      460      460           
=======================================
  Hits         1662     1662           
- Misses        398      426   +28     
+ Partials       30        2   -28     

see 8 files with indirect coverage changes

@btlghrants btlghrants self-assigned this Jan 10, 2025
@btlghrants btlghrants added this to the v0.43.0 milestone Jan 10, 2025
Copy link
Collaborator

@samayer12 samayer12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a chance to review pepr.ts and resource.ts, a few questions about implementation details. The overall purpose of the files makes sense.

@btlghrants btlghrants force-pushed the 1640_helm_templates_correspond branch from 95257aa to 07a02c9 Compare January 14, 2025 20:46
samayer12 and others added 3 commits January 15, 2025 14:00
## Description

This PR provides a fix to feedback on #1642 


## Related Issue

Relates to #1640 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging
- [x] Unit,
[Journey](https://github.com/defenseunicorns/pepr/tree/main/journey),
[E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples),
[docs](https://github.com/defenseunicorns/pepr/tree/main/docs),
[adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or
updated as needed
- [x] [Contributor Guide
Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request)
followed
@samayer12 samayer12 requested a review from a team January 15, 2025 20:50
Copy link
Collaborator

@samayer12 samayer12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big lift! There are some areas to consolidate and discussions around which helpers we should own vs. list as devdeps, but that's for later.

@btlghrants btlghrants added this pull request to the merge queue Jan 15, 2025
Merged via the queue into main with commit 64d6e41 Jan 15, 2025
48 checks passed
@btlghrants btlghrants deleted the 1640_helm_templates_correspond branch January 15, 2025 21:21
tamirazrab pushed a commit to tamirazrab/pepr that referenced this pull request Jan 17, 2025
…ult in comparable output (defenseunicorns#1642)

## Description

Adds a new `npm run test:int` (int == "integration") script to invoke a
new style of test -- integration tests -- where "integration" means
something like "wider in scope than unit tests" but "not requiring a
full K8s cluster" (general idea is to have a nice place for
non-k8s-required tests to land (e.g. client-side `pepr` CLI commands,
like init / build).

## Related Issue

Fixes defenseunicorns#1654 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging
- [x] Unit,
[Journey](https://github.com/defenseunicorns/pepr/tree/main/journey),
[E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples),
[docs](https://github.com/defenseunicorns/pepr/tree/main/docs),
[adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or
updated as needed
- [x] [Contributor Guide
Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request)
followed

---------

Co-authored-by: Sam Mayer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Convert cli-test workflow into locally-runnable test harness
2 participants