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

Extend the process env with new envvars rather than wholesale replacement #497

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

addyess
Copy link
Contributor

@addyess addyess commented Dec 3, 2024

Environmental variables from the runner should be extended rather than replaced in exec calls

BugFix for #496

Overview

actions/exec when called with env will replace all the environment variables as evidenced here. Instead, we should extend the existing processes env variables with our new settings.

Rationale

Helps address missing PATH when calling charmcraft and other snap based tools.

Workflow Changes

No high level changes

Checklist

  • The contributing guide was applied
  • The PR is tagged with appropriate label (urgent, trivial, complex)

@addyess addyess requested a review from a team as a code owner December 3, 2024 16:23
@addyess
Copy link
Contributor Author

addyess commented Dec 3, 2024

@arturo-seijas and @weiiwang01 do you folks have thoughts on this one?

Copy link
Collaborator

@arturo-seijas arturo-seijas left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution :)

@addyess
Copy link
Contributor Author

addyess commented Dec 3, 2024

The integration tests failed, but seem unreleated to my changes i think

@arturo-seijas
Copy link
Collaborator

The integration tests failed, but seem unreleated to my changes i think

Rerunning

@addyess
Copy link
Contributor Author

addyess commented Dec 3, 2024

ok, the publish job MIGHT be broken now... lemme look into that one

@addyess
Copy link
Contributor Author

addyess commented Dec 3, 2024

ok, the publish job MIGHT be broken now... lemme look into that one

I think i've determined this fails because I don't have access to the secret CHARMHUB_TOKEN in this repo. There seems to be no significant reason this shouldn't work

@weiiwang01 weiiwang01 merged commit 58836b3 into canonical:main Dec 3, 2024
78 of 80 checks passed
@addyess addyess deleted the issue/496/extend-process-env branch December 3, 2024 18:30
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.

3 participants