cache icon indicating copy to clipboard operation
cache copied to clipboard

Adding cache steps makes two skipped checks wait indefinitely.

Open blane1988 opened this issue 6 years ago • 5 comments

Hello,

As the image shows, I am skipping two PR checks when they are not needed. Without cache actions in my steps, the two checks are skipped and I can merge (even if they are required). When I add cache actions and job runs again, it shows the two skipped steps, but then two duplicates of those skipped steps get added and PR waits forever for them.

Screen Shot 2020-05-19 at 9 46 28 AM

blane1988 avatar May 20 '20 20:05 blane1988

👋 Hey @blane1988, could you share your workflow file?

I would not expect the cache action to change the checks reported for a workflow.

joshmgross avatar May 21 '20 14:05 joshmgross

Hi @joshmgross , thanks for the response.

Here is the flow. The same PR has been stuck waiting for results for a couple days (just wanted to see if anything would eventually happen). And then when I open a PR with a workflow that doesn't have caching steps included, the checks pass (or are skipped) and then I can merge.

The last two checks (ios-unit-tests and android-build-test) are the ones that can be skipped, and those are the ones that are stuck waiting for check results. These two jobs depend on the job above them (native-files-check).

blane1988 avatar May 21 '20 15:05 blane1988

And just FYI, here is what a PR looks like if I remove caching:

Screen Shot 2020-05-21 at 2 03 39 PM

blane1988 avatar May 21 '20 19:05 blane1988

Thanks for the extra info.

In the first screenshot, you can see that the jobs still run with caching, but they don't match the expected names of the required checks.

Since the required check names are capitalized ("iOS Unit Tests"), could you update your caching workflow to make sure those names match the correct casing?

ios-unit-tests:
-     name: iOS unit tests
+     name: iOS Unit Tests
      needs: native-files-check
      if: needs.native-files-check.outputs.run_ios_job == 'true'
      runs-on: macos-latest
 android-build-test:
-     name: Android debug build
+     name: Android Debug Build
      needs: native-files-check
      if: needs.native-files-check.outputs.run_android_job == 'true'
      runs-on: ubuntu-latest

joshmgross avatar May 21 '20 19:05 joshmgross

Thanks @joshmgross, that was the ticket!

blane1988 avatar May 21 '20 19:05 blane1988