Skip to content

[FLINK-40284][tests] Introduce check to guard test names - #28887

Closed
snuyanzin wants to merge 5 commits into
apache:masterfrom
snuyanzin:flink40284
Closed

[FLINK-40284][tests] Introduce check to guard test names#28887
snuyanzin wants to merge 5 commits into
apache:masterfrom
snuyanzin:flink40284

Conversation

@snuyanzin

@snuyanzin snuyanzin commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change

The PR fixes the rest of incorrectly named tests and introduces an ArchUnit test making it failing in case of violations.
Also it allows tests ending with *Tests.*

Brief change log

test renamed, archunit rule, pom

Verifying this change

tests/logs of ci

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency):( no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): ( no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no )
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no )
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? ( no)
  • If yes, how is the feature documented? (not applicable )

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Tool Name and Version]

@flinkbot

flinkbot commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@snuyanzin
snuyanzin force-pushed the flink40284 branch 2 times, most recently from 03f2102 to 3c22452 Compare August 3, 2026 10:47
@snuyanzin snuyanzin changed the title Flink40284 [FLINK-40284][table] Introduce check to guard test names Aug 3, 2026
@snuyanzin
snuyanzin marked this pull request as ready for review August 3, 2026 10:49
@snuyanzin snuyanzin changed the title [FLINK-40284][table] Introduce check to guard test names [FLINK-40284][tests] Introduce check to guard test names Aug 3, 2026
@snuyanzin
snuyanzin force-pushed the flink40284 branch 2 times, most recently from 707841d to 1d66730 Compare August 3, 2026 11:20
@snuyanzin

Copy link
Copy Markdown
Contributor Author

import static org.assertj.core.api.Assertions.assertThat;

public class CsvBulkWriterIT {
class CsvBulkWriterTest {

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.

I see some execute() in this class.

Suggested change
class CsvBulkWriterTest {
class CsvBulkWriterITCase {


/** Batch Compiled Plan tests for {@link BatchExecSortAggregate}. */
class SortAggregateBatchRestoreTest extends BatchRestoreTestBase {
public class SortAggregateBatchRestoreTest extends BatchRestoreTestBase {

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.

Why public now? While others can stay package private.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

because of RestoreTestCompletenessTest: it tries to use reflection to execute methods...
It never failed since it was never executed before in CI

@twalthr twalthr 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.

LGTM, thanks @snuyanzin for fixing our tests!

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