Skip to content
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

upgrade java 21 #611

Merged
merged 130 commits into from
Jul 11, 2024
Merged

upgrade java 21 #611

merged 130 commits into from
Jul 11, 2024

Conversation

Ian-Nara
Copy link
Contributor

No description provided.

Ian-Nara and others added 30 commits June 11, 2024 14:02
- name: Build UID2 AWS EIF
id: build_uid2_eif
uses: IABTechLab/uid2-operator/.github/actions/build_aws_eif@main
uses: IABTechLab/uid2-operator/.github/actions/build_aws_eif@ian-UID2-3362-upgrade-java-21
Copy link
Contributor Author

Choose a reason for hiding this comment

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

change back to main before merging


- name: Check disk usage
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's leave these for debugging purpose

public void Shutdown(int status) {
System.exit(status);

// according to the docks, this should not be reached as System.exit does not complete either normally or abruptly.
Copy link
Contributor

Choose a reason for hiding this comment

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

docs, not docks

System.setSecurityManager(origSecurityManager);
}
});
testContext.completeNow();
Copy link
Contributor

Choose a reason for hiding this comment

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

This test should assert that the shutdown service was not called

System.setSecurityManager(origSecurityManager);
}
});
verify(shutdownService).Shutdown(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be part of the assertAll


when(clock.instant()).thenAnswer(i -> Instant.now().plus(12, ChronoUnit.HOURS));
assertDoesNotThrow(() -> {
this.operatorShutdownHandler.handleSaltRetrievalResponse(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Assert shutdown service not called

@Ian-Nara Ian-Nara merged commit 60f225b into main Jul 11, 2024
4 checks passed
@Ian-Nara Ian-Nara deleted the ian-UID2-3362-upgrade-java-21 branch July 11, 2024 18:31
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.

3 participants