Skip to content

refactor(devcontainer): remove the DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP test switch from product code - #2580

Merged
dan-petty merged 2 commits into
mainfrom
refactor/1729-skip-tool-bootstrap-switch
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
refactor/1729-skip-tool-bootstrap-switch

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

_bootstrap_managed_tools in src/devops_cli/commands/devcontainer.py returned early when the variable DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP was 1, true or yes. Only tests set it: the autouse isolate_devcontainer_env fixture of tests/test_devcontainer.py and one unit-test case. docs/TESTING.md says that product code holds nothing for tests, so the check is deleted. The skip parameter, which devops devcontainer post-create --skip-tools sets, stays the one way to skip the managed-tool bootstrap. No document, image, workflow or devcontainer file set the variable.

  • The tests that run post-create and do not test the managed-tool bootstrap pass --skip-tools. The tests that call _run_post_create_lifecycle pass skip_tools=True.
  • devops devcontainer run-lifecycle has no --skip-tools option. Its two tests put every tool of the packaged lock at its pin in the test's ~/.local/bin, as devops install-tools leaves it, so the bootstrap runs and installs nothing.
  • link_at_pin moves from tests/test_install_tools.py to the new tests/support/tools.py, beside link_every_tool_at_pin.
  • The test of a Node tool with no npm keeps the real bootstrap.

Closes #1729

Change: openspec/changes/archive/2026-10-29-1729-skip-tool-bootstrap-switch/

…t switch from product code

`_bootstrap_managed_tools` returned early when the variable
DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP was set, and only tests set it. Product
code holds nothing for tests, so the check is deleted. The `skip`
parameter, which `devops devcontainer post-create --skip-tools` sets,
stays the one way to skip the managed-tool bootstrap.

- The tests that run post-create pass `--skip-tools`, or
  `skip_tools=True` to `_run_post_create_lifecycle`.
- `run-lifecycle` has no `--skip-tools` option, so its two tests put
  every locked tool at its pin in the test's `~/.local/bin`, as
  `devops install-tools` leaves it. The bootstrap runs and installs
  nothing.
- `link_at_pin` moves from `tests/test_install_tools.py` to
  `tests/support/tools.py`, beside `link_every_tool_at_pin`.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • git grep -n DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP -- src tests prints nothing.
  • A temporary probe in _bootstrap_managed_tools, removed before the commit, recorded each test that got past the skip check:
    • With the variable check gone and no other change: 15 tests in tests/test_devcontainer.py, and 13 of them failed on the test floor's "network edge reached without a fake".
    • After the change: 4 tests. Two reach the bootstrap on purpose: the test of a Node tool with no npm, and test_bootstrap_managed_tools. The two run-lifecycle tests reach it with every locked tool at its pin, and a direct call of _bootstrap_managed_tools with that layout returns [].
  • uv run pytest tests/test_devcontainer.py tests/test_instruction_generator.py tests/test_install_tools.py: 165 passed, before and after the rebase onto origin/main.
  • The commit and pre-push hooks passed.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 01:01
@dan-petty
dan-petty merged commit 7e7272e into main Oct 29, 2026
17 checks passed
@dan-petty
dan-petty deleted the refactor/1729-skip-tool-bootstrap-switch branch October 29, 2026 01:16
dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.13.0](v0.12.0...v0.13.0)
(2026-10-29)


### Features

* **gh:** devops gh issues close records the close reason and a comment
([#2575](#2575))
([97ed0ea](97ed0ea)),
closes [#1658](#1658)
* **monitoring:** the ai spend dashboard counts gateway traffic from the
gateway's own series, shows failed attempts and names each caller
([#2584](#2584))
([33491ca](33491ca))
* **roadmap:** refine writes each criterion as an OpenSpec requirement
([#2591](#2591))
([d9a869f](d9a869f))
* **sandbox:** sandbox commands take a seccomp profile file
([#2588](#2588))
([46958d4](46958d4))


### Bug Fixes

* **monitoring:** RoadmapServiceGitHubWritesHigh counts a request with
no method label as a write, so it fired on 341 reads
([#2583](#2583))
([6dc3aa7](6dc3aa7)),
closes [#2574](#2574)


### Performance Improvements

* **ci:** the gate writes no coverage XML, and the clean-up keeps the
combined data
([#2582](#2582))
([ae9ebb2](ae9ebb2)),
closes [#1743](#1743)
* **roadmap:** intake's embeddings are cached in a password-protected
Valkey in the cluster
([#2578](#2578))
([bfe8a0c](bfe8a0c))


### Code Refactoring

* **devcontainer:** remove the DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP test
switch from product code
([#2580](#2580))
([7e7272e](7e7272e))
* **lint:** lazy exports import names under TYPE_CHECKING
([#2590](#2590))
([c96dbfe](c96dbfe)),
closes [#2010](#2010)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

refactor(devcontainer): remove the DEVOPS_CLI_SKIP_TOOL_BOOTSTRAP test switch from product code

1 participant