Closed Bug 1870959 Opened 6 months ago Closed 6 months ago

Permafailing Linux snap build: 'override-build' in part 'firefox' failed with code 1 after No file to patch. Skipping patch on different files

Categories

(Firefox Build System :: Third Party Packaging, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox121 unaffected, firefox122 unaffected, firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox121 --- unaffected
firefox122 --- unaffected
firefox123 --- fixed

People

(Reporter: nataliaCs, Assigned: gerard-majax)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

49 bytes, text/x-github-pull-request
Details | Review
[task 2023-12-20T00:30:43.620Z] :: Applying patch /builds/worker/firefox-snap/patches/native-messaging-portal.patch
[task 2023-12-20T00:30:43.620Z] :: patching file modules/libpref/init/StaticPrefList.yaml
[task 2023-12-20T00:30:43.620Z] :: Hunk #1 succeeded at 15709 (offset 175 lines).
[task 2023-12-20T00:30:43.620Z] :: patching file python/mozbuild/mozbuild/mozinfo.py
[task 2023-12-20T00:30:43.620Z] :: Hunk #1 succeeded at 151 with fuzz 2 (offset 5 lines).
[task 2023-12-20T00:30:43.620Z] :: patching file testing/mozharness/configs/unittests/linux_unittest.py
[task 2023-12-20T00:30:43.620Z] :: Hunk #1 succeeded at 34 (offset 1 line).
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/NativeMessaging.sys.mjs
[task 2023-12-20T00:30:43.620Z] :: Hunk #3 succeeded at 132 (offset 3 lines).
[task 2023-12-20T00:30:43.620Z] :: Hunk #4 succeeded at 356 (offset 3 lines).
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/NativeMessagingPortal.h
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/NativeMessagingPortal.cpp
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/components.conf
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/moz.build
[task 2023-12-20T00:30:43.620Z] :: Hunk #1 succeeded at 76 (offset -1 lines).
[task 2023-12-20T00:30:43.620Z] :: Hunk #2 succeeded at 103 (offset -1 lines).
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/nsINativeMessagingPortal.idl
[task 2023-12-20T00:30:43.620Z] :: can't find file to patch at input line 967
[task 2023-12-20T00:30:43.620Z] :: Perhaps you used the wrong -p or --strip option?
[task 2023-12-20T00:30:43.620Z] :: The text leading up to this was:
[task 2023-12-20T00:30:43.620Z] :: --------------------------
[task 2023-12-20T00:30:43.620Z] :: |--- a/toolkit/components/extensions/test/xpcshell/native_messaging.ini
[task 2023-12-20T00:30:43.620Z] :: |+++ b/toolkit/components/extensions/test/xpcshell/native_messaging.ini
[task 2023-12-20T00:30:43.620Z] :: --------------------------
[task 2023-12-20T00:30:43.620Z] :: No file to patch.  Skipping patch.
[task 2023-12-20T00:30:43.620Z] :: 1 out of 1 hunk ignored
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/components/extensions/test/xpcshell/test_ext_native_messaging_portal.js
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/modules/subprocess/Subprocess.sys.mjs
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/modules/subprocess/subprocess_common.sys.mjs
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/modules/subprocess/subprocess_unix.sys.mjs
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/modules/subprocess/subprocess_win.sys.mjs
[task 2023-12-20T00:30:43.620Z] :: Hunk #1 succeeded at 168 (offset -5 lines).
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/modules/subprocess/subprocess_worker_common.js
[task 2023-12-20T00:30:43.620Z] :: can't find file to patch at input line 1534
[task 2023-12-20T00:30:43.620Z] :: Perhaps you used the wrong -p or --strip option?
[task 2023-12-20T00:30:43.620Z] :: The text leading up to this was:
[task 2023-12-20T00:30:43.620Z] :: --------------------------
[task 2023-12-20T00:30:43.620Z] :: |--- a/toolkit/modules/subprocess/subprocess_worker_unix.js
[task 2023-12-20T00:30:43.620Z] :: |+++ b/toolkit/modules/subprocess/subprocess_worker_unix.js
[task 2023-12-20T00:30:43.620Z] :: --------------------------
[task 2023-12-20T00:30:43.620Z] :: No file to patch.  Skipping patch.
[task 2023-12-20T00:30:43.620Z] :: 3 out of 3 hunks ignored
[task 2023-12-20T00:30:43.620Z] :: can't find file to patch at input line 1581
[task 2023-12-20T00:30:43.620Z] :: Perhaps you used the wrong -p or --strip option?
[task 2023-12-20T00:30:43.620Z] :: The text leading up to this was:
[task 2023-12-20T00:30:43.620Z] :: --------------------------
[task 2023-12-20T00:30:43.620Z] :: |--- a/toolkit/modules/subprocess/subprocess_worker_win.js
[task 2023-12-20T00:30:43.620Z] :: |+++ b/toolkit/modules/subprocess/subprocess_worker_win.js
[task 2023-12-20T00:30:43.620Z] :: --------------------------
[task 2023-12-20T00:30:43.620Z] :: No file to patch.  Skipping patch.
[task 2023-12-20T00:30:43.620Z] :: 1 out of 1 hunk ignored
[task 2023-12-20T00:30:43.620Z] :: patching file toolkit/modules/subprocess/test/xpcshell/test_subprocess.js
[task 2023-12-20T00:30:43.620Z] :: patching file widget/gtk/WidgetUtilsGtk.h
[task 2023-12-20T00:30:43.620Z] :: Hunk #1 succeeded at 54 (offset 1 line).
[task 2023-12-20T00:30:43.620Z] :: patching file widget/gtk/WidgetUtilsGtk.cpp
[task 2023-12-20T00:30:43.620Z] :: Patch /builds/worker/firefox-snap/patches/native-messaging-portal.patch does not apply (enforce with -f)
[task 2023-12-20T00:30:43.620Z] 'override-build' in part 'firefox' failed with code 1.
[task 2023-12-20T00:30:43.620Z] Review the scriptlet and make sure it's correct.
[task 2023-12-20T00:30:43.620Z] Full execution log: '/builds/worker/.local/state/snapcraft/log/snapcraft-20231220-000750.414582.log'
[taskcluster 2023-12-20 00:30:53.960Z] === Task Finished ===
[taskcluster 2023-12-20 00:30:54.281Z] Unsuccessful task run with exit code: 1 completed in 1551.928 seconds

Mike, can you take a look at this?
Thank you.

Flags: needinfo?(mh+mozilla)

This comes from an upstream patch.

Flags: needinfo?(mh+mozilla) → needinfo?(bandali)

Looks like the beta branch needs to be updated as well now. I suspect we'll start seeing PGO failures on beta after this ?

Ok, I see the patches have been updated (and PGO disabled): https://github.com/canonical/firefox-snap/commits/beta

Latest log looks something like this:

[task 2023-12-30T00:13:51.198Z] :: patching file python/mozbuild/mozbuild/mozinfo.py
[task 2023-12-30T00:13:51.198Z] :: patching file python/sites/xpcshell-test.txt
[task 2023-12-30T00:13:51.198Z] :: patching file testing/mozharness/configs/unittests/linux_unittest.py
[task 2023-12-30T00:13:51.198Z] :: patching file testing/xpcshell/mach_commands.py
[task 2023-12-30T00:13:51.198Z] :: patching file toolkit/components/extensions/NativeManifests.sys.mjs
[task 2023-12-30T00:13:51.198Z] :: patching file toolkit/components/extensions/NativeMessaging.sys.mjs
[task 2023-12-30T00:13:51.198Z] :: Hunk #3 FAILED at 48.
[task 2023-12-30T00:13:51.198Z] :: Hunk #4 succeeded at 74 (offset 8 lines).
[task 2023-12-30T00:13:51.198Z] :: Hunk #5 succeeded at 93 (offset 8 lines).
[task 2023-12-30T00:13:51.198Z] :: Hunk #6 succeeded at 142 (offset 8 lines).
[task 2023-12-30T00:13:51.198Z] :: Hunk #7 succeeded at 379 (offset 8 lines).
[task 2023-12-30T00:13:51.198Z] :: 1 out of 7 hunks FAILED -- rejects in file toolkit/components/extensions/NativeMessaging.sys.mjs
[task 2023-12-30T00:13:51.198Z] :: patching file toolkit/components/extensions/NativeMessagingPortal.cpp
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/NativeMessagingPortal.h
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/components.conf
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/docs/native-messaging-portal-design.rst
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/moz.build
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/nsINativeMessagingPortal.idl
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/test/xpcshell/native_messaging.toml
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/test/xpcshell/test_ext_native_messaging_portal.js
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/components/extensions/test/xpcshell/test_native_manifests.js
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/Subprocess.sys.mjs
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/subprocess_common.sys.mjs
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/subprocess_unix.sys.mjs
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/subprocess_unix.worker.js
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/subprocess_win.sys.mjs
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/subprocess_win.worker.js
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/subprocess_worker_common.js
[task 2023-12-30T00:13:51.199Z] :: patching file toolkit/modules/subprocess/test/xpcshell/test_subprocess.js
[task 2023-12-30T00:13:51.199Z] :: patching file widget/gtk/WidgetUtilsGtk.cpp
[task 2023-12-30T00:13:51.199Z] :: patching file widget/gtk/WidgetUtilsGtk.h
[task 2023-12-30T00:13:51.199Z] :: Patch /builds/worker/firefox-snap/patches/native-messaging-portal.patch does not apply (enforce with -f)
[task 2023-12-30T00:13:51.199Z] 'override-pull' in part 'firefox' failed with code 1.
[task 2023-12-30T00:13:51.199Z] Review the scriptlet and make sure it's correct.
[task 2023-12-30T00:13:51.199Z] Full execution log: '/builds/worker/.local/state/snapcraft/log/snapcraft-20231230-000905.681669.log'
[taskcluster 2023-12-30 00:13:58.139Z] === Task Finished ===
[taskcluster 2023-12-30 00:14:00.085Z] Unsuccessful task run with exit code: 1 completed in 447.7 seconds

So it looks like something made the upstream patch bitrot again and people are still on PTO

Blocks: snap
Keywords: regression
Regressed by: 1869678

Set release status flags based on info from the regressing bug 1869678

Attached file GitHub Pull Request
Assignee: nobody → lissyx+mozillians
Flags: needinfo?(bandali)
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: