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

Allow cleanup(test) to run regardless of deployment #40

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

rtorrero
Copy link
Contributor

@rtorrero rtorrero commented Jun 27, 2024

This PR allows the cleanup playbook to be executed regardless if the deployment playbook finishes successfully or not.

The playbooks are tested in persistent machines running in the cloud and when a deployment run doesn't finish successfully, the machine is left in an undetermined state that might affect the execution of the next CI run. This PR:

  • Separates the cleanup in a separate job to see more clearly if it executed correctly
  • Adds a continue-on-error: true to the deployment playbook so that the clean playbook still gets executed if it fails

@rtorrero rtorrero marked this pull request as ready for review June 27, 2024 11:40
@rtorrero rtorrero marked this pull request as draft June 27, 2024 11:53
@rtorrero rtorrero marked this pull request as ready for review June 27, 2024 14:16
@rtorrero rtorrero added the enhancement New feature or request label Jun 27, 2024
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@arbulu89
Copy link
Contributor

arbulu89 commented Jul 15, 2024

@EMaksy @CDimonaco Now this is ready to me reviewed.
It simply runs the cleanup even if the first installation playbook fails

@arbulu89 arbulu89 requested review from CDimonaco and EMaksy and removed request for CDimonaco and EMaksy July 15, 2024 14:58
Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

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

LGTM, just left a question :)

@@ -25,9 +25,9 @@ jobs:

build-and-push-container-images:
name: Build and push container images
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
Copy link
Member

Choose a reason for hiding this comment

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

Why the change to a lower version ?
Ubuntu 22 to Ubuntu 20 ?
Something python related?

Copy link
Contributor

Choose a reason for hiding this comment

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

@arbulu89 arbulu89 merged commit 57169f5 into main Jul 16, 2024
8 checks passed
@arbulu89 arbulu89 deleted the always-run-cleanup branch July 16, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

4 participants