Skip to content

Update job status based on parallel and rerun job status#6185

Merged
sophia-guo merged 25 commits intoadoptium:masterfrom
sophia-guo:status
May 22, 2025
Merged

Update job status based on parallel and rerun job status#6185
sophia-guo merged 25 commits intoadoptium:masterfrom
sophia-guo:status

Conversation

@sophia-guo
Copy link
Copy Markdown
Contributor

Close #6000

Copy link
Copy Markdown
Contributor

@karianna karianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that overall we have a state machine here. Might be worth taking a 1,000 foot step back and rethinking how this is designed / coded with that in mind.

* If the JOB_NAME contains _rerun, _testList_ or _iteration_, rerun job will not be triggered at the same level.
*/
def triggerRerunJob (rerunTestJobParams) {
//rerunTestJobParams should be part of return of the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment seems cut off?

def rerunResults = archiveChildJobTap(childJobs, originalStatus)
currentBuild.result = rerunResults.jobStatus
} else {
echo " Either all rerun succeed or there are aborted?"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't quite parse for me

@sophia-guo sophia-guo marked this pull request as draft April 15, 2025 03:52
@andrew-m-leonard
Copy link
Copy Markdown
Contributor

I feel that overall we have a state machine here. Might be worth taking a 1,000 foot step back and rethinking how this is designed / coded with that in mind.

It's certainly a little complex.. but i'd rather take that point as a new "issue". This PR is essential to be able to determine jck success for public users who do not have access to tck.........

@smlambert
Copy link
Copy Markdown
Contributor

I am going to add some documentation / table in the original issue to help clarify the expected behaviour in the various cases.

@sophia-guo sophia-guo force-pushed the status branch 4 times, most recently from cae2b82 to efabfa0 Compare April 18, 2025 04:02
@sophia-guo sophia-guo force-pushed the status branch 3 times, most recently from 7d247d1 to 7006762 Compare April 30, 2025 13:00
@sophia-guo
Copy link
Copy Markdown
Contributor Author

sophia-guo commented May 1, 2025

Non-parallel

Parallel

sophia-guo added 11 commits May 22, 2025 11:47
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
params.PARALLEL is immutable.

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
After the rerun if there is any.

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
@sophia-guo sophia-guo self-assigned this May 22, 2025
@sophia-guo sophia-guo marked this pull request as ready for review May 22, 2025 15:49
@sophia-guo sophia-guo marked this pull request as draft May 22, 2025 17:07
@sophia-guo sophia-guo marked this pull request as ready for review May 22, 2025 18:27
@sophia-guo
Copy link
Copy Markdown
Contributor Author

sophia-guo commented May 22, 2025

@sophia-guo sophia-guo merged commit eb09c0b into adoptium:master May 22, 2025
2 checks passed
@pshipton
Copy link
Copy Markdown
Member

pshipton commented May 22, 2025

OpenJ9 test job are failing with java.lang.NoSuchMethodError: No such DSL method 'triggerRerunJob' which seems likely caused by this change. I'm going to revert it for now before the nightly builds start. Otherwise I suspect all the test jobs will have a fail status.

Created #6275 to revert.

https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.functional_aarch64_mac_OMR_testList_0/513/console

@llxia
Copy link
Copy Markdown
Contributor

llxia commented May 23, 2025

Just for the record, we noticed Grinder's child job failed, but the overall status is green (pass) internal link during the same time frame. It seems likely to be caused by this change.

@sophia-guo
Copy link
Copy Markdown
Contributor Author

sophia-guo commented Jul 13, 2025

Reopen this PR by ##6407.

#6185 (comment)

I can reproduce this --grinder , parallel and rerun not enabled https://ci.adoptium.net/job/Grinder/13563/console
Fix https://ci.adoptium.net/job/Grinder/13567/console

java.lang.NoSuchMethodError: No such DSL method 'triggerRerunJob' - can not reproduce in adoptium. May need more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

With rerun feature enabled, test job status may not be correct

6 participants