Skip to content

[CASSSIDECAR-476] Fix SpotBugs violation and add spotbugsIntegrationTest to CI#364

Closed
pauloricardomg wants to merge 2 commits into
apache:trunkfrom
pauloricardomg:CASSSIDECAR-476
Closed

[CASSSIDECAR-476] Fix SpotBugs violation and add spotbugsIntegrationTest to CI#364
pauloricardomg wants to merge 2 commits into
apache:trunkfrom
pauloricardomg:CASSSIDECAR-476

Conversation

@pauloricardomg

Copy link
Copy Markdown
Contributor

Summary

  • Fix SpotBugs null pointer dereference warning in ClusterOpsDatabaseAccessorIntegrationTest by adding an explicit assertThat(...).isNotNull() before dereferencing the findJob() return value
  • Add spotbugsIntegrationTest to CircleCI and GitHub CI lightweight integration jobs so SpotBugs violations in integration test sources are caught in CI

Context

The spotbugsIntegrationTest task was not run in any CI pipeline:

  • GitHub CI unit-tests job runs build -x integrationTest, which skips integration test SpotBugs
  • CircleCI/GitHub integration test jobs only run checkstyleIntegrationTest and test execution tasks

This allowed the SpotBugs violation to go undetected during commit.

@pauloricardomg pauloricardomg changed the title [CASSSIDECAR-434] Fix SpotBugs violation and add spotbugsIntegrationTest to CI [CASSSIDECAR-476] Fix SpotBugs violation and add spotbugsIntegrationTest to CI Jun 16, 2026

@frankgh frankgh left a comment

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.

+1

…tegrationTest

Add explicit null assertion for the findJob() return value before
dereferencing fields, resolving spotbugsIntegrationTest failure.
The spotbugsIntegrationTest task was not run in either CI system,
allowing SpotBugs violations in integration test sources to go
undetected.
@smiklosovic

Copy link
Copy Markdown
Contributor

merged here 6a6b43e

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