From 3a23e161f3d1d26c0d6f3b86d9f587944d891c86 Mon Sep 17 00:00:00 2001 From: Hazel Caballero Date: Tue, 28 Jul 2026 13:31:19 -0500 Subject: [PATCH 1/4] Add REFERENCE.md freshness check to PR workflow --- .../pupmod/_github/workflows/pr_tests.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml index 93d05dc..6f1208a 100644 --- a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml +++ b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml @@ -84,6 +84,24 @@ jobs: - run: bundle exec rake check:dot_underscore - run: bundle exec rake check:test_file + reference: + name: 'REFERENCE.md freshness' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: 'Install Ruby 2.7' + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - name: 'Regenerate REFERENCE.md and fail on drift' + run: | + bundle exec rake strings:generate:reference + git diff --exit-code -- REFERENCE.md || { + echo '::error file=REFERENCE.md::REFERENCE.md is stale. Run `bundle exec rake strings:generate:reference` and commit the result.' + exit 1 + } + releng-checks: name: 'RELENG checks' runs-on: ubuntu-latest From bc8a3884e4ffd9e80094b4ef9626f4d6ba9613bf Mon Sep 17 00:00:00 2001 From: Hazel Caballero Date: Tue, 28 Jul 2026 13:37:09 -0500 Subject: [PATCH 2/4] Update REFERENCE.md validation command in PR workflow --- modules/profile/files/pupmod/_github/workflows/pr_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml index 6f1208a..efc732f 100644 --- a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml +++ b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml @@ -96,7 +96,7 @@ jobs: bundler-cache: true - name: 'Regenerate REFERENCE.md and fail on drift' run: | - bundle exec rake strings:generate:reference + run: 'bundle exec rake validate:strings' git diff --exit-code -- REFERENCE.md || { echo '::error file=REFERENCE.md::REFERENCE.md is stale. Run `bundle exec rake strings:generate:reference` and commit the result.' exit 1 From 159c68b7bce5e98d4e312465c99ba75d1ad7a946 Mon Sep 17 00:00:00 2001 From: Hazel Caballero Date: Tue, 28 Jul 2026 13:40:44 -0500 Subject: [PATCH 3/4] Fix REFERENCE.md regeneration command in PR workflow --- modules/profile/files/pupmod/_github/workflows/pr_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml index efc732f..187ec8c 100644 --- a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml +++ b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml @@ -96,7 +96,7 @@ jobs: bundler-cache: true - name: 'Regenerate REFERENCE.md and fail on drift' run: | - run: 'bundle exec rake validate:strings' + 'bundle exec rake validate:strings' git diff --exit-code -- REFERENCE.md || { echo '::error file=REFERENCE.md::REFERENCE.md is stale. Run `bundle exec rake strings:generate:reference` and commit the result.' exit 1 From 762216bffdac7357ecb056d93a380c24a2a503aa Mon Sep 17 00:00:00 2001 From: Hazel Caballero Date: Tue, 28 Jul 2026 13:42:15 -0500 Subject: [PATCH 4/4] Run validate:strings as a plain workflow step Co-Authored-By: Claude Fable 5 --- .../profile/files/pupmod/_github/workflows/pr_tests.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml index 187ec8c..2ed06e8 100644 --- a/modules/profile/files/pupmod/_github/workflows/pr_tests.yml +++ b/modules/profile/files/pupmod/_github/workflows/pr_tests.yml @@ -94,13 +94,7 @@ jobs: with: ruby-version: 2.7 bundler-cache: true - - name: 'Regenerate REFERENCE.md and fail on drift' - run: | - 'bundle exec rake validate:strings' - git diff --exit-code -- REFERENCE.md || { - echo '::error file=REFERENCE.md::REFERENCE.md is stale. Run `bundle exec rake strings:generate:reference` and commit the result.' - exit 1 - } + - run: bundle exec rake validate:strings releng-checks: name: 'RELENG checks'