odo doesn't properly re-sync all files if a new deployment is created on 'odo push' #3847
Labels
area/devfile-spec
Issues or PRs related to the Devfile specification and how odo handles and interprets it.
kind/bug
Categorizes issue or PR as related to a bug.
priority/High
Important issue; should be worked on before any other issues (except priority/Critical issue(s)).
/kind bug
/area devfile
I'm seeing an issue on master with
odo push
when we re-sync the files of a project after a component restart (such as from changing the env in the devfile). The push will succeed and it will say the source code synced fine, but if I exec into the container (or look at its logs), I'll see that only the devfile (and whatever files were changed locally or created as part of the build), were synced, and the rest of the source code was not syncedFiles synced on first odo push (full logs: first-push.txt):
Files synced on
odo push
with redeploy (full logs: push-redeploy.txt):If I use the
-f
flag on odo push, sync is still broken. Additionally, the issue can be seen if you doodo delete
, followed byodo push
again.It seems we're not properly detecting the scenarios where we need to bypass the
odo-file-index.json
file and do a full sync (such as component redeploy, or force push)The text was updated successfully, but these errors were encountered: