From b1d35149468909f4ab63396062de34024a1f959d Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Sat, 14 Feb 2026 08:51:12 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20ci(circleci):=20use=20toolki?= =?UTF-8?q?t=20to=20update=20prlog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change min_rust_version parameter to "1.88" - comment out release-prlog job to disable it temporarily - update workflow to use toolkit/make_release job with new parameters Signed-off-by: Jeremiah Russell --- .circleci/release.yml | 133 ++++++++++++++++++++++-------------------- 1 file changed, 69 insertions(+), 64 deletions(-) diff --git a/.circleci/release.yml b/.circleci/release.yml index 644ef65..e76e5b2 100644 --- a/.circleci/release.yml +++ b/.circleci/release.yml @@ -1,12 +1,12 @@ version: 2.1 parameters: - min_rust_version: - type: string - default: "1.87" fingerprint: type: string default: SHA256:OkxsH8Z6Iim6WDJBaII9eTT9aaO1f3eDc6IpsgYYPVg + min_rust_version: + type: string + default: "1.88" # Version override for crate release (used when nextsv cannot calculate) # Set to empty string "" to use nextsv auto-detection crate_version_override: @@ -593,71 +593,71 @@ jobs: package: << parameters.package >> verbosity: "-vv" - # Release PRLOG/workspace - # Reads version from workspace (calculated by calculate-versions job) - release-prlog: - executor: - name: toolkit/rust_env_rolling - steps: - - checkout - - attach_workspace: - at: /tmp - - add_ssh_keys: - fingerprints: - - << pipeline.parameters.fingerprint >> - - run: - name: Remove original SSH key from agent - command: | - ssh-add -l - # GitHub App integration doesn't create id_rsa.pub, handle gracefully - if [ -f ~/.ssh/id_rsa.pub ]; then - ssh-add -d ~/.ssh/id_rsa.pub - else - echo "No id_rsa.pub found (GitHub App integration) - skipping removal" - fi - ssh-add -l - - toolkit/gpg_key - - toolkit/git_config - - run: - name: Release PRLOG - command: | - set -exo pipefail - chmod +x scripts/*.sh + # # Release PRLOG/workspace + # # Reads version from workspace (calculated by calculate-versions job) + # release-prlog: + # executor: + # name: toolkit/rust_env_rolling + # steps: + # - checkout + # - attach_workspace: + # at: /tmp + # - add_ssh_keys: + # fingerprints: + # - << pipeline.parameters.fingerprint >> + # - run: + # name: Remove original SSH key from agent + # command: | + # ssh-add -l + # # GitHub App integration doesn't create id_rsa.pub, handle gracefully + # if [ -f ~/.ssh/id_rsa.pub ]; then + # ssh-add -d ~/.ssh/id_rsa.pub + # else + # echo "No id_rsa.pub found (GitHub App integration) - skipping removal" + # fi + # ssh-add -l + # - toolkit/gpg_key + # - toolkit/git_config + # - run: + # name: Release PRLOG + # command: | + # set -exo pipefail + # chmod +x scripts/*.sh - # Load version from workspace (calculated by calculate-versions) - VERSION_FILE="/tmp/release-versions/workspace-version" - if [ -f "$VERSION_FILE" ]; then - VERSION=$(cat "$VERSION_FILE") - echo "Loaded workspace version from workspace: $VERSION" - else - echo "ERROR: Version file not found at $VERSION_FILE" - echo "This job requires calculate-versions to run first" - exit 1 - fi + # # Load version from workspace (calculated by calculate-versions) + # VERSION_FILE="/tmp/release-versions/workspace-version" + # if [ -f "$VERSION_FILE" ]; then + # VERSION=$(cat "$VERSION_FILE") + # echo "Loaded workspace version from workspace: $VERSION" + # else + # echo "ERROR: Version file not found at $VERSION_FILE" + # echo "This job requires calculate-versions to run first" + # exit 1 + # fi - if [ "$VERSION" = "none" ]; then - echo "No PRLOG release needed" - exit 0 - fi + # if [ "$VERSION" = "none" ]; then + # echo "No PRLOG release needed" + # exit 0 + # fi - # Check if tag already exists - TAG="v${VERSION}" - git fetch --tags origin main + # # Check if tag already exists + # TAG="v${VERSION}" + # git fetch --tags origin main - # Pull latest main (release-crate may have pushed commits) - git pull --rebase origin main + # # Pull latest main (release-crate may have pushed commits) + # git pull --rebase origin main - if git tag -l "$TAG" | grep -q .; then - echo "Tag $TAG already exists - updating PRLOG without new tag" - # Update PRLOG.md with the release date but don't create new tag - ./scripts/release-prlog.sh "$VERSION" --no-tag 2>/dev/null || \ - ./scripts/release-prlog.sh "$VERSION" - git push origin main || echo "No changes to push" - else - echo "Creating new release for version $VERSION" - ./scripts/release-prlog.sh "$VERSION" - git push origin main --tags - fi + # if git tag -l "$TAG" | grep -q .; then + # echo "Tag $TAG already exists - updating PRLOG without new tag" + # # Update PRLOG.md with the release date but don't create new tag + # ./scripts/release-prlog.sh "$VERSION" --no-tag 2>/dev/null || \ + # ./scripts/release-prlog.sh "$VERSION" + # git push origin main || echo "No changes to push" + # else + # echo "Creating new release for version $VERSION" + # ./scripts/release-prlog.sh "$VERSION" + # git push origin main --tags + # fi # Build release binary and upload to GitHub release for cargo-binstall release-binary: @@ -723,8 +723,13 @@ workflows: - bot-check # Release PRLOG (after crate released) - - release-prlog: + - toolkit/make_release: requires: [release-cull-gmail] context: - release - bot-check + ssh_fingerprint: << pipeline.parameters.fingerprint >> + min_rust_version: << pipeline.parameters.min_rust_version >> + when_cargo_release: false + when_use_workspace: false + pcu_update_prlog: true From b2557ec8f8cdfef80ca85ffa604f625a3eabc293 Mon Sep 17 00:00:00 2001 From: Jerus Bot <171541392+jerus-bot@users.noreply.github.com> Date: Sat, 14 Feb 2026 08:54:21 +0000 Subject: [PATCH 2/2] chore: update prlog for pr Signed-off-by: Jerus Bot <171541392+jerus-bot@users.noreply.github.com> --- PRLOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PRLOG.md b/PRLOG.md index c517209..8dbd6ad 100644 --- a/PRLOG.md +++ b/PRLOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - 👷 ci(circleci)-fix release tag format in CircleCI config(pr [#161]) +- 👷 ci(circleci)-use toolkit to update prlog(pr [#162]) ## [0.1.2] - 2026-02-14 @@ -468,6 +469,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#159]: https://github.com/jerus-org/cull-gmail/pull/159 [#160]: https://github.com/jerus-org/cull-gmail/pull/160 [#161]: https://github.com/jerus-org/cull-gmail/pull/161 +[#162]: https://github.com/jerus-org/cull-gmail/pull/162 [Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.1.2...HEAD [0.1.2]: https://github.com/jerus-org/cull-gmail/compare/v0.1.1...v0.1.2 [0.1.1]: https://github.com/jerus-org/cull-gmail/compare/v0.1.0...v0.1.1