Closed
Bug 1466627
Opened 6 years ago
Closed 6 years ago
roll-out to production Ship-it v2 -v1 sync-up
Categories
(Release Engineering :: Applications: Shipit, defect)
Release Engineering
Applications: Shipit
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mtabara, Assigned: mtabara)
References
Details
Attachments
(3 files, 4 obsolete files)
(deleted),
text/x-github-pull-request
|
jlorenzo
:
review+
mtabara
:
checked-in+
|
Details |
(deleted),
patch
|
mtabara
:
review+
mtabara
:
checked-in+
|
Details | Diff | Splinter Review |
(deleted),
text/x-review-board-request
|
rail
:
review+
mtabara
:
checked-in+
|
Details |
In bug 1461668, we tested in the staging environment how Ship-it v1 and Ship-it v2 can sync-up in terms of releases started.
Since rolling this out to production depends on Ship-it v2 rollout, am tracking the landing of corresponding patches in this bug. Will lave everything here to have at hand when the moment comes.
As far as I remember from Rail, we want to have this ready for mozilla-beta only in Q3.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee: nobody → mtabara
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment on attachment 8983133 [details]
[shipitscript] Enrich shipitscript with new behavior to talk to Ship-it v1
@JohanLorenzo
This is not urgent. We won't be shipping this for another few weeks. But I thought I'd add this to your plate since you're the original developer of this scriptworker and I tried to follow your best practices from this repo.
tl;dr - whenever we'll switch to Ship-it v2, we'll be limited to `mozilla-beta` for security reasons in the first place. Hence, we want that anything we schedule in the Shipit v2 UI, to be "synced" in the old Ship-it v1 database. For that reason, we're extending and enriching behavior in shipitscript to handle that part.
Ship-it v2 => AC (with release information as input) => schedules `release-mark-as-started` task in-tree => shipitscript (talking to Ship-it v1). This way we ensure fluenc in netflows communication as well without touching firewalls rules.
Tehnically, this job was previously performed by release-runner3 which "started the release" after querying Ship-it v1 and then "marked the release as started" as soon as the graph was scheduled. With Ship-it v2 and this extended behavior, we're basically killing release-runner3 as it's no longer needed.
Am happy to provide more insight if needed.
Attachment #8983133 -
Flags: review?(jlorenzo)
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Attachment #8983141 -
Attachment is obsolete: true
Assignee | ||
Comment 6•6 years ago
|
||
Attachment #8983219 -
Attachment is obsolete: true
Assignee | ||
Comment 7•6 years ago
|
||
Future leftovers when we're ready to switch to production:
* we may want to fix branch for project branches as it's now `maple` instead of `projects/maple`. The config comes directly from parameters.yml so for production branches things will work as expected. I strongly suspect "projects/maple" in Ship-it v1 is prepended anyway in the UI.
* we may want to fix `Submtted by` field as it's now `shipit-scriptworker-stage`. We can feed that variable by having Ship-it v2 pass it along in the AC and then to `release-mark-as-started` task
* run a general end-to-end config diff to make sure I'm not breaking mark-as-shipped task in other projects/graphs and the existing one is looking good (mark-as-started)
* uplift in-tree changes to central/beta
* land puppet changes to production and unpin the dev worker
* merge shipitscript and bump a production version
* amend the production scopes as well, similarly to what was done for staging[1] but for production this time
[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1461668#c4
Assignee | ||
Comment 8•6 years ago
|
||
Attachment #8983225 -
Attachment is obsolete: true
Comment on attachment 8983133 [details]
[shipitscript] Enrich shipitscript with new behavior to talk to Ship-it v1
https://github.com/mozilla-releng/shipitscript/pull/8#pullrequestreview-129864299
Attachment #8983133 -
Flags: review?(jlorenzo) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 11•6 years ago
|
||
Okay, latest status update.
1. The shipitscript PR is ready to be landed (handling both the mark as started behavior and mark-as-shipped)
2. The puppet patch needs to land in puppet
3. The scopes in TC have to be added in production client
4. We need to split the in-tree patch to only land the mark-as-shipped part.
5. We'll add later on the mark-as-started
All three patches that landed on maple that were successful in testing both behaviors are:
https://hg.mozilla.org/projects/maple/json-rev/1b38998d6310
https://hg.mozilla.org/projects/maple/json-rev/48d85c1f695f
https://hg.mozilla.org/projects/maple/json-rev/e9b94eca6ce5
It's also in this bug as https://bugzilla.mozilla.org/attachment.cgi?id=8983229
For mark-as-started future development when we need to roll this out.
a) branch is now fixed because its taken from head_repo
b) we may want to fix `Submtted by` field as it's now `shipit-scriptworker-stage`. We can feed that variable by having Ship-it v2 pass it along in the AC and then to `release-mark-as-started` task
Comment 12•6 years ago
|
||
mozreview-review |
Comment on attachment 8988550 [details]
[in-tree] tweak mark-as-shipped to new structure. a=release
https://reviewboard.mozilla.org/r/253798/#review260468
Attachment #8988550 -
Flags: review?(rail) → review+
Assignee | ||
Updated•6 years ago
|
Attachment #8988550 -
Attachment description: Bug 1466627 - tweak mark-as-shipped to new structure. a=release → [in-tree] tweak mark-as-shipped to new structure. a=release
Assignee | ||
Updated•6 years ago
|
Attachment #8983229 -
Attachment description: [in-tree] add release-mark-as-started kind → [in-tree] add release-mark-as-started kind and tweak mark-as-shipped
Attachment #8983229 -
Attachment is obsolete: true
Comment 13•6 years ago
|
||
Pushed by mtabara@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cd6a2bf68078
tweak mark-as-shipped to new structure. r=rail a=release
Assignee | ||
Comment 14•6 years ago
|
||
Comment on attachment 8988550 [details]
[in-tree] tweak mark-as-shipped to new structure. a=release
https://hg.mozilla.org/integration/mozilla-inbound/rev/cd6a2bf68078aa9bf41f22ddf7f71865c32458ac
Attachment #8988550 -
Flags: checked-in+
Assignee | ||
Comment 15•6 years ago
|
||
Comment on attachment 8983133 [details]
[shipitscript] Enrich shipitscript with new behavior to talk to Ship-it v1
Merged and rolled-out 2.0.0
* https://github.com/mozilla-releng/shipitscript/commit/f6355dc3ac8591f31b80c57f6371fcbc63404460
* https://github.com/mozilla-releng/shipitscript/commit/ebf86e9a55865e2e5c8e473bc94e13e659809999
Attachment #8983133 -
Flags: checked-in+
Assignee | ||
Comment 16•6 years ago
|
||
Comment on attachment 8983134 [details] [diff] [review]
[puppet] Adjust puppet to cope with Ship-it v1-v2 sync tasks
https://github.com/mozilla-releng/build-puppet/pull/91
Attachment #8983134 -
Attachment is patch: true
Attachment #8983134 -
Flags: review?(rail)
Assignee | ||
Comment 17•6 years ago
|
||
Comment on attachment 8983134 [details] [diff] [review]
[puppet] Adjust puppet to cope with Ship-it v1-v2 sync tasks
https://github.com/mozilla-releng/build-puppet/pull/91
Assignee | ||
Updated•6 years ago
|
Keywords: leave-open
Assignee | ||
Comment 18•6 years ago
|
||
I added the following prod scope:
project:releng:ship-it:server:production
as the other three:
project:releng:ship-it:server:staging
project:releng:ship-it:action:mark-as-started
project:releng:ship-it:action:mark-as-shipped
were already part of moz-tree:level:3:gecko role[1].
Not ideal but we can revisit later. More of this under here[2]
[1]: https://tools.taskcluster.net/auth/scopes/project%3Areleng%3Atreescript%3Aaction%3A*/role:moz-tree%3Alevel%3A3%3Agecko
[2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1461668#c4
Assignee | ||
Comment 19•6 years ago
|
||
Comment on attachment 8983134 [details] [diff] [review]
[puppet] Adjust puppet to cope with Ship-it v1-v2 sync tasks
r+ by rail in PR. Landed
https://github.com/mozilla-releng/build-puppet/commit/f99da301119cffb6785a2ebfa5e9118099fbb3da
Attachment #8983134 -
Flags: review?(rail) → review+
Assignee | ||
Updated•6 years ago
|
Attachment #8983134 -
Flags: checked-in+
Assignee | ||
Comment 20•6 years ago
|
||
Comment on attachment 8988550 [details]
[in-tree] tweak mark-as-shipped to new structure. a=release
https://hg.mozilla.org/releases/mozilla-beta/rev/5ba0247433fe2e6578410367a9560a8df772cbc1
https://hg.mozilla.org/releases/mozilla-release/rev/6bd52895ade2aa632750ef931c5e0f56a1ef0b42
https://hg.mozilla.org/releases/mozilla-esr60/rev/93a1b9006a731188ae6ea390282d5cc7d802c693
Assignee | ||
Comment 21•6 years ago
|
||
Okay, latest status update for when we'll roll-out the mark-as-started task to production:
All three patches that landed on maple that were successful in testing both behaviors are:
https://hg.mozilla.org/projects/maple/json-rev/1b38998d6310
https://hg.mozilla.org/projects/maple/json-rev/48d85c1f695f
https://hg.mozilla.org/projects/maple/json-rev/e9b94eca6ce5
On beta the mark-as-shipped tweaks looks like this - https://hg.mozilla.org/releases/mozilla-beta/rev/5ba0247433fe
What we need to ship is maple-patches sans the beta patch ^.
For mark-as-started future development when we need to roll this out.
a) we may want to fix `Submtted by` field as it's now `shipit-scriptworker-stage`. We can feed that variable by having Ship-it v2 pass it along in the AC and then to `release-mark-as-started` task
b) anything else that doesn't look right in Ship-it v1?
Comment 22•6 years ago
|
||
bugherder |
Comment 23•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/3ca944d19017
Port bug 1466627 [tweak mark-as-shipped to new structure]. rs=bustage-fix
Assignee | ||
Comment 24•6 years ago
|
||
Want me to file a separate bug for remaining of this bug (mark-as-started logic) to be easier in the future or should I leave things be here?
Flags: needinfo?(rail)
Comment 25•6 years ago
|
||
Thunderbird's Beta (TB 62):
https://hg.mozilla.org/releases/comm-beta/rev/a90645044434e90687ceca73427647d5c08948a1
Assignee | ||
Updated•6 years ago
|
Comment 26•6 years ago
|
||
(In reply to Mihai Tabara [:mtabara]⌚️GMT from comment #24)
> Want me to file a separate bug for remaining of this bug (mark-as-started
> logic) to be easier in the future or should I leave things be here?
Sure. Would be easier to track it I guess.
Flags: needinfo?(rail)
Assignee | ||
Comment 27•6 years ago
|
||
Work here is done. Leftover (in-tree mark-as-started task to add) is tracked in bug 1475101.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Keywords: leave-open
Updated•3 years ago
|
Component: Applications: ShipIt (backend) → Applications: ShipIt
You need to log in
before you can comment on or make changes to this bug.
Description
•