Skip to content

Make the review-shell purer#373

Open
Artturin wants to merge 3 commits intoMic92:mainfrom
Artturin:makemorepure
Open

Make the review-shell purer#373
Artturin wants to merge 3 commits intoMic92:mainfrom
Artturin:makemorepure

Conversation

@Artturin
Copy link
Copy Markdown
Collaborator

@Artturin Artturin commented Oct 20, 2023

The only purpose of this env (I assume) is to add the binaries to the PATH.

The benefit of making it purer is that unwrapped programs missing dependencies may fail.

As a added benefit this dramatically reduces the collision warnings from buildEnv

warning: collision between '/nix/store/82icynaidvzyic2g349cqi4p9a5d4aa2-vimplugin-ai.vim-2023-10-03/doc/tags' and '/nix/store/qc4bdwi6zhk4r1vzbcxrnwrrjnm33a6g-vimplugin-CheckAttach-2019-05-08/doc/tags'

Closes #370

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@Mic92 suggested that the packages = if builtins.length paths > 50 then [ env ] else paths; should be changed to use the buildEnv always

Issues with that

There's no python3.11 in PATH when using buildEnv because it doesn't take into account the propagatedBuildInputs when reviewing PR 261696 a python module bump

There's no $PYTHONPATH or other variables set because no hooks

However, are we sure that those aren't good things? Binaries will fail to launch if they're missing deps(good) and reviewing by importing modules is often not useful because there's already a pythonImportsCheck in python packages.

The hooks just bring side effects which shouldn't be relied on outside nix builds, nixpkgs-review should be testing without side effects

Copy link
Copy Markdown
Collaborator Author

@Artturin Artturin Oct 22, 2023

Choose a reason for hiding this comment

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

"/${python3.sitePackages}"
could be in buildEnv,
and in the review-shell
PYTHONPATH = "${env}/${python3.sitePackages};
and python3 appended to packages

Copy link
Copy Markdown
Owner

@Mic92 Mic92 Oct 22, 2023

Choose a reason for hiding this comment

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

What would be than our suggested workflow for to users of the tool to test libraries? Just now they can use the normal nix-shell workflow.

The purpose of this `env` is to add the binaries to the `PATH`.

The benefit of making it purer is that unwrapped programs missing
dependencies may fail.

As a added benefit this dramatically reduces the collision warnings from `buildEnv`

`warning: collision between '/nix/store/82icynaidvzyic2g349cqi4p9a5d4aa2-vimplugin-ai.vim-2023-10-03/doc/tags' and '/nix/store/qc4bdwi6zhk4r1vzbcxrnwrrjnm33a6g-vimplugin-CheckAttach-2019-05-08/doc/tags'`
@Mic92
Copy link
Copy Markdown
Owner

Mic92 commented Dec 9, 2023

@mergify queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 9, 2023

queue

🛑 The pull request has been removed from the queue default

Details

Unexpected queue change: the updated pull request #373 has been manually updated.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@Mic92
Copy link
Copy Markdown
Owner

Mic92 commented Dec 9, 2023

@Mergifyio refresh

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 9, 2023

refresh

✅ Pull request refreshed

@Mic92
Copy link
Copy Markdown
Owner

Mic92 commented Dec 9, 2023

@mergify queue

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 9, 2023

queue

🛑 The pull request has been removed from the queue default

Details

The queue conditions cannot be satisfied due to failing checks.

You can take a look at Queue: Embarked in merge queue check runs for more details.

In case of a failure due to a flaky test, you should first retrigger the CI.
Then, re-embark the pull request into the merge queue by posting the comment
@mergifyio refresh on the pull request.

@Mic92 Mic92 mentioned this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

summary is hidden behind lots of collisions

2 participants