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

fix: Conda queue env erroring in activate/deactivate cases #52

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

mwiebe
Copy link
Contributor

@mwiebe mwiebe commented Nov 20, 2024

What was the problem/requirement? (What/Why)

When testing conda environments that include the compilers provided by conda-forge, some of the activate/deactivate scripts reference environment variables that aren't set, and fail due to the set -u option.

What was the solution? (How)

  • Turn off strict behavior for undefined variables when activating/deactivating during environment exit.
  • Installing with package update can result in activation, so turn off strict behavior then as well.

What is the impact of this change?

Customers using the example queue environment will have more reliable operation.

How was this change tested?

Deployed as a queue environment, and confirmed some cases that were failing now succeed.

Was this change documented?

N/A


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* Turn off strict behavior for undefined variables when
  activating/deactivating during environment exit.
* Installing with package update can result in activation, so turn off
  strict behavior then as well.

Signed-off-by: Mark Wiebe <[email protected]>
@mwiebe mwiebe requested a review from a team as a code owner November 20, 2024 19:42
@mwiebe mwiebe merged commit 20b130b into aws-deadline:mainline Nov 20, 2024
2 checks passed
@mwiebe mwiebe deleted the env-cleanup-fix branch November 20, 2024 20:15
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