-
Notifications
You must be signed in to change notification settings - Fork 569
chore(deps): automate Gemfile.lock maintenance (phase 1) #34666
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
274be08
chore(deps): automate Gemfile.lock maintenance (phase 1)
torreypayne d5d0d37
fix(deps): exclude spanner from default batch and force-stage generat…
yoshi-automation 8a44aff
fix(ci): pin action references to SHAs and harden workflow permission…
yoshi-automation 3d42740
fix(deps): remove spanner from renovate config and scope lockfile sta…
yoshi-automation 8cf8cc7
fix(deps): remove Gemfile.lock from gitignores and refine Phase 1 tar…
torreypayne 2b76e54
fix(deps): scope Phase 1 lockfiles and remove external write action
torreypayne 8369698
fix(deps): restrict Renovate bundler manager to Phase 1 target libraries
torreypayne 068ef62
fix(deps): explicitly disable Renovate processing for non-Phase 1 lib…
torreypayne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,38 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "config:base" | ||
| ], | ||
| "rangeStrategy": "widen" | ||
| "semanticCommits": "enabled", | ||
| "semanticCommitType": "chore", | ||
| "semanticCommitScope": "deps", | ||
| "rangeStrategy": "widen", | ||
| "bundler": { | ||
| "enabled": true | ||
| }, | ||
| "lockFileMaintenance": { | ||
| "enabled": true, | ||
| "automerge": false, | ||
| "schedule": [ | ||
| "before 5am on monday" | ||
| ], | ||
| "commitMessageAction": "maintain Gemfile.lock files" | ||
| }, | ||
| "packageRules": [ | ||
| { | ||
| "description": "Phase 1: Core & Handwritten Gems Lockfile Rollout", | ||
| "matchFileNames": [ | ||
| "google-cloud-core/**", | ||
| "google-cloud-storage/**", | ||
| "google-cloud-pubsub/**", | ||
| "google-cloud-bigquery/**", | ||
| "google-cloud-errors/**" | ||
| ], | ||
| "groupName": "core handwritten gems lockfiles", | ||
| "rangeStrategy": "update-lockfile", | ||
| "lockFileMaintenance": { | ||
| "enabled": true | ||
| } | ||
| } | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: Generate Gemfile.lock Batches | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| batch_pattern: | ||
| description: "Gem directory glob pattern (e.g., google-cloud-core or google-cloud-a*)" | ||
| required: true | ||
| default: "google-cloud-core google-cloud-storage google-cloud-pubsub google-cloud-bigquery google-cloud-errors" | ||
|
|
||
| jobs: | ||
| generate-locks: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: ruby/setup-ruby@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: false | ||
| - name: Generate Lockfiles for Batch | ||
| run: | | ||
| for gemdir in ${INPUTS_BATCH_PATTERN}; do | ||
| if [ -f "$gemdir/Gemfile" ]; then | ||
| echo "Locking $gemdir..." | ||
| (cd "$gemdir" && bundle lock) | ||
| if [ -f "$gemdir/Gemfile.lock" ]; then | ||
| git add -f "$gemdir/Gemfile.lock" | ||
| fi | ||
| fi | ||
| done | ||
| env: | ||
| INPUTS_BATCH_PATTERN: ${{ inputs.batch_pattern }} | ||
| - name: Create Pull Request | ||
| uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6 | ||
| with: | ||
| commit-message: "chore(deps): generate Gemfile.lock files for ${{ inputs.batch_pattern }}" | ||
| title: "chore(deps): generate Gemfile.lock files (${{ inputs.batch_pattern }})" | ||
| body: | | ||
| Automated initial `Gemfile.lock` generation for compliance mandate https://b.corp.google.com/issues/509981628. | ||
|
|
||
| Reviewed and coordinated with André as part of the multi-phase rollout. | ||
| branch: "chore/generate-locks-batch" | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| Gemfile.lock | ||
| coverage/* | ||
| doc/* | ||
| pkg/* | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| Gemfile.lock | ||
| keyfile.json | ||
| coverage/* | ||
| doc/* | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| Gemfile.lock | ||
| keyfile.json | ||
| coverage/* | ||
| doc/* | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| Gemfile.lock | ||
| coverage/* | ||
| doc/* | ||
| pkg/* | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| Gemfile.lock | ||
| coverage/* | ||
| doc/* | ||
| pkg/* | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.