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

create_dev_env: Only try to remove old dev env if it exists #2439

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

samtygier-stfc
Copy link
Collaborator

@samtygier-stfc samtygier-stfc commented Jan 2, 2025

Issue

Closes #2438

Description

Normally it is safe to try to remove a non existent environment, but in some cases it causes an error. This adds a check, and only removes the env if it exists.

This should fix docker builds.

Testing & Acceptance Criteria

Check if the build docker workflow (Build & Publish Docker Ubuntu18 & CentOS7) succeeds on the PR

Documentation

Release notes

Normally it is safe to try to remove a non existent environment, but in some cases it causes an error. This adds a check, and only removes the env if it exists.
@samtygier-stfc samtygier-stfc added the rebuild_docker 🐋 Add if you want to force rebuild docker images (ONLY IF MERGING INTO MAIN) label Jan 2, 2025
@coveralls
Copy link

Coverage Status

coverage: 73.668%. remained the same
when pulling 5c5890f on 2438-dev-env-fix
into 144797b on main.

@samtygier-stfc samtygier-stfc marked this pull request as ready for review January 3, 2025 12:28
@ashleymeigh2 ashleymeigh2 enabled auto-merge January 3, 2025 13:55
@ashleymeigh2 ashleymeigh2 disabled auto-merge January 3, 2025 13:56
@ashleymeigh2 ashleymeigh2 self-requested a review January 3, 2025 13:56
Copy link
Collaborator

@ashleymeigh2 ashleymeigh2 left a comment

Choose a reason for hiding this comment

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

This fix seems solid like should work, but we’ll need to see if the issue reoccurs.

@ashleymeigh2 ashleymeigh2 added this pull request to the merge queue Jan 3, 2025
Merged via the queue into main with commit a5a16bb Jan 3, 2025
9 checks passed
@ashleymeigh2 ashleymeigh2 deleted the 2438-dev-env-fix branch January 3, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rebuild_docker 🐋 Add if you want to force rebuild docker images (ONLY IF MERGING INTO MAIN)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker builds failing on main
3 participants