-
Notifications
You must be signed in to change notification settings - Fork 468
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
platform-checks: Perform validate() twice in the CI #20901
platform-checks: Perform validate() twice in the CI #20901
Conversation
# Validate again so that introducing non-idempotent validate()s | ||
# will cause the CI to fail. |
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.
Nice 👍
+ self._drop_objects("owner_role_01", 1, expensive=True) | ||
+ self._drop_objects("other_owner", 2, expensive=True) | ||
+ self._drop_objects("owner_role_01", 3) | ||
+ self._drop_objects("other_owner", 4) | ||
+ self._drop_objects("owner_role_01", 5) | ||
+ self._drop_objects("other_owner", 6) | ||
+ self._drop_objects("owner_role_02", 7) | ||
+ self._drop_objects("other_owner", 8) | ||
+ self._drop_objects("owner_role_01", 9) | ||
+ self._drop_objects("owner_role_02", 10) | ||
+ self._drop_objects("owner_role_03", 11) |
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.
This was removed because it is in the validate
part, right?
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.
Yes, it was doing DROP
in the validate() section.
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.
Or maybe I misunderstood the entire test. It still fails anyway, so there is more to it.
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.
nevermind, figured it out. all green now.
0873daa
to
4d3b059
Compare
Make sure at least one step in the per-push CI performs validate() twice. This will weed out any validate()s that are not idempotent. Previously, multiple validate() calls were only present in Nightly.
4d3b059
to
ba709aa
Compare
The validate() method needs to be idempotent
ba709aa
to
966559d
Compare
Make sure at least one step in the per-push CI performs validate() twice. This will weed out any validate()s that are not idempotent.
Previously, multiple validate() calls were only present in Nightly.
Motivation
Nightly CI was failing if non-idempotent validate()s are introduced.