Skip to content

Restore smoke compatibility with the latest Dependabot CLI - #329

Open
loganvolkers wants to merge 2 commits into
dependabot:mainfrom
loganvolkers:loganvolkers/smoke-workflow-compatibility
Open

loganvolkers wants to merge 2 commits into
dependabot:mainfrom
loganvolkers:loganvolkers/smoke-workflow-compatibility

Conversation

@loganvolkers

@loganvolkers loganvolkers commented Oct 16, 2026 •

Copy link
Copy Markdown

What are you trying to accomplish?

Restore smoke-workflow compatibility with Dependabot CLI v1.96.0 while preserving the existing latest-CLI policy and the proxy's production Go/module/build behavior:

  • Allow the CLI installation step to select a compatible Go toolchain with step-local GOTOOLCHAIN=auto.
  • Use the CLI's documented --skip-image-verification development-image flag when testing the locally built proxy, which has no release attestation.

The original failing job stopped at CLI installation: CLI v1.96.0 requires Go >=1.27.0, but the workflow installs the proxy module's Go 1.26.0 with GOTOOLCHAIN=local.

After fixing installation, the first run of this PR successfully installed the CLI, downloaded the caches, and built the proxy in all 101 matrix jobs. Smoke startup then encountered the CLI's newly enabled image-verification policy. The CLI reports these startup failures as empty-output expectation diffs, masking the underlying startup error.

This workflow-only PR is based directly on main and does not include or modify the GCP token-lifetime changes in #328.

Anything you want to highlight for special attention from reviewers?

Go's supported toolchain switching handles go install package@version without changing the calling repository's go.mod or go.sum. The environment override applies only to CLI installation; the proxy's Go version and Dockerfile remain unchanged.

CLI v1.96.0 introduced image-attestation verification in dependabot/cli#675. Its documented development bypass is necessary because this workflow must execute the proxy image it just built, rather than a signed release image. The flag disables updater, proxy, and configured Collector verification for this smoke invocation, not just proxy verification. It is not applied to any production command or other workflow.

Remaining independent smoke-data failure: the Nix job in the follow-up run now starts the proxy/updater and completes the update, but fails its expected-output comparison. The public tests/smoke-nix.yaml fixture expects flake-utils commit 11707dc2f618dd54ca8739b309ec4fc024de578b; an uncached GET /repos/numtide/flake-utils/commits?per_page=100&sha=HEAD selects live commit b7a79d3fea1e214f6d668d521cecec0c01e26544 instead. The job reports only 11/28 calls cached (39%). Today's earlier green Nix job used the same updater-image digest and request URL, but selected the expected older commit. This PR does not skip Nix or rewrite its expectations; repairing the external fixture/cache reproducibility is separate from these CLI compatibility changes. The overall smoke run must not be considered fully green on this evidence.

How will you know you've accomplished your goal?

Bootstrap checks used a checksum-verified Go 1.26.0 distribution on macOS arm64 with isolated caches and public module/checksum services:

  • GOTOOLCHAIN=local go install github.com/dependabot/cli/cmd/dependabot@latest — reproduced the original minimum-Go-version failure (exit 1, CLI v1.96.0).
  • GOTOOLCHAIN=auto go install github.com/dependabot/cli/cmd/dependabot@latest — passed (exit 0), automatically selecting Go 1.27.2 and installing CLI v1.96.0.
  • GOTOOLCHAIN=local go version -m "$GOBIN/dependabot" and "$GOBIN/dependabot" --help — passed; confirmed the installed CLI version/toolchain and executable startup.

Follow-up checks used the public CLI v1.96.0 macOS arm64 release binary, verified against its GitHub release asset SHA-256:

  • bin/dependabot test --skip-image-verification --help — passed; the documented flag is accepted.
  • python3 verify_development_image.py bin/dependabot — passed an ad hoc session-local regression harness with an isolated loopback Docker stub and no credentials or real containers. Without the flag, --pull=false rejects the unsigned local image with the explicit development-flag diagnostic. With the flag, the CLI prints its verification-disabled warning and reaches the deliberately blocked container-network setup. This is a startup-path check, not a full Docker smoke test.
  • yamllint .github/workflows/smoke.yml (1.37.1) — passed.
  • actionlint -shellcheck= .github/workflows/smoke.yml (1.7.12) — passed syntax/action validation.
  • Full actionlint (1.7.12) — only the same two pre-existing SC2086 findings in untouched suite-gathering/summary scripts; compared diagnostic messages against main with no new findings.
  • zizmor --offline --persona=regular --min-severity=medium --min-confidence=high .github/workflows/smoke.yml (1.26.1) — passed; no findings at these thresholds.
  • git diff --check origin/main...HEAD and git diff --exit-code origin/main -- go.mod go.sum Dockerfile — passed.
  • Parsed-YAML comparison and bash -n — passed; only the two intended CLI compatibility settings change workflow behavior.

The regular CI run for follow-up commit 21367db passed. The naturally triggered smoke run executes the ecosystem tests, with the independent Nix expectation mismatch described above. No diagnostic reruns were requested.

Not run locally: script/test or the full Docker smoke matrix, because docker version confirms no reachable Docker daemon. Online zizmor audits were not run.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

loganvolkers and others added 2 commits October 16, 2026 16:27
Enable automatic toolchain selection only while installing Dependabot CLI, which can require a newer Go version than the proxy module. Keep the proxy's Go version and build behavior unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use the Dependabot CLI's documented development-image bypass because the proxy under test has no release attestation. Keep this setting confined to the smoke invocation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@loganvolkers
loganvolkers marked this pull request as ready for review October 16, 2026 23:38
@loganvolkers
loganvolkers requested a review from a team as a code owner October 16, 2026 23:38
Copilot AI balanced review requested due to automatic review settings October 16, 2026 23:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The verification bypass also affects updater images and requires explicit human acceptance of its broader security impact.

1 open issue
What changed in this PR

Updates smoke workflow bootstrapping without changing the proxy’s Go version or dependencies.

Changes:

  • Enables automatic Go toolchain selection only during Dependabot CLI installation.
  • Disables image verification for smoke execution, with a comment explaining the locally built proxy.
File Description
.github/​workflows/​smoke.yml Adds the step-local toolchain override and image-verification bypass.

Review effort: Balanced

Comment thread .github/workflows/smoke.yml Resolved
@loganvolkers loganvolkers changed the title Allow smoke CLI installation to select a compatible Go toolchain Restore smoke compatibility with the latest Dependabot CLI Oct 16, 2026
@loganvolkers
loganvolkers requested a balanced review from Copilot October 16, 2026 23:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrowly scoped compatibility changes have no identified blocking defects; the remaining Nix failure is independent.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@loganvolkers

Copy link
Copy Markdown
Author

@v-robaiken and @v-abhishekbhaskar heads up that the smoke tests were failing so I've attempted to make them compatible again, but I've left the nix failure to you all since it seems trickier.

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.

2 participants