dataverse icon indicating copy to clipboard operation
dataverse copied to clipboard

Fix intermittent IT test failures for HarvestingClientsIT

Open stevenwinship opened this issue 1 year ago • 5 comments

Description: Intermittent failures happen during IT tests pointing to HarvestingClientsIT

Closes: #10438

How to test this: Observe other PRs and see if any fail on this test

stevenwinship avatar Mar 29 '24 15:03 stevenwinship

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Mar 29 '24 15:03 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Mar 29 '24 16:03 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Mar 29 '24 17:03 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Mar 29 '24 22:03 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Mar 29 '24 22:03 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 09 '24 16:04 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 09 '24 16:04 github-actions[bot]

Added back the assert for exact harvest count and added an extra second to the wait.

stevenwinship avatar Apr 09 '24 18:04 stevenwinship

When/if Jenkins comes back to life, if the tests complete w/out failing 3 times in a row with this extra second added, I'll vote for merging it quickly; if it keeps happening, we'll revisit it then.

landreev avatar Apr 09 '24 22:04 landreev

I started a build by hand just now.

landreev avatar Apr 10 '24 14:04 landreev

@stevenwinship Could you please sync the branch up with develop, appears to be the reason the last Jenkins run bombed.

landreev avatar Apr 10 '24 16:04 landreev

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 10 '24 19:04 github-actions[bot]

one successful run earlier today (build 14). build 15: a really weird failure - the other harvesting test, testHarvestingClientRun_AllowHarvestingMissingCVV_True, 4 datasets harvested instead of 8. (??)

landreev avatar Apr 10 '24 23:04 landreev

Don has fixed the payara distribution issue. But it's still Jenkins roulette, with the harvesting tests failing half of the times; somehow it's been made worse so far. So no, we are not merging this PR just yet. If I have time I'll look into it some more.

landreev avatar Apr 11 '24 14:04 landreev

ok, one mystery solved - I just left a comment in #10464, the PR I merged yesterday; the new errors are the result of the extra check added, which is performed before the async. indexing gets a chance to finish.

landreev avatar Apr 11 '24 16:04 landreev

also, just saw that you have fixed it already.

landreev avatar Apr 11 '24 16:04 landreev

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 11 '24 16:04 github-actions[bot]

also, just saw that you have fixed it already.

OK, you have fixed the cleanup part - but the search check in line 278 may still bomb for the same async. reason - ? ... I'll shut up and let you handle this.

landreev avatar Apr 11 '24 16:04 landreev

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 11 '24 19:04 github-actions[bot]

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 11 '24 20:04 github-actions[bot]

Anyway, I just want to see it pass a few times in a row and merge it without further ado.

landreev avatar Apr 12 '24 19:04 landreev

:package: Pushed preview images as

ghcr.io/gdcc/dataverse:10438-fix-intermittent-harvesting-tests
ghcr.io/gdcc/configbaker:10438-fix-intermittent-harvesting-tests

:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.

github-actions[bot] avatar Apr 12 '24 19:04 github-actions[bot]

There were more annoying unrelated Jenkins failures. But the 2 harvesting tests have objectively passed three times in a row. Merging.

landreev avatar Apr 12 '24 22:04 landreev