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(ci): only run jobs when their ancestors on prevoius stages succeeded #5412

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Jun 5, 2023

Issue being fixed or feature implemented

We should not be running jobs if their ancestors failed. This was broken with the introduction of FAST_MODE/.skip-in-fast-mode-template I think (via #3635).

What was done?

Adjust ci rules, make them explicit.

How Has This Been Tested?

Compare test stages:
https://gitlab.com/dashpay/dash/-/pipelines/888510672 (note: some of test stage jobs were started, even though all related jobs from build stage have failed)
vs
https://gitlab.com/UdjinM6/dash/-/pipelines/888923382 (note: none of test stage jobs were started)

Breaking Changes

n/a

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@UdjinM6 UdjinM6 added this to the 20 milestone Jun 5, 2023
.gitlab-ci.yml Show resolved Hide resolved
@UdjinM6 UdjinM6 force-pushed the ci_require_success branch from 9ebbc57 to 8117721 Compare June 5, 2023 09:08
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK for squash merge

@UdjinM6 UdjinM6 merged commit 0cbf85a into dashpay:develop Jun 6, 2023
@UdjinM6 UdjinM6 deleted the ci_require_success branch June 6, 2023 08:54
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