-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
enhancement: Improve message when missing resource for array fields #3733
enhancement: Improve message when missing resource for array fields #3733
Conversation
Code Climate has analyzed commit c687715 and detected 0 issues on this pull request. View more on Code Climate. |
Hey @Paul-Bob . Just got done with this. Tagging you here because i can't see the "request for review" button. PS: I have some questions regarding how Avo does testing so that in the future i don't run into the "tests are failing on my local machine but passing on main" issue from yesterday. Kindly get back to me when you have some time regarding this. As for this PR, if it gets merged, I'll pick up another issue for assignment ASAP. |
Hi @zhephyn thanks for submitting this contribution.
Do you have any specific questions? What happened yesterday was that your PR included a lot of unrelated changes, which caused some tests to fail. Most likely, your local branch was outdated when you created it. To prevent this in the future, always run
Sounds good! I'll review this one today |
Yeah partly the issue was that the branch was updated, but even when working on the branch for this new PR, after pulling the latest changes, when i ran some tests, some of them were still failing. I spent the entire part of today's morning trying to figure out why this happens, even considered running the tests in a docker container. What option do you guys recommend when running the tests locally which mirrors atleast what the github CI does when running the tests? Is running the tests in a docker container a good option? To give an example, the missing_resource_message method is flagged by rubocop stating that the line below is too long, However, on pushing the code, Github CI didn't flag this and the check passed. It's this kind of thing that is frustrating. I don't know if there is an option/gem i can run locally that mirrors exactly how the github CI does its checks so that i don't run into these discrepancies. |
I'm sorry you had to go through that, I know how frustrating it can be. I just pushed a commit that addresses some local testing issues. Could you pull the latest changes and check if the tests are still failing on your end? If they are, please share the error messages and test details so we can debug together. Since local environments vary across developers, test behavior can sometimes be inconsistent. If the issue persists even after syncing with I also came across
We use StandardRB, and the action runs via this repository. Did you run For the failing
If you’re looking for a way to mirror GitHub CI checks locally, This PR looks good, thanks for submitting it, I'll just commit some tweaks and merge it! |
Description
Improves message shown when missing a resource such that when the resource is of the type array, we display it with an array --array flag. This is a newer cleaner PR unlike the one from yesterday.
Fixes #3713
Checklist: