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

Comment lint test due to flakiness) #3836

Merged
merged 10 commits into from
Dec 9, 2024
Merged

Conversation

Ponnia-M
Copy link
Contributor

@Ponnia-M Ponnia-M commented Dec 5, 2024

What was the problem?

Lint-and-test stage in CI pipeline was flaky today and it had to be re-ran in order for it to pass. This blocked the PR from being merged unless it was successful.

How does this fix it?[^1]

Since we are shutting down VRO services, commenting this specific test out will prevent re-running this stage for future PRs.

@Ponnia-M Ponnia-M requested a review from gabezurita December 5, 2024 21:12
@Ponnia-M Ponnia-M requested a review from a team as a code owner December 5, 2024 21:12
Copy link
Collaborator

@gabezurita gabezurita left a comment

Choose a reason for hiding this comment

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

Per this discussion, we should comment out the specific flaky test, not the entire lint-and-test portion of the CI run. Let's go ahead and pair on this on Monday.

Details:
If you check the lint-and-test failure, you can track down the specific test [gov.va](http://gov.va/).vro.metricslogging.MetricLoggerServiceTest::testCreateDistributionPointsPayload() (see below):

  Gradle Test Run :shared:lib-metrics:test > Gradle Test Executor 17 > MetricLoggerServiceTest > testCreateDistributionPointsPayload() FAILED
      org.opentest4j.AssertionFailedError at MetricLoggerServiceTest.java:152
  OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
 ...
  > Task :shared:lib-metrics:test
  
  Gradle Test Run :shared:lib-metrics:test > Gradle Test Executor 17 > MetricLoggerServiceTest FAILED
  
  20 tests completed, 1 failed
  
  > Task :shared:lib-metrics:test FAILED
  Failed tests:
  FAILURE: Build failed with an exception.
  - gov.va.vro.metricslogging.MetricLoggerServiceTest::testCreateDistributionPointsPayload()
  
  * What went wrong:
  Execution failed for task ':shared:lib-metrics:test'.
  > There were failing tests. See the report at: file:///home/runner/work/abd-vro/abd-vro/shared/lib-metrics/build/reports/tests/test/index.html

  BUILD FAILED in 10s

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Test Results

102 tests   - 1   102 ✅  - 1   18s ⏱️ ±0s
 31 suites ±0     0 💤 ±0 
 31 files   ±0     0 ❌ ±0 

Results for commit f864cf8. ± Comparison against base commit 040ee76.

This pull request removes 1 test.
gov.va.vro.metricslogging.MetricLoggerServiceTest ‑ testCreateDistributionPointsPayload()

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Dec 9, 2024

JaCoCo Test Coverage

Overall Project 68%

There is no coverage information present for the Files changed

@Ponnia-M
Copy link
Contributor Author

Ponnia-M commented Dec 9, 2024

@gabezurita Thanks for your comment since this helped me find the specific test and comment it out as well as upgrade the gradle version that was also affecting test. Please review at your earliest convenience.

@gabezurita gabezurita self-requested a review December 9, 2024 17:44
Copy link
Collaborator

@gabezurita gabezurita left a comment

Choose a reason for hiding this comment

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

One last thing!

@Ponnia-M Ponnia-M requested a review from gabezurita December 9, 2024 17:45
Copy link
Collaborator

@gabezurita gabezurita left a comment

Choose a reason for hiding this comment

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

Woops, think we accidentally re-requested over my last review:
#3836 (review)

@gabezurita gabezurita self-requested a review December 9, 2024 18:04
Copy link
Collaborator

@gabezurita gabezurita left a comment

Choose a reason for hiding this comment

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

LGTM! Nice job.

@Ponnia-M Ponnia-M merged commit 01200de into develop Dec 9, 2024
15 checks passed
@Ponnia-M Ponnia-M deleted the ponnia/fix-CI-pipeline branch December 9, 2024 18:52
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