-
Notifications
You must be signed in to change notification settings - Fork 26
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
Detect more images from commonly used crds #833
Conversation
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 good to me generally. I'd like to see some more tests for the kind logic.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #833 +/- ##
=======================================
Coverage 93.32% 93.33%
=======================================
Files 21 21
Lines 2412 2415 +3
=======================================
+ Hits 2251 2254 +3
Misses 161 161 ☔ View full report in Codecov by Sentry. |
Looking great. Can you add a test for the |
Marking as draft until PR is ready for additional review. |
I'm going to add the test so we can get this in and prepare a release. |
Oh, i don't have permission to push to your branch. Anyway, here are what the tests look like: https://github.com/allenporter/flux-local/compare/custom-image-tests?expand=1 |
@allenporter Tests added and ready |
Can you also re-run the snapshot update?
Not sure if it changed with other stuff I was doing in parallel but its now failing. (We can ignore the diff test) |
|
|
@allenporter Yeah, the rebase now shows a ton of errors. I'm at a loss here. |
Yeah i added like 3 or 4 new features yesterday, so not too surprising. Re running with new snapshots after the rebase should help. (Ignore any merge errors in the snapshots, and any snapshot related to |
@allenporter I pulled the upstream and tests, so tests are already failing w/o this PR. |
CI ran on the last commit and is succeeding. The error "flux-local get clusters: error: argument --output/-o: invalid choice: 'json' (choose from diff, yaml)" means something got dropped in the rebase since you're missing that flag I think |
I got it all working but I can't get
|
My impression is that these are the new images being added in this PR, and so the new tests I added in another PR also need their snapshots updated with this command:
|
The command runs but tests still fail. I'm going to close this PR as it seems undoable. |
The snapshot file is |
I deleted my previous branch of your PR
Then checked out this PR again:
Then was able to see the problem on CI -- presumably you see the same error locally.
Then was able to update the snapshot locally:
So the tests pass by producing this diff in the snapshot:
|
I'm going to try to see if I can push to the existing PR or if it needs a new one. |
Can you enable "Allow edits from maintainers" so i can push to your branch or is it too late? https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork#enabling-repository-maintainer-permissions-on-existing-pull-requests |
![]() It looks like it's already checked |
Thanks, I must have done the command wrong. Looks like I got it working. |
Thank @buroa appreciate the contribution here! thanks for the patience with all the merge nonsense. |
Thank you, I could not figure out these tests, I tried lol. |
Hey Allen,
Not sure if this is the best way forward for this request, but I am trying to collect more images to pre-pull them when I see updates.
Let me know if you want to improve this.