You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Third job (cleanup) is always run (even on failures) ci.yml
deletes config
moves config-old to config
If workflow is stopped before second job then config is deleted in third and next step fails because there is no config-old to move.
Next run fails on second job because in previous job config was deleted but not recreated.
Solutions you've tried
Not tested but quick fix would be to remove rm -f ~/.ssh/config.
Next step (mv ~/.ssh/config-old ~/.ssh/config) would still fail in this case but config wouldn't be deleted.
The text was updated successfully, but these errors were encountered:
How about moving cp ~/.ssh/config ~/.ssh/config-old to the beginning of the first workflow? That would reduce the probability of config-old not existing.
@PLangowski I guess it's ok, this way clean job would most likely always succeed, but I would still remove rm part and leave only mv.
Or you can do it as @macpijan said and maybe create copy of ~/.ssh/config if it's needed.
Component
Dasharo Tools Suite
Device
other
Dasharo version
No response
Dasharo Tools Suite version
No response
Test case ID
No response
Brief summary
Stopped/failed CI action can delete
~/.ssh/config
which will lead to failure on next runHow reproducible
Always
How to reproduce
Expected behavior
Previous workflow errors shouldn't influence current one
Actual behavior
workflow fails because previous action change expected state
https://github.com/Dasharo/meta-dts/actions/runs/9997346441/job/27634154969
Screenshots
No response
Additional context
https://github.com/Dasharo/meta-dts/actions/runs/9996958212/job/27633519716
and
https://github.com/Dasharo/meta-dts/actions/runs/9997346441/job/27634154969
config-old
: ci.ymlconfig
config-old
toconfig
If workflow is stopped before second job then
config
is deleted in third and next step fails because there is noconfig-old
to move.Next run fails on second job because in previous job
config
was deleted but not recreated.Solutions you've tried
Not tested but quick fix would be to remove
rm -f ~/.ssh/config
.Next step (
mv ~/.ssh/config-old ~/.ssh/config
) would still fail in this case butconfig
wouldn't be deleted.The text was updated successfully, but these errors were encountered: