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

bitrise: init at 2.19.0 #332816

Merged
merged 2 commits into from
Aug 19, 2024
Merged

bitrise: init at 2.19.0 #332816

merged 2 commits into from
Aug 19, 2024

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Aug 6, 2024

Description of changes

Bitrise CLI repo: https://github.com/bitrise-io/bitrise

I've been using this package locally for a while, decided to upstream it.

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.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/4388

Copy link
Member

@gador gador 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 your contribution!
Just a few suggestions. Please also be sure to separate your change to maintainer-list.nix to a commit maintainers: add ofalvai and re-arrange the order, so that commit will come first.

hash = "sha256-VjuDeRl/rqA7bdhn9REdxdjRon5WxHkFIveOYNpQqa8=";
};

doCheck = false; # many tests rely on writing to $HOME/.bitrise
Copy link
Member

Choose a reason for hiding this comment

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

You could do something like:

preCheck = "export HOME=`mktemp -d`";

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I didn't think of this trick. I'd prefer merging this first though, then I'll take another stab at running the tests later if that's okay for you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I started working around the failing tests, but after patching $HOME, I found out that some tests rely on network access, so this is going be a longer journey

pkgs/by-name/bi/bitrise/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/bi/bitrise/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/bi/bitrise/package.nix Outdated Show resolved Hide resolved
@ofalvai
Copy link
Contributor Author

ofalvai commented Aug 10, 2024

Thank you for the suggestions @gador, I believe I fixed them

hash = "sha256-VjuDeRl/rqA7bdhn9REdxdjRon5WxHkFIveOYNpQqa8=";
};

doCheck = false; # many tests rely on writing to $HOME/.bitrise
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
doCheck = false; # many tests rely on writing to $HOME/.bitrise
# many tests rely on writable $HOME/.bitrise and require network access
doCheck = false;

passthru.updateScript = nix-update-script { };

meta = {
changelog = "https://github.com/bitrise-io/bitrise/releases/tag/${src.rev}";
Copy link
Member

Choose a reason for hiding this comment

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

@Pandapip1 is there anything solved about parametric changelogs?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd recommend doing

Suggested change
changelog = "https://github.com/bitrise-io/bitrise/releases/tag/${src.rev}";
changelog = "https://github.com/bitrise-io/bitrise/releases";

as this will display the full changelog instead of the abbreviated version that only shows the changes for a specific release.


meta = {
changelog = "https://github.com/bitrise-io/bitrise/releases/tag/${src.rev}";
description = "Bitrise runner CLI - run your automations on your Mac or Linux machine";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
description = "Bitrise runner CLI - run your automations on your Mac or Linux machine";
description = "CLI for running your Workflows from Bitrise on your local machine";

meta = {
changelog = "https://github.com/bitrise-io/bitrise/releases/tag/${src.rev}";
description = "Bitrise runner CLI - run your automations on your Mac or Linux machine";
homepage = "https://bitrise.io";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
homepage = "https://bitrise.io";
homepage = "https://bitrise.io/cli";

@ofalvai
Copy link
Contributor Author

ofalvai commented Aug 13, 2024

@AndersonTorres I applied all your suggestions, thank you! Please take another look.

Copy link
Member

@AndersonTorres AndersonTorres left a comment

Choose a reason for hiding this comment

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

Remember me testing the package later, I will sleep a bit now.
Besides, visually LGTM

Comment on lines +18 to +19
# many tests rely on writable $HOME/.bitrise and require network access
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Is it feasible to selectively disable the network tests? Some tests are still better than none

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I already have a draft PR for that, but the list of ignored tests is quite long: https://github.com/NixOS/nixpkgs/pull/333648/files#diff-6ed507756f46cf318b766f9e189a33a2c87be833e2ca6458c13b6fa43ff714dcR18

I'd rather do the clean up and refactor of the tests in the repo itself (there are distinct integration tests already, I think these failing tests should be tagged as integration tests). But I'd prefer merging this first PR with doCheck = false, and then iterate on it.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, fine with me 👍

@gador
Copy link
Member

gador commented Aug 18, 2024

Small nitpick: Second commit should be named bitrise: init at 2.19.0
(See https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#commit-conventions)

@gador
Copy link
Member

gador commented Aug 18, 2024

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).

Result of nixpkgs-review pr 332816 run on x86_64-linux 1

1 package built:
  • bitrise

@ofalvai
Copy link
Contributor Author

ofalvai commented Aug 19, 2024

@gador whoops, commit message fixed

@ofalvai ofalvai changed the title bitrise: init at version 2.19.0 bitrise: init at 2.19.0 Aug 19, 2024
@gador
Copy link
Member

gador commented Aug 19, 2024

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).

Result of nixpkgs-review pr 332816 run on aarch64-darwin 1

1 package built:
  • bitrise

@gador gador merged commit c76514f into NixOS:master Aug 19, 2024
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants