Skip to content

Comments

chromium: remove ofborg maintainer ping workaround, use CODEOWNERS#362543

Merged
Aleksanaa merged 1 commit intoNixOS:masterfrom
emilylange:chromium-maintainer-pings-again
Dec 7, 2024
Merged

chromium: remove ofborg maintainer ping workaround, use CODEOWNERS#362543
Aleksanaa merged 1 commit intoNixOS:masterfrom
emilylange:chromium-maintainer-pings-again

Conversation

@emilylange
Copy link
Member

The workaround to have ofborg ping chromium and ungoogled-chromium maintainers when a change was only made to the upstream-info relied on string context.

That string context was provided by the upstream-info being a nix file, not a json file, and then holding on to that string context using awkward attribute merges.

It was intended as a quick fix until the handling of this would improve in ofborg itself and worked great.

That was until very recently when we switched from the chromium release tarball to git source fetching in #357371 (8dd2f1a).

Part of that change included going back from upstream-info.nix to upstream-info.json and with that losing the string context and the base on which this workaround used to work.

But this is fine. A lot has happened in the meantime.

CODEOWNERS was reimplemented and no longer requires every user listed in it to have write permissions to the repository (commit bit).

Meaning we can accept that ofborg pings no longer work and instead rely on CODEOWNERS exclusively.

It should, however, be noted that CODEOWNERS provide less granularity than ofborg, meaning we can no longer differentiate between ungoogled-chromium and chromium or even chromedriver.

Previously, implementing the workaround that is now essentially reverted: #245762 (68c5979)

This is a no-op.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

The workaround to have ofborg ping chromium and ungoogled-chromium
maintainers when a change was only made to the upstream-info relied on
string context.

That string context was provided by the upstream-info being a nix file,
not a json file, and then holding on to that string context using
awkward attribute merges.

It was intended as a quick fix until the handling of this would improve
in ofborg itself and worked great.

That was until very recently when we switched from the chromium release
tarball to git source fetching in 8dd2f1a.

Part of that change included going back from upstream-info.nix to
upstream-info.json and with that losing the string context and the base
on which this workaround used to work.

But this is fine. A lot has happened in the meantime.

CODEOWNERS was reimplemented and no longer requires every user listed in
it to have write permissions to the repository (commit bit).

Meaning we can accept that ofborg pings no longer work and instead rely
on CODEOWNERS exclusively.

It should, however, be noted that CODEOWNERS provide less granularity
than ofborg, meaning we can no longer differentiate between
ungoogled-chromium and chromium or even chromedriver.

Previously, implementing the workaround that is now essentially
reverted: 68c5979
@github-actions github-actions bot added the 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions label Dec 6, 2024
@nix-owners nix-owners bot requested review from infinisil and philiptaron December 6, 2024 19:38
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

Thanks for the thorough explanation in the PR, @emilylange. Sounds like ci/OWNERS will work great.

@philiptaron
Copy link
Contributor

I'm not sure the backport to 24.05 is a good idea. Do we even have ci/OWNERS there? Since it'll only be relevant for another few weeks, let's just do 24.11.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 6, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Dec 6, 2024
Copy link
Member

@networkException networkException left a comment

Choose a reason for hiding this comment

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

Thanks for adding me

@networkException
Copy link
Member

I'm not sure the backport to 24.05 is a good idea

We generally backport all commits relating to chromium to be able to remedy security issues and avoid conflicts

@Aleksanaa Aleksanaa merged commit 0abc80d into NixOS:master Dec 7, 2024
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Dec 7, 2024

Successfully created backport PR for release-24.11:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants