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

[RFC] do not install checkdepends when check is not going to run #46207

Closed
wants to merge 1 commit into from

Conversation

tornaria
Copy link
Contributor

This is useful e.g. to break build <-> check cycles.

For instance, one can set make_check=extended so check doesn't run on CI or -Q (maybe the check depencies are updated at the same time), but it's still easy to run check using -K after dependencies have been built.

I'm working on jupyter notebook packages, and there are a few build <-> check cycles. I want to try to arrange checks so that -Q will check as much as possible without cycles, and -K will do full check (assuming all dependencies are already packaged).

Without this patch one needs to add packages to checkdepends conditionally on $XBPS_CHECK_PKGS, but it seems simpler this way.

Testing the changes

  • I tested the changes in this PR: briefly

@classabbyamp classabbyamp added the xbps-src xbps-src related label Sep 23, 2023
Copy link

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Dec 23, 2023
@tornaria
Copy link
Contributor Author

ping

@github-actions github-actions bot removed the Stale label Dec 24, 2023
tornaria added a commit to tornaria/void-packages that referenced this pull request Dec 26, 2023
…tep()

This function contains the logic that determines whether the check step
will be skipped for the current pkg, taking into account `make_check`.

Use this new function in `install_pkg_deps()` so that it uses a more
accurate condition to skip installing check dependencies.

For instance, check dependencies for a pkg with `make_check=extended`
will no longer be installed when using `-Q`. Similar for `make_check=ci-skip`.

Replaces: void-linux#46207
@tornaria
Copy link
Contributor Author

Closing in favor of #47888

@tornaria tornaria closed this Dec 26, 2023
sgn pushed a commit that referenced this pull request Apr 8, 2024
…tep()

This function contains the logic that determines whether the check step
will be skipped for the current pkg, taking into account `make_check`.

Use this new function in `install_pkg_deps()` so that it uses a more
accurate condition to skip installing check dependencies.

For instance, check dependencies for a pkg with `make_check=extended`
will no longer be installed when using `-Q`. Similar for `make_check=ci-skip`.

Replaces: #46207
atweiden added a commit to atweiden/voidpkgs that referenced this pull request Apr 8, 2024
…tep()

This function contains the logic that determines whether the check step
will be skipped for the current pkg, taking into account `make_check`.

Use this new function in `install_pkg_deps()` so that it uses a more
accurate condition to skip installing check dependencies.

For instance, check dependencies for a pkg with `make_check=extended`
will no longer be installed when using `-Q`. Similar for `make_check=ci-skip`.

Replaces: void-linux/void-packages#46207

void-linux/void-packages@ebe2612
snwnde pushed a commit to snwnde/void-packages that referenced this pull request Apr 18, 2024
…tep()

This function contains the logic that determines whether the check step
will be skipped for the current pkg, taking into account `make_check`.

Use this new function in `install_pkg_deps()` so that it uses a more
accurate condition to skip installing check dependencies.

For instance, check dependencies for a pkg with `make_check=extended`
will no longer be installed when using `-Q`. Similar for `make_check=ci-skip`.

Replaces: void-linux#46207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xbps-src xbps-src related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants