From c867d5c8789e500805b9f611b29297eaa81d6837 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 12 Dec 2025 10:28:28 +0900 Subject: [PATCH 1/5] debug --- .github/workflows/debug.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/debug.yml diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 0000000..d3c0b3f --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,48 @@ +name: Publish gem to rubygems.org + +on: + pull_request: + +permissions: + contents: read + +jobs: + push: + if: github.repository == 'pepabo/oneaws' + runs-on: ubuntu-latest + + environment: + name: rubygems.org + url: https://rubygems.org/gems/oneaws + + permissions: + contents: write + id-token: write + + steps: + # Set up + - name: Harden Runner + uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 + with: + egress-policy: audit + + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Set up Ruby + uses: ruby/setup-ruby@fb404b9557c186e349162b0d8efb06e2bc36edea # v1.232.0 + with: + bundler-cache: true + ruby-version: ruby + bundler: latest + + ## Release + #- name: Publish to RubyGems + # uses: rubygems/release-gem@9e85cb11501bebc2ae661c1500176316d3987059 # v1 + + - name: debug + run: | + set -x + bundle exec gem list + cat Gemfile.lock || true + bundle exec rake -T + bundle exec rake build From 36ba410c952bdb41a7c0c5c16ab9e9584b4d8e07 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 12 Dec 2025 10:39:18 +0900 Subject: [PATCH 2/5] debug --- .github/workflows/debug.yml | 69 +++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 37 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index d3c0b3f..7c17829 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -1,48 +1,43 @@ -name: Publish gem to rubygems.org +name: Debug bundler cache on: pull_request: - -permissions: - contents: read + workflow_dispatch: jobs: - push: - if: github.repository == 'pepabo/oneaws' + debug-cache: runs-on: ubuntu-latest - - environment: - name: rubygems.org - url: https://rubygems.org/gems/oneaws - - permissions: - contents: write - id-token: write - steps: - # Set up - - name: Harden Runner - uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 - with: - egress-policy: audit + - uses: actions/checkout@v4 - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Set up Ruby - uses: ruby/setup-ruby@fb404b9557c186e349162b0d8efb06e2bc36edea # v1.232.0 + - name: Download bundler cache (restore only) + uses: actions/cache/restore@v4 with: - bundler-cache: true - ruby-version: ruby - bundler: latest - - ## Release - #- name: Publish to RubyGems - # uses: rubygems/release-gem@9e85cb11501bebc2ae661c1500176316d3987059 # v1 + path: ./cache + key: setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 + restore-keys: | + setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock- - - name: debug + - name: List cache contents + run: | + echo "Cache directory contents:" + ls -la ./cache || echo "Cache directory not found" + echo "" + echo "Recursive cache directory listing:" + ls -laR ./cache || echo "Cache directory not found for recursive listing" + echo "" + find ./cache -type f -name "*.lock" 2>/dev/null || echo "No .lock files found" + + - name: Show current Gemfile.lock + run: | + echo "Current Gemfile.lock contents:" + if [ -f Gemfile.lock ]; then + cat Gemfile.lock + else + echo "Gemfile.lock not found in current directory" + fi + + - name: Search for Gemfile.lock in cache run: | - set -x - bundle exec gem list - cat Gemfile.lock || true - bundle exec rake -T - bundle exec rake build + echo "Searching for Gemfile.lock in cache directory:" + find ./cache -name "Gemfile.lock" -type f -exec echo "Found: {}" \; -exec cat {} \; 2>/dev/null || echo "No Gemfile.lock found in cache" From b1c921482128c30a55ca3ccec41a112f8d457221 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 12 Dec 2025 10:42:24 +0900 Subject: [PATCH 3/5] debug --- .github/workflows/debug.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 7c17829..4563d15 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -10,13 +10,25 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Check cache key info + run: | + echo "Target cache key:" + echo "setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60" + echo "" + echo "Key length: $(echo 'setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60' | wc -c)" + - name: Download bundler cache (restore only) uses: actions/cache/restore@v4 with: path: ./cache key: setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 restore-keys: | + setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock- + setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws- + setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3- + setup-ruby-bundler-cache-v6-ubuntu-24.04- + setup-ruby-bundler-cache-v6- - name: List cache contents run: | From 37d08f580df2e9f5b9a6fefd84a8439f98d81f4f Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 12 Dec 2025 10:47:53 +0900 Subject: [PATCH 4/5] v5 --- .github/workflows/debug.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 4563d15..5361dd0 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -18,12 +18,12 @@ jobs: echo "Key length: $(echo 'setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60' | wc -c)" - name: Download bundler cache (restore only) - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 with: path: ./cache key: setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 + setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 restore-keys: | - setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock- setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws- setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3- From f735266ae8bbcb5a55b225173f985f54057767ab Mon Sep 17 00:00:00 2001 From: buty4649 Date: Fri, 12 Dec 2025 10:49:45 +0900 Subject: [PATCH 5/5] fix --- .github/workflows/debug.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 5361dd0..9f86e4a 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -22,7 +22,6 @@ jobs: with: path: ./cache key: setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 - setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock-36065e319b837aa77cd3b4c14c539ffdd8faf90b6849cdd0ada7543b3fc87f60 restore-keys: | setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-with--without--only--Gemfile.lock- setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.3-wd-/home/runner/work/oneaws/oneaws-