Skip to content

buildstream: Add support for bash/zsh completions - #458634

Merged
SuperSandro2000 merged 1 commit into
NixOS:masterfrom
shymega:shymega/buildstream-add-completions
Nov 23, 2025
Merged

SuperSandro2000 merged 1 commit into
NixOS:masterfrom
shymega:shymega/buildstream-add-completions

Conversation

@shymega

@shymega shymega commented Nov 4, 2025 •

Copy link
Copy Markdown
Member

The BuildStream package currently doesn't have shell completions for bash or zsh. This PR adds that support.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 4, 2025
@shymega
shymega force-pushed the shymega/buildstream-add-completions branch from 8e326cc to d593c2a Compare November 4, 2025 22:56
@mdaniels5757

Copy link
Copy Markdown
Member

Re-running CI due to a since-fixed unrelated treefmt-nix failure

@mdaniels5757 mdaniels5757 reopened this Nov 5, 2025
@nixpkgs-ci nixpkgs-ci Bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Nov 5, 2025
@shymega
shymega force-pushed the shymega/buildstream-add-completions branch 2 times, most recently from b4140fa to 7d6485c Compare November 5, 2025 16:31
Comment thread pkgs/by-name/bu/buildstream/package.nix Resolved
@shymega
shymega force-pushed the shymega/buildstream-add-completions branch from 7d6485c to 50d8390 Compare November 12, 2025 17:30
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Nov 12, 2025

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Nov 13, 2025
@SuperSandroBot

Copy link
Copy Markdown

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 458634
Commit: 50d8390bc7599dd216a523586d80b7310ee0e932 (subsequent changes)
Merge: ee68619cee367f193deecf72fcf60c4997c787cf

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/19337483222


x86_64-linux

❌ 2 packages failed to build:
  • buildstream
  • buildstream.dist

Error logs: `x86_64-linux`
buildstream
FAILED tests/frontend/push.py::test_push_already_cached - AssertionError: No elements should have been pushed since the cache was pop...
FAILED tests/frontend/push.py::test_build_remote_option[ignore_project_caches-with_cli_remote] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_build_remote_option[ignore_project_caches-without_cli_remote] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_build_remote_option[include_project_caches-with_cli_remote] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_build_remote_option[include_project_caches-without_cli_remote] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push_no_strict[buildtrees] - AssertionError
FAILED tests/frontend/push.py::test_push_no_strict[normal] - AssertionError
FAILED tests/sourcecache/fetch.py::test_source_fetch - AssertionError
FAILED tests/sourcecache/push.py::test_push_pull - AssertionError
FAILED tests/frontend/remote-caches.py::test_source_artifact_caches - AssertionError
FAILED tests/frontend/remote-caches.py::test_source_cache_empty_artifact_cache - AssertionError
FAILED tests/sourcecache/workspace.py::test_workspace_open_no_source_push - AssertionError
FAILED tests/artifactcache/junctions.py::test_push_pull - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/pull.py::test_pull[None] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/pull.py::test_pull[connection_config1] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/pull.py::test_pull_tree - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/push.py::test_push - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/push.py::test_push_split - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/sourcecache/push.py::test_build_push_source_twice - AssertionError: assert 'Pushed source' not in '[--:--:--][... failed 0 \n'
= 68 failed, 1374 passed, 251 skipped, 32 xfailed, 107 warnings in 260.75s (0:04:20) =

aarch64-linux

❌ 2 packages failed to build:
  • buildstream
  • buildstream.dist

Error logs: `aarch64-linux`
buildstream
FAILED tests/frontend/pull.py::test_pull_access_rights - AssertionError
FAILED tests/frontend/pull.py::test_pull_artifact - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/pull.py::test_dynamic_build_plan - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push_artifact - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push_fails_with_on_error_continue - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push_deps[build-expected_states0] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push_deps[none-expected_states1] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/frontend/push.py::test_push_deps[run-expected_states2] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw2/...
FAILED tests/sourcecache/fetch.py::test_source_fetch - AssertionError
FAILED tests/sourcecache/push.py::test_push_pull - AssertionError
FAILED tests/sourcecache/workspace.py::test_workspace_open_no_source_push - AssertionError
FAILED tests/sourcecache/push.py::test_build_push_source_twice - AssertionError: assert 'Pushed source' not in '[--:--:--][... failed 0 \n'
FAILED tests/artifactcache/junctions.py::test_push_pull - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/pull.py::test_pull[None] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/pull.py::test_pull[connection_config1] - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/pull.py::test_pull_tree - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/push.py::test_push - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
FAILED tests/artifactcache/push.py::test_push_split - IsADirectoryError: [Errno 21] Is a directory: '/build/source/tmp/popen-gw0/...
= 68 failed, 1373 passed, 252 skipped, 32 xfailed, 107 warnings in 243.68s (0:04:03) =

@shymega
shymega force-pushed the shymega/buildstream-add-completions branch from 50d8390 to 53d1cdd Compare November 13, 2025 16:20
@shymega

shymega commented Nov 13, 2025

Copy link
Copy Markdown
Member Author

Not sure what's happened to the tests here. v2.6.0 ran fine, and the only thing that's changed is shell completions. I think this is related to something else. I had this branch working with v2.6.0 layered on top for a few weeks...

@shymega

shymega commented Nov 13, 2025

Copy link
Copy Markdown
Member Author

OK, after speaking with BuildStream maintainers, the bug is down to Protobuf 33.0 causing tests to fail.

We'll need #461186 merged before this PR will pass CI. Once that's done, the issue should be resolved.

@shymega
shymega force-pushed the shymega/buildstream-add-completions branch 2 times, most recently from c63704a to 46530d6 Compare November 14, 2025 21:45
@shymega shymega mentioned this pull request Nov 15, 2025
6 of 13 tasks
@shymega
shymega force-pushed the shymega/buildstream-add-completions branch 2 times, most recently from 655e80b to d510f44 Compare November 18, 2025 16:02
@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge conflict This PR has merge conflicts with the target branch and removed 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Nov 18, 2025
@shymega
shymega force-pushed the shymega/buildstream-add-completions branch from d510f44 to a4eae9c Compare November 18, 2025 22:07
@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Nov 18, 2025
@shymega

shymega commented Nov 19, 2025

Copy link
Copy Markdown
Member Author

@SuperSandro2000 I'm not sure how to approach this MR, as we need Protobuf 33.1 in unstable for the tests to pass.

#461186 adds that to staging-next, but I'm under the impression that'll end up in 25.11, not 25.05.

@shymega
shymega force-pushed the shymega/buildstream-add-completions branch 2 times, most recently from 6980ac0 to b0746ee Compare November 23, 2025 12:55
@shymega
shymega force-pushed the shymega/buildstream-add-completions branch from b0746ee to a571ad4 Compare November 23, 2025 19:54
@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Nov 23, 2025
Merged via the queue into NixOS:master with commit f5c8354 Nov 23, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented Nov 23, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Nov 23, 2025
@shymega shymega self-assigned this Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 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.

4 participants