-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix/556 grab side effect #568
Conversation
297f22c
to
f274811
Compare
Hm, the unpriv-setup caching does not appear to be working:
|
445fb8f
to
a30061d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #568 +/- ##
==========================================
- Coverage 57.17% 57.16% -0.01%
==========================================
Files 64 64
Lines 7521 7520 -1
==========================================
- Hits 4300 4299 -1
Misses 2479 2479
Partials 742 742 ☔ View full report in Codecov by Sentry. |
a30061d
to
f20920f
Compare
'stacker grab' was creating a 'bin/' dir in the current working directory. This fixes that and adds a test to ensure that neither grab nor build have side effects. Fixes project-stacker#566. Signed-off-by: Scott Moser <smoser@brickies.net>
f20920f
to
f0f17c2
Compare
Interesting, the failure here for test coverage is because there is 1 less line of code in a file, but the same coverage (both the removed and the added lines were tested).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks |
fix: Remove the bin/ dir that was created as a side-effect of grab.
'stacker grab' was creating a 'bin/' dir in the current working
directory. This fixes that and adds a test to ensure that neither
grab nor build have side effects.
Fixes Bug: stacker grab has side-effects creates bin/ #566.
test: separate detection of overlay support from every stacker run.
In unpriv test mode, we were running 'stacker testsuite-check-overlay'
every time we ran stacker.
That was causing me confusion and also is just wasteful, as the ability
to use overlay does not change within the course of a test run.
This introduces 'suite_setup' which ideally would be used by the bats
'suite_setup' functionality. However, the Ubuntu 22.04 verison of bats
does not have that functionalty.
When run with '-j', this code will run more than once, but will worst
case only run once per test, rather than once per invocation of
'stacker' (some tests invoke stacker many times).
Also, adjust output of run_stacker function to be more useful
than just "Debug mode: "