Closed Bug 1876590 Opened 1 year ago Closed 9 months ago

Removing use of platform.ini from BuildID mismatch detection code

Categories

(Core :: IPC, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

Details

Attachments

(8 files, 4 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

We introduced it in bug 1651133, but this is not cool and it looks like we still need to do this. I have some code that is able to read it from a binary's dedicated section which would allow us to rely on this

Assignee: nobody → lissyx+mozillians

Depends on D199658

Depends on D199709

This reverts commit a70f59c7d9da728a355a38dd4dbbd33d5730d442.

Depends on D199711

Unfortunately, I dont see how we can keep some of the telemetry tests that were relying on changing platform.ini content, doing the same with libxul sounds much more complicated.

Removing tests because we cannot change platform.ini file anymore

Depends on D201381

Depends on: 1884147

Depends on D199710

Attached file WIP: Bug 1876590 - MERGE (obsolete) —

Depends on D203736

Depends on D199710

Attachment #9376610 - Attachment is obsolete: true
Attachment #9395532 - Attachment is obsolete: true
Attachment #9395532 - Attachment is obsolete: false
Attachment #9395532 - Attachment is obsolete: true
Attachment #9396387 - Attachment is obsolete: true
Attachment #9376508 - Attachment description: WIP: Bug 1876590 - Place gToolkitBuildID in a specific section → Bug 1876590 - Place gToolkitBuildID in a specific section r?#build!
Attachment #9397524 - Attachment description: WIP: Bug 1876590 - Vendor goblin crate for 0.8.0 + d73a80ac1cfdb97a04cd068265c4ebe55bc29ac4 for buildid_reader → Bug 1876590 - Vendor goblin crate for 0.8.0 + d73a80ac1cfdb97a04cd068265c4ebe55bc29ac4 for buildid_reader r?#build!
Attachment #9376611 - Attachment description: WIP: Bug 1876590 - Add buildid_reader crate → Bug 1876590 - Add buildid_reader crate r?jld!
Attachment #9379490 - Attachment description: WIP: Bug 1876590 - Add gtest for buildid reading from shared lib → Bug 1876590 - Add gtest for buildid reading from shared lib r?jld!
Attachment #9376612 - Attachment description: WIP: Bug 1876590 - Use buildid_reader crate for verification of mismatch → Bug 1876590 - Use buildid_reader crate for verification of mismatch r?jld!
Attachment #9376911 - Attachment description: WIP: Bug 1876590 - Undo platform.ini packaging changes → Bug 1876590 - Undo platform.ini packaging changes r?nalexander!
Attachment #9389626 - Attachment description: WIP: Bug 1876590 - Update browser chome test for buildid_reader crate → Bug 1876590 - Update browser chome test for buildid_reader crate r?jld!
Attachment #9390512 - Attachment is obsolete: true
Attachment #9376611 - Attachment description: Bug 1876590 - Add buildid_reader crate r?jld! → Bug 1876590 - Add buildid_reader crate r?afranchuk!
Attachment #9379490 - Attachment description: Bug 1876590 - Add gtest for buildid reading from shared lib r?jld! → Bug 1876590 - Add gtest for buildid reading from shared lib r?afranchuk!
Depends on: 1893432
No longer depends on: 1893432
Regressions: 1893502
Attachment #9397524 - Attachment description: Bug 1876590 - Vendor goblin crate for 0.8.0 + d73a80ac1cfdb97a04cd068265c4ebe55bc29ac4 for buildid_reader r?#build! → Bug 1876590 - Vendor goblin crate for 0.8.1 for buildid_reader r?#build!

Depends on D207960

Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d0e5aee15a6a Place gToolkitBuildID in a specific section r=firefox-build-system-reviewers,nalexander,glandium
Flags: needinfo?(lissyx+mozillians)

that makes no sense to me, especially the android failures, the code is not used there

Flags: needinfo?(lissyx+mozillians)

(In reply to :gerard-majax from comment #16)

that makes no sense to me, especially the android failures, the code is not used there

ok so it's failing at https://searchfox.org/mozilla-central/rev/7a8904165618818f73ab7fc692ace4a57ecd38c9/toolkit/crashreporter/test/unit_ipc/test_content_annotation.js#26

Found that this also causes the following failures:

Thanks, it indeed helped and it looks like my changes highlighted some subtile bug in how we were processing crash annotations

I have a fix tested on try for that https://treeherder.mozilla.org/jobs?repo=try&revision=7dc71f8e5628f43a18b8c22d720d12165e01fb09 and it looks to be good (no more android gv unit failures for example)

Flags: needinfo?(imoraru)
Depends on: 1897189
Flags: needinfo?(imoraru)
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c75ebb5f3a80 Place gToolkitBuildID in a specific section r=firefox-build-system-reviewers,nalexander,glandium https://hg.mozilla.org/integration/autoland/rev/115753252616 Vendor goblin crate for 0.8.1 for buildid_reader r=supply-chain-reviewers,glandium https://hg.mozilla.org/integration/autoland/rev/55cc3acc9297 Add buildid_reader crate r=afranchuk https://hg.mozilla.org/integration/autoland/rev/0b07a6f1beac Add gtest for buildid reading from shared lib r=afranchuk https://hg.mozilla.org/integration/autoland/rev/6d978847d7dd Use buildid_reader crate for verification of mismatch r=jld https://hg.mozilla.org/integration/autoland/rev/2cd2cc626c44 Undo platform.ini packaging changes r=nalexander https://hg.mozilla.org/integration/autoland/rev/9ac3a93622c8 Update browser chome test for buildid_reader crate r=jld
Regressions: 1899925

Backed out for causing gtest failures related to BuildIDReader.ReadFromRealLib.

[task 2024-05-31T01:06:24.049Z] 01:06:24     INFO -  TEST-START | BuildIDReader.ReadFromRealLib
[task 2024-05-31T01:06:24.049Z] 01:06:24     INFO -  [ERROR buildid_reader::reader] BuildIdReader::read_string_build_id failed to read raw build id with error NS_ERROR_NOT_AVAILABLE
[task 2024-05-31T01:06:24.050Z] 01:06:24     INFO -  [ERROR buildid_reader] read_toolkit_buildid_from_file failed to read string buiild id from note ".note.moz.toolkit-build-id" with error NS_ERROR_NOT_AVAILABLE
[task 2024-05-31T01:06:24.051Z] 01:06:24  WARNING -  TEST-UNEXPECTED-FAIL | BuildIDReader.ReadFromRealLib | Value of: ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))
[task 2024-05-31T01:06:24.051Z] 01:06:24     INFO -    Actual: false
[task 2024-05-31T01:06:24.051Z] 01:06:24     INFO -  Expected: true
[task 2024-05-31T01:06:24.051Z] 01:06:24     INFO -  Error reading from libxul.so: 80040111
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -   @ /builds/worker/checkouts/gecko/toolkit/library/gtest/TestBuildIDReader.cpp:153
[task 2024-05-31T01:06:24.052Z] 01:06:24  WARNING -  TEST-UNEXPECTED-FAIL | BuildIDReader.ReadFromRealLib | test completed (time: 0ms)
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -  TEST-START | BuildIDReader.ReadFromNSAppRunner
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -  [ERROR buildid_reader::reader] BuildIdReader::read_string_build_id failed to read raw build id with error NS_ERROR_NOT_AVAILABLE
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -  [ERROR buildid_reader] read_toolkit_buildid_from_file failed to read string buiild id from note ".note.moz.toolkit-build-id" with error NS_ERROR_NOT_AVAILABLE
[task 2024-05-31T01:06:24.052Z] 01:06:24  WARNING -  TEST-UNEXPECTED-FAIL | BuildIDReader.ReadFromNSAppRunner | Value of: ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -    Actual: false
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -  Expected: true
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -  Error reading from libxul.so: 80040111
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -   @ /builds/worker/checkouts/gecko/toolkit/library/gtest/TestBuildIDReader.cpp:170
[task 2024-05-31T01:06:24.052Z] 01:06:24  WARNING -  TEST-UNEXPECTED-FAIL | BuildIDReader.ReadFromNSAppRunner | test completed (time: 0ms)
[task 2024-05-31T01:06:24.052Z] 01:06:24     INFO -  TEST-START | PHC.TestPHCAllocations
Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(lissyx+mozillians)
Regressions: 1899976
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Hello, backout merged to central link

Blocks: 1899976
No longer regressions: 1899976
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4747f50c91bb Place gToolkitBuildID in a specific section r=firefox-build-system-reviewers,nalexander,glandium https://hg.mozilla.org/integration/autoland/rev/daebbff95c49 Vendor goblin crate for 0.8.1 for buildid_reader r=supply-chain-reviewers,glandium https://hg.mozilla.org/integration/autoland/rev/2b56abfce097 Add buildid_reader crate r=afranchuk https://hg.mozilla.org/integration/autoland/rev/e56673df749c Add gtest for buildid reading from shared lib r=afranchuk https://hg.mozilla.org/integration/autoland/rev/dd6f8d15a5b4 Use buildid_reader crate for verification of mismatch r=jld https://hg.mozilla.org/integration/autoland/rev/335f1af9e115 Undo platform.ini packaging changes r=nalexander https://hg.mozilla.org/integration/autoland/rev/82bfb0e9296e Update browser chome test for buildid_reader crate r=jld
No longer blocks: 1899976
Depends on: 1893502
Regressions: 1899976
No longer regressions: 1893502
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: