Repository navigation
ci: Pass cache env vars through to integ tests. - #2427
Merged
Merged
Conversation
TomChv
reviewed
May 11, 2022
TomChv
left a comment
Member
There was a problem hiding this comment.
That's a good idea, I left a little comment
Comment on lines
117
to
120
Member
There was a problem hiding this comment.
I understand those changes but it will miss GITHUB environment to works in GitHub Actions no?
Contributor
Author
There was a problem hiding this comment.
Doh 🤦 Thanks, good catch, fixed that.
It's ironic because I was working on ways to improve our visibility into cache hits+misses during CI runs when I noticed this issue and figured I'd fix it up quickly.
The DAGGER_CACHE_{FROM,TO} env vars are set by a GHA step and previously
were just passed transparently to our integ tests. However, after
updating those tests to run in dagger, they were not being passed along
anymore.
This just updates ci.cue to explicitly pass them to the integ test
invocation.
In the long-term, it would probably be better to move the setting of
these env vars from a GHA step to within ci.cue. However, right now
since porting the universe tests to run inside dagger is still WIP it's
probably cleaner to just leave that in GHA rather than maintain it in
two places. Once everything's in dagger, it can migrate to ci.cue.
Signed-off-by: Erik Sipsma <[email protected]>
aluzzardi
approved these changes
May 12, 2022
TomChv
approved these changes
May 12, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The DAGGER_CACHE_{FROM,TO} env vars are set by a GHA step and
previously were just passed transparently to our integ tests. However,
after updating those tests to run in dagger, they were not being passed
along anymore.
This just updates ci.cue to explicitly pass them to the integ test
invocation.
In the long-term, it would probably be better to move the setting of
these env vars from a GHA step to within ci.cue. However, right now
since porting the universe tests to run inside dagger is still WIP it's
probably cleaner to just leave that in GHA rather than maintain it in
two places. Once everything's in dagger, it can migrate to ci.cue.
Signed-off-by: Erik Sipsma [email protected]
cc @samalba