Skip to content

ci: Pass cache env vars through to integ tests. - #2427

Merged
TomChv merged 1 commit into
dagger:mainfrom
sipsma:set-cache-env
May 12, 2022
Merged

TomChv merged 1 commit into
dagger:mainfrom
sipsma:set-cache-env

Conversation

@sipsma

@sipsma sipsma commented May 10, 2022

Copy link
Copy Markdown
Contributor

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

@sipsma
sipsma requested a review from a team as a code owner May 10, 2022 22:54
@sipsma
sipsma requested review from grouville and shykes May 10, 2022 22:54
@TomChv TomChv added the area/ci label May 11, 2022

@TomChv TomChv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's a good idea, I left a little comment

Comment thread ci.cue Outdated
Comment on lines 117 to 120

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand those changes but it will miss GITHUB environment to works in GitHub Actions no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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]>
@sipsma
sipsma requested a review from TomChv May 11, 2022 18:32
@TomChv
TomChv merged commit 5c78a0e into dagger:main May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants