Skip to content

test(media): verify CI catches an intentional regression - #30

Open
Toanapr wants to merge 2 commits into
mainfrom
ci/media-intentional-failure
Open

Toanapr wants to merge 2 commits into
mainfrom
ci/media-intentional-failure

Conversation

@Toanapr

@Toanapr Toanapr commented Jul 12, 2026 •

Copy link
Copy Markdown
Collaborator

Purpose

This PR contains intentional defects to validate the media GitHub Actions pipeline. Do not merge this PR.

Commit 1: unit-test failure

Commit 2afec026 made FileTypeValidator accept a null file. The media Test job correctly failed during Maven tests.

Commit 2: SonarCloud analysis

Commit b60955a3 restores the correct null-file behavior so unit tests can pass, then adds a deliberately unreachable duplicate null check. SonarCloud should report the always-false condition as a static-analysis issue.

Cleanup

Close this PR and delete the branch after confirming the expected SonarCloud result.

Copilot AI review requested due to automatic review settings July 12, 2026 03:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

2 participants