Updating workflow file on master and rerunning an action still shows old workflow file

The scenario is:

  1. GitHub action is triggered
  2. There’s a problem with the workflow file of said action and it fails
  3. Workflow file is updated on the master branch
  4. Rerun the action from step 2
  5. Clicking the “Workflow file tab” shows the workflow file before step 3 even though the rerun uses the workflow updated in step 3

The unexpected behavior for me here is showing the old workflow file instead of the one that’s currently running.

Hi @davidtvs ,

Checked on my side, re-run failed workflow will still use the old workflow yaml. 

I used ‘actions/checkout@ v3’ to fail the workflow, and update with v2 which is the correct version. Re-run failed workflow still use old yaml, screenshot as below:

Could you please have a double check ? If the issue persists, please share your repo/workflow yaml for futher investigation.

Thanks.

The action where I noticed the behavior is this one: https://github.com/davidtvs/pytorch-lr-finder/runs/694266910?check_suite_focus=true

It was failing on the step “Run actions/checkout@v2 - Fetching the repository”. The workflow file when it failed was this one. I actually re-ran multiple times before making changes to the workflow and the action always failed at that step. I then pushed a fix to master updating the workflow to this and re-ran the action which then ran correctly.

Is there a way I can access the logs of the previous re-runs?

I will also try to replicate the issue again.

Hi @davidtvs ,

Thanks for your reply! The failed workflow yaml has same commit/tree ID with the fixed one, looks them are identical. Could you please let me know what did you fix?

And can you reproduce on your workflow now? the checkrun id is different between the failed workflow and re-run workflow, so you can record the id for comparison.

checkrunid.png

If it cannot be reproduced, i assume it could be a temporary problem.

Thanks

Oops, I copy and pasted the same link twice:

The old workflow: https://github.com/davidtvs/pytorch-lr-finder/blob/22b5f609324cdb6c6587cf52a8b0a4ca0e9216c8/.github/workflows/flake8_lint.yml#L14

The new workflow: https://github.com/davidtvs/pytorch-lr-finder/blob/master/.github/workflows/flake8_lint.yml#L14

I updated the previous post with the correct links.

I’ll try to reproduce this issue later today.

Seems like my post got deleted. Do you need me to post the steps to replicate again @weide-zhou?

Hi @davidtvs,

No, i have your steps which deleted by the forum update.
I have raised an internal ticket to confirm the logic, will update once there’s a response.

Thanks for your patience!