Closed Bug 1762712 Opened 2 years ago Closed 2 years ago

Exception: In build kind task 'linux64/opt': voluptuous.error.MultipleInvalid: extra keys not allowed @ data['optimization']['skip-suite-only']

Categories

(Thunderbird :: Upstream Synchronization, defect, P5)

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
105 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: intermittent-bug-filer, Assigned: rjl)

References

Details

(Keywords: intermittent-failure)

Attachments

(4 files)

Summary: Intermittent Exception: In build kind task 'linux64/opt': voluptuous.error.MultipleInvalid: extra keys not allowed @ data['optimization']['skip-suite-only'] → Exception: In build kind task 'linux64/opt': voluptuous.error.MultipleInvalid: extra keys not allowed @ data['optimization']['skip-suite-only']

It seems to be 234316412a0e922ba161c1c33a3a085fc9177a31.

IIRC, set_optimization_schema() only worked because of the module loading order. It looks like gecko_taskgraph.transforms.task is getting imported earlier now, which means it's got a different copy of OptimizationSchema that's missing the additional thunderbird_optimizations.

I'm landing a bustage-fix, but it's pretty bad.

Andrew, could you help out with set_optimization_schema() not working anymore?

Flags: needinfo?(ahal)
Keywords: leave-open
Target Milestone: --- → 100 Branch
Attached patch temp_fix.patchSplinter Review
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/20f64f53be8e
Temporary fix for broken set_optimization_schema(). rs=bustage-fix

Interesting, I don't really understand why bug 1748929 would change the import order of transforms/task.py or anything related to optimizations.. :/. Afaict that bug doesn't add any new modules to anything's import scope.

Sorry, I don't really understand the cause of the issue to be much help here.

Flags: needinfo?(ahal)
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/6a9de01129d7
Fix taskgraph actions. rs=bustage-fix CLOSED TREE DONTBUILD

Second patch is to fix action triggering. Merge-day work was completely busted.

Attachment #9270577 - Attachment is patch: true

The "initial" verifications import gecko_taskgraph.transforms.job.registry.
Doing so brings in gecko.transforms.task as a depdendency, which imports
gecko_taskgraph.optimize.schema.OptimizationSchema.

Thunderbird's call to gecko_taskgraph.optimize.schema.set_optimization_schema()
needs to happen before gecko.transforms.task is loaded so that Thunderbird-
specific optimizations are registered. That happens when graph_config.register()
is called, so to fix the situation, run the "initial" verifications after
calling graph_config.register().

The import order problem has been identified, so this horrible hack can be
removed. The m-c fix also triggers a check for job.run_using transform
functions that didn't work quite right for comm_taskgraph's toolchain scripts
so documentation files have been adjusted accordingly.

This patch depends on D152446 landing in mozilla-central.

Assignee: nobody → rob
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/512ec3596694
Port bug 1779646: Reorganize taskgraph transforms docs. rs=docs-only DONTBUILD CLOSED TREE
Attachment #9286507 - Attachment description: Bug 1762712 - Remove hacky mangling of sys.modules in comm_taskgraph.register. r=dandarnell → Bug 1762712 - Remove hacky mangling of sys.modules in comm_taskgraph.register. r=#thunderbird-reviewers
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/integration/autoland/rev/149dba9e0526
Run "initial" taskgraph verifications after graph_config.register(). r=taskgraph-reviewers,ahal
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4115ac28079f
Remove hacky mangling of sys.modules in comm_taskgraph.register. r=mkmelin
Status: NEW → RESOLVED
Closed: 2 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: 100 Branch → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: