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

Adds -run as an input to the analyzer #1005

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Conversation

natalieparellano
Copy link
Member

Fixes #995

@natalieparellano natalieparellano requested a review from a team as a code owner February 9, 2023 19:32
@natalieparellano
Copy link
Member Author

@joe-kimmel-vmw this might intersect a bit with the changes in #994, but I'll hold off on trying to merge this one until that one is through

@natalieparellano
Copy link
Member Author

This also needs to include -run as an input to the creator

@natalieparellano natalieparellano marked this pull request as draft February 9, 2023 19:49
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #1005 (f5dbf38) into main (5382f32) will increase coverage by 0.02%.
The diff coverage is 80.40%.

❗ Current head f5dbf38 differs from pull request most recent head aa1765c. Consider uploading reports for the commit aa1765c to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1005      +/-   ##
==========================================
+ Coverage   64.74%   64.76%   +0.02%     
==========================================
  Files          86       86              
  Lines        6179     6219      +40     
==========================================
+ Hits         4000     4027      +27     
- Misses       1799     1808       +9     
- Partials      380      384       +4     
Flag Coverage Δ
os_linux 64.22% <80.40%> (+0.03%) ⬆️
os_windows 59.13% <80.40%> (+0.06%) ⬆️
unit 64.22% <80.40%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@joe-kimmel-vmw
Copy link
Contributor

... but I'll hold off on trying to merge this one ...
Maybe? Let's check in again next week; today I feel like I'm just adding scope to that other PR :)

- Also adds unit tests for create inputs

Signed-off-by: Natalie Arellano <[email protected]>
Comment on lines -82 to -90

when("layers directory is provided", func() {
it("writes analyzed.toml at the layers directory", func() {
inputs.LayersDir = "some-layers-dir"
err := platform.ResolveInputs(platform.Analyze, &inputs, logger)
h.AssertNil(t, err)
h.AssertEq(t, inputs.AnalyzedPath, filepath.Join("some-layers-dir", "analyzed.toml"))
})
})
Copy link
Member Author

Choose a reason for hiding this comment

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

This test was repeated in this file

@natalieparellano natalieparellano marked this pull request as ready for review February 9, 2023 21:37
@natalieparellano
Copy link
Member Author

@joe-kimmel-vmw I checked the merge conflict - and thankfully it's not as bad as I thought, just some log messages that were updated in analyzer.go. I'll go ahead and merge this one so that I can pick up other issues in the "extensions" track

@natalieparellano natalieparellano merged commit 014cceb into main Feb 13, 2023
@natalieparellano natalieparellano deleted the runext/analyze-995 branch February 13, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC #0105] Analyzer changes for run image extension (Dockerfiles phase 3)
3 participants