From d2ad76e152214db0361fd1db87d798fa7ea8b442 Mon Sep 17 00:00:00 2001 From: Craig Reese <109101548+craigrva@users.noreply.github.com> Date: Mon, 15 Jul 2024 11:24:16 -0500 Subject: [PATCH 1/2] add Errno::EISDIR to clear_cache rescue block (#22114) --- spec/support/clear_cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/clear_cache.rb b/spec/support/clear_cache.rb index 1df8b3d17df..17f8cafdcd3 100644 --- a/spec/support/clear_cache.rb +++ b/spec/support/clear_cache.rb @@ -18,7 +18,7 @@ config.after(:each) do Rails.cache.clear REDIS_NAMESPACES.each { |namespace| delete_matched(namespace: namespace) } - rescue Errno::ENOENT, Errno::ENOTEMPTY => error + rescue Errno::ENOENT, Errno::ENOTEMPTY, Errno::EISDIR => error # flakey at CircleCI. Don't fail tests because of this. Rails.logger.error(error) end From 95fec6f6af7ce9428d1eb1cdd02bc11a67715504 Mon Sep 17 00:00:00 2001 From: Craig Reese <109101548+craigrva@users.noreply.github.com> Date: Mon, 15 Jul 2024 11:55:28 -0500 Subject: [PATCH 2/2] APPEALS-51230: Add tmp/examples.txt to Github Actions artifacts (#22124) * add examples.txt to gha workflow * rename examples and bullet files even if failure --- .github/workflows/workflow.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e1e1d67f329..6e17eb068a6 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -234,6 +234,15 @@ jobs: with: path: ./tmp/capybara + - name: Rename examples.txt + if: success() || failure() + run: mv ./tmp/examples.txt ./tmp/examples-${{matrix.ci_node_index}}.txt + - uses: actions/upload-artifact@v3 + if: success() || failure() + name: Upload tmp/examples.txt + with: + path: ./tmp/examples-${{matrix.ci_node_index}}.txt + - name: Compress test logs if: failure() run: tar -czvf ./log/test-${{matrix.ci_node_index}}.log.tar.gz ./log/test.log @@ -243,7 +252,9 @@ jobs: with: path: ./log/test-${{matrix.ci_node_index}}.log.tar.gz - - run: cp ./log/bullet.log ./log/bullet-${{matrix.ci_node_index}}.log + - name: Rename bullet.log + if: success() || failure() + run: mv ./log/bullet.log ./log/bullet-${{matrix.ci_node_index}}.log - uses: actions/upload-artifact@v3 if: success() || failure() name: bullet-${{matrix.ci_node_index}}.log