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

ci: split 'beetmover-apt' into promote and ship tasks #9638

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

ahal
Copy link
Collaborator

@ahal ahal commented Jun 4, 2024

Description

We want to have two tasks, one for promote and one for ship. The bucket / scopes that gets used should depend only on which of these tasks is running, and the tasks should then get filtered out at the target phase.

We also remove the 'filter_shipping' transforms because these tasks will get filtered at the target phase. The generation (aka full) phase doesn't need to be doing any pre-filtering of its own.

Checklist

  • My code follows the style guidelines for this project
  • I have not added any packages that contain high risk or unknown licenses (GPL, LGPL, MPL, etc. consult with DevOps if in question)
  • I have performed a self review of my own code
  • I have commented my code PARTICULARLY in hard to understand areas
  • I have added thorough tests where needed

We want to have two tasks, one for promote and one for ship. The bucket
/ scopes that gets used should depend only on which of these tasks is
running, and the tasks should then get filtered out at the target phase.

We also remove the 'filter_shipping' transforms because these tasks will
get filtered at the target phase. The generation (aka full) phase
doesn't need to be doing any pre-filtering of its own.
@ahal ahal self-assigned this Jun 4, 2024
@ahal ahal requested a review from a team as a code owner June 4, 2024 18:11
@ahal ahal requested review from hneiva and a team and removed request for a team June 4, 2024 18:11
Copy link
Contributor

@bhearsum bhearsum left a comment

Choose a reason for hiding this comment

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

This is fine, but one thing I noticed while sanity checking is that we end up with two attributes for shipping phase:

beetmover-apt-promote-linux64-deb:
  attributes:
    always_target: false
    kind: beetmover-apt
    primary-kind-dependency: beetmover-promote
    run_on_projects:
    - all
    run_on_tasks_for:
    - action
    shipping-phase: promote-client
    shipping_phase: null

Elsewhere (eg: this Firefox release promotion action) we only have the underscore version in attributes. We should probably adjust this repo to only use the underscore version in attributes at some point, but it ought not to block this work.

@ahal
Copy link
Collaborator Author

ahal commented Jun 5, 2024

This is fine, but one thing I noticed while sanity checking is that we end up with two attributes for shipping phase

Yeah I noticed that too, the underscore version gets added by the task.py transforms. I think it's always been the case, and unfortunately I made mozilla-taskgraph use the dash version (as I implemented most of mozilla-taskgraph to suppor this repo).

I agree we should switch to underscore.. it'll require a major bump to mozilla-taskgraph though (sigh)

@ahal ahal enabled auto-merge (squash) June 5, 2024 18:55
@hneiva
Copy link
Collaborator

hneiva commented Jun 7, 2024

I have a feeling the "Add landing label" job is failing because it's coming from a fork. The error suggests the permissions.pull-requests: write isn't set, but it is.

@strseb strseb disabled auto-merge June 7, 2024 17:38
@strseb strseb merged commit b223587 into mozilla-mobile:main Jun 7, 2024
111 of 114 checks passed
@ahal ahal deleted the deb_relpro branch October 29, 2024 18:47
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.

4 participants