Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiviewer-for-f1: add update script #336246

Merged

Conversation

bglebrun
Copy link
Contributor

@bglebrun bglebrun commented Aug 21, 2024

Description of changes

Add update script to multiviewer-for-f1 derivation

Possibly closes #336005

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg 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 Aug 21, 2024
@babeuh
Copy link
Contributor

babeuh commented Aug 21, 2024

Okay so my bad, I misread your lest message on the previous PR. I actually meant that you should have one commit for the version bump and one commit for the script inside one single PR. I should've been clearer with that too

It doesn't matter though, this works as well!

Anyways, this looks good to me, I don't have access to my NixOS desktop right now to test it but I don't see anything wrong

@bglebrun
Copy link
Contributor Author

I also figured unless the package is currently broken, the script can do the bump the next time the repo-wide update is triggered.

@babeuh
Copy link
Contributor

babeuh commented Aug 21, 2024

Also I think you might have to change the PR name to something like
multiviewer-for-f1: add update script

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Aug 21, 2024
@bglebrun bglebrun changed the title Added update script for multiviewer-for-f1 multiviewer-for-f1: add update script Aug 21, 2024
@bglebrun
Copy link
Contributor Author

bglebrun commented Aug 21, 2024

Also I think you might have to change the PR name to something like
multiviewer-for-f1: add update script

Fixed

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Sep 4, 2024
link=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").url')
id=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").id')
version=$(echo $latest | jq -r '.version')

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be good to skip the download if the version is already packaged. No need to wastefully download ~150MB.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks for the tip!

@FliegendeWurst FliegendeWurst added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2024
Checks if the version pulled from our metadata API is the same as the current version, preventing a pull of the package if an update is not necessary.
@wegank wegank removed the 12.approvals: 2 This PR was reviewed and approved by two reputable people label Dec 10, 2024
@FliegendeWurst
Copy link
Member

Please fix the merge conflict.

@wegank wegank added the 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people label Dec 10, 2024
Copy link
Contributor Author

@bglebrun bglebrun left a comment

Choose a reason for hiding this comment

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

Script should now check for current version to latest and omit the package pull and update if no update is necessary

link=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").url')
id=$(echo $latest | jq -r '.downloads[] | select(.platform=="linux_deb").id')
version=$(echo $latest | jq -r '.version')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks for the tip!

@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 12, 2024
@wegank wegank removed the 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people label Dec 12, 2024
@linuxmobile
Copy link
Contributor

linuxmobile commented Mar 20, 2025

Why this is stucked and outdated? The multiview app is currently in v1.42.1

@bglebrun
Copy link
Contributor Author

I've been waiting, as far as I know everything is taken care of. Would probably be faster to open a pull request for an update.

Copy link
Contributor

@babeuh babeuh left a comment

Choose a reason for hiding this comment

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

Still looks good to me

@FliegendeWurst FliegendeWurst merged commit 978d820 into NixOS:master Mar 21, 2025
32 checks passed
@linuxmobile
Copy link
Contributor

Merge this before my PR will break my PR I think. #391691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants