-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue 265 and 268 and improve logging #281
Fix issue 265 and 268 and improve logging #281
Conversation
we could use _get_destination_folder here but when is_removed is set to True, dest_folder is not used fixes kiwigrid#268
58f533f
to
52249ed
Compare
Hi, thank you for contribution. That's great. Could you please add as well some tests including for example secret and config map with the same name? |
@tomrk-esteam8 I added some tests as requested, but I'm not sure how to run them locally and they need to be approved first to run in GHA. Currently there are no tests for the |
71b5ac1
to
7d0e75d
Compare
@jekkel @tomrk-esteam8 I fixed the tests, can someone re-approve? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be fine for me, when tests will work, we can merge @jekkel
No idea why the test fails. To to pinpoint the issue, I modified the workflow to also upload artifacts with all the expected files after first sync. I also split up the tests by Can you approve the changes? |
fb87a49
to
431c54c
Compare
I forgot an |
It looks like the problem was in the pythonscript test. The test compares the number of |
ok, I am just approving tests today for you, will chec it more detail when it works tomorrow, thank you for your work here :) |
May I suggest to redesign the tests so they can be run on the local machine without a dependency on the GHA workflow? It makes sense to require approval for changes to the GHA workflow but right now it seems to be the only way to run the the tests. And because the tests are embedded in the GHA workflow config every little change needs a new approval. Tests failed again but the good news is that the pythonscript test works now, and it seems to be just a copy-paste error I made. Pushed another fix. |
thanks for suggestion, we will discuss it |
@jekkel few things changed, would love to have your expertise here, thanks |
That's something we wished for quite some time already. I was thinking about using some kind of regular python test framework such that there's some tool support at least. Do you have any specific suggestions? Can you imagine to contribute this? |
This PR fixes #265 and #268.
I also improved logging a bit because I had a hard time understanding the control flow.
printf()
when a file cannot be removedI built changes in a local image and it seems to work again.