Skip to content
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

chore: update gotestsum automatically #21828

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikutas
Copy link
Contributor

@mikutas mikutas commented Feb 10, 2025

Update gotestsum automatically with Renovate like golangci-lint

Test

edit renovate.json locally (not included in this branch)

diff --git a/renovate.json b/renovate.json
index f395a491f..54e5c73fc 100644
--- a/renovate.json
+++ b/renovate.json
@@ -5,7 +5,7 @@
     "github>argoproj/argo-cd//renovate-presets/custom-managers/shell.json5",
     "github>argoproj/argo-cd//renovate-presets/custom-managers/yaml.json5",
     "github>argoproj/argo-cd//renovate-presets/fix/disable-all-updates.json5",
-    "github>argoproj/argo-cd//renovate-presets/devtool.json5",
+    "github>mikutas/argo-cd//renovate-presets/devtool.json5#renovate-gotestsum",
     "github>argoproj/argo-cd//renovate-presets/docs.json5"
   ]
 }

set Renovate configs via environment variables

export LOG_LEVEL=debug
export RENOVATE_CONFIG_FILE=renovate.json
export RENOVATE_DEPENDENCY_DASHBOARD=false
export RENOVATE_BASE_BRANCHES=renovate-gotestsum

dry-run Renovate

renovate mikutas/argo-cd --dry-run=full --enabled-managers=regex --require-config=ignored
logs

DEBUG: packageFiles with updates (repository=mikutas/argo-cd, baseBranch=renovate-gotestsum)
       "config": {
         "regex": [
           {
             "deps": [
               {
                 "depName": "gotestyourself/gotestsum",
                 "packageName": "gotestyourself/gotestsum",
                 "currentValue": "1.11.0",
                 "datasource": "github-releases",
                 "replaceString": "# renovate: datasource=github-releases depName=gotestyourself/gotestsum packageName=gotestyourself/gotestsum\nGOTESTSUM_VERSION=1.11.0",
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "v1.12.0",
                     "newValue": "1.12.0",
                     "releaseTimestamp": "2024-05-30T03:32:48.000Z",
                     "newVersionAgeInDays": 256,
                     "newMajor": 1,
                     "newMinor": 12,
                     "newPatch": 0,
                     "updateType": "minor",
                     "libYears": 0.7003799521857923,
                     "branchName": "renovate/gotestyourself-gotestsum-1.x"
                   }
                 ],
                 "versioning": "semver-coerced",
                 "warnings": [],
                 "sourceUrl": "https://github.com/gotestyourself/gotestsum",
                 "registryUrl": "https://github.com",
                 "currentVersion": "v1.11.0",
                 "currentVersionTimestamp": "2023-09-16T19:24:33.000Z",
                 "currentVersionAgeInDays": 512,
                 "isSingleVersion": true,
                 "fixedVersion": "1.11.0"
               }
             ],
             "matchStrings": [
               "# renovate: datasource=(?<datasource>.*?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>.*?))?(?: extractVersion=(?<extractVersion>.*?))?\\s.+?_VERSION\\s*=\\s*(?:'|\")(?<currentValue>[^(?:'|\")]+)(?:'|\")",
               "# renovate: datasource=(?<datasource>.*?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>.*?))?(?: extractVersion=(?<extractVersion>.*?))?\\s.+?_VERSION\\s*=\\s*(?<currentValue>[^'\"\\s]+)"
             ],
             "packageFile": "hack/installers/install-gotestsum.sh"
           },

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Signed-off-by: mikutas <23391543+mikutas@users.noreply.github.com>
Copy link

bunnyshell bot commented Feb 10, 2025

🔴 Preview Environment stopped on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🔵 /bns:start to start the environment
  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@5b79c34). Learn more about missing BASE report.
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #21828   +/-   ##
=========================================
  Coverage          ?   55.60%           
=========================================
  Files             ?      339           
  Lines             ?    56874           
  Branches          ?        0           
=========================================
  Hits              ?    31624           
  Misses            ?    22593           
  Partials          ?     2657           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mikutas mikutas marked this pull request as ready for review February 10, 2025 06:53
@mikutas mikutas requested a review from a team as a code owner February 10, 2025 06:53
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.

1 participant