Skip to content

Explicitly check for existence of cset-dev environment when running development CSET#1524

Merged
James Frost (jfrost-mo) merged 1 commit into
mainfrom
app_env_wrapper_fix_env_fallback
Jul 24, 2025
Merged

Explicitly check for existence of cset-dev environment when running development CSET#1524
James Frost (jfrost-mo) merged 1 commit into
mainfrom
app_env_wrapper_fix_env_fallback

Conversation

@jfrost-mo

Copy link
Copy Markdown
Member

When cset would fail, it exited non-zero which then triggered the else branch, causing an attempt to run with no environment. This would always also fail, so it preserved the workflow behaviour, but it produced some messy and confusing logs.

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

When cset would fail, it exited non-zero which then triggered the else
branch, causing an attempt to run with no environment. This would always
also fail, so it preserved the workflow behaviour, but it produced some
messy and confusing logs.
@jfrost-mo James Frost (jfrost-mo) added bug Something isn't working small Small issue that should be quick to resolve labels Jul 22, 2025
@jfrost-mo James Frost (jfrost-mo) changed the title Explicitly check for existence of env when running development CSET Explicitly check for existence of cset-dev environment when running development CSET Jul 22, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Coverage

@daflack David Flack (daflack) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

@jfrost-mo James Frost (jfrost-mo) merged commit 6351b53 into main Jul 24, 2025
8 checks passed
@jfrost-mo James Frost (jfrost-mo) deleted the app_env_wrapper_fix_env_fallback branch July 24, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working small Small issue that should be quick to resolve

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants