Regenerate gradle test#405
Closed
github-actions[bot] wants to merge 7 commits into
Closed
Conversation
Add an optional 'core-branch' input to the Regenerate Test workflow that lets developers specify a dependabot-core branch name. The workflow resolves the branch to a commit SHA, maps the test name to the correct ecosystem image suffix, and passes --updater-image to the CLI. This enables developers to regenerate smoke tests against their dependabot-core PR before it merges to main. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Accept fork branches in 'owner:branch' format (e.g. edgarrmondragon:uv-0.10.9) by resolving the SHA from the fork repo instead of dependabot/dependabot-core. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Without the cache, the updater cannot reach package registries and produces empty output, wiping the test's output section. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- core-branch: for internal dependabot-core branches (resolves branch head SHA) - core-pr-number: for contributor/fork PRs (resolves PR head SHA via the pulls API, matching how images-branch.yml tags images) Also adds proxy cache download and --cache flag to produce correct output during regeneration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
images-branch.yml tags images with github.sha which for pull_request events is the merge commit SHA, not the branch head SHA. This fixes the image resolution to use refs/pull/N/merge which matches the actual image tag. Also adds: - GHCR login for authenticated image pulls - Image existence validation before running the test - Output validation to prevent silently wiping test files - Write to temp file first, only copy if output section exists - 20m timeout matching the smoke workflow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Instead of resolving SHA tags and pulling pre-built images from GHCR (which requires PR approval via images-branch.yml), check out the dependabot-core branch/PR and build the updater image locally using script/build — the same approach used in dependabot-core's own smoke pipeline. This removes the approval requirement and SHA resolution complexity. Works with any branch or PR (including forks via core-pr-number). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Created for test purposes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR regenerates the
gradletest file.Test regenerated:
tests/smoke-gradle.yamldependabot-core PR: dependabot/dependabot-core#14399
The test was regenerated using
dependabot testto update it with the latest dependency information.Please review the changes to ensure they are expected.