-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Persist automatic entity merges #29568
base: main
Are you sure you want to change the base?
Conversation
22f00d2
to
4f904f8
Compare
bc4fb3f
to
53b7098
Compare
CI Results: |
Build Results: |
53b7098
to
6e4a30c
Compare
repeats := 50 | ||
|
||
for name, flags := range tests { | ||
t.Run(t.Name()+"-"+name, func(t *testing.T) { | ||
// Create a random source specific to this test case so every test case | ||
// starts out from the identical random state given the same seed. We do | ||
// want each iteration to explore different path though so we do it here | ||
// not inside the test func. | ||
seed := rand.New(rand.NewSource(seedval)) // Seed for deterministic test | ||
flags.seed = seed | ||
|
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.
Do you think we should keep this?
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.
I don't mind removing it, but it has helped us find problems earlier by running different seeds as part of the same test.
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.
No worries either way -- I don't insist! In my mind we could accomplish the same thing by using untilfail
, but it may also be useful to have multiple test runs.
My only concerns are:
- Test bloat on this runner.
- Potential for no net-gain having this in CI, since we retry failures to weed out flakes, and that might mask a failing seed.
e033f74
to
9af56aa
Compare
9af56aa
to
e180ae7
Compare
Description
This PR adds persistence to automatic merges of entities. Before, this was only happening in cache and could cause non-deterministic behavior, whereas multiple nodes had a different view of cache.
TODO only if you're a HashiCorp employee
backport/
label that matches the desired release branch. Note that in the CE repo, the latest release branch will look likebackport/x.x.x
, but older release branches will bebackport/ent/x.x.x+ent
.of a public function, even if that change is in a CE file, double check that
applying the patch for this PR to the ENT repo and running tests doesn't
break any tests. Sometimes ENT only tests rely on public functions in CE
files.
in the PR description, commit message, or branch name.
description. Also, make sure the changelog is in this PR, not in your ENT PR.