Skip to content

ComplianceAuditlogTest to use signal/wait#1914

Merged
cliu123 merged 1 commit intoopensearch-project:mainfrom
peternied:compliance-uses-signal-wait
Jun 27, 2022
Merged

ComplianceAuditlogTest to use signal/wait#1914
cliu123 merged 1 commit intoopensearch-project:mainfrom
peternied:compliance-uses-signal-wait

Conversation

@peternied
Copy link
Copy Markdown
Member

Description

Recently with the build changes we have been seeing some increased test
failures. Look at the biggest contributors its been the audit tests.
By switching to the established doThenWaitForMessage this should
improve test reliability considerably.

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Recently with the build changes we have been seeing some increased test
failures.  Look at the biggest contributors its been the audit tests.
By switching to the established `doThenWaitForMessage` this should
improve test reliability considerably.

Signed-off-by: Peter Nied <petern@amazon.com>
@peternied peternied requested a review from a team June 24, 2022 22:26
@peternied peternied marked this pull request as draft June 24, 2022 22:26
@peternied
Copy link
Copy Markdown
Member Author

Before converting to a pull request that we merge, want to double check the CI test failures counts and make sure this was an improvement when run via GitHub Actions

}

@Test
public void testUpdatePerf() throws Exception {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This test has been removed because it doesn't verify any behavior of audit logs, all of the functionality has been commented out. Even with the commented out code added back in, that code does not include any verification or 'performance comparisons'.

Implementing perf tests is difficult to do well - I do not recommend that we invest or build on perf testing scenarios.

@peternied peternied marked this pull request as ready for review June 24, 2022 23:37
return true;
}

public static class MessagesNotFoundException extends RuntimeException {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👏

@cliu123 cliu123 merged commit d507ebb into opensearch-project:main Jun 27, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 27, 2022
Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit d507ebb)
DarshitChanpura pushed a commit to DarshitChanpura/security that referenced this pull request Jun 27, 2022
Signed-off-by: Peter Nied <petern@amazon.com>
DarshitChanpura pushed a commit that referenced this pull request Jun 27, 2022
Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit d507ebb)

Co-authored-by: Peter Nied <petern@amazon.com>
stephen-crawford pushed a commit to stephen-crawford/security that referenced this pull request Nov 10, 2022
Signed-off-by: Peter Nied <petern@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
peternied added a commit that referenced this pull request Dec 6, 2022
Windows build and test support for 1.3

- Use most recent format of CI workflows from main
- Backport #2206
- Supply workarounds for JDK8 incompatible APIs for Encoding / Pattern matching (Thanks @cwperks!)
- Backport only freeport logic from #1638
- Backport #1758
- All updates to TestAuditlogImpl.java from main
  - #2180
  - #1935 
  - #1920
  - #1914
  - #1829 
  - And Targeted test updates for ComplianceAuditlogTest and BasicAuditlogTest to keep up with TestAuditlogImpl.java updates

Signed-off-by: Peter Nied <petern@amazon.com>
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
Signed-off-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
…pensearch-project#1915)

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit d507ebb)

Co-authored-by: Peter Nied <petern@amazon.com>
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