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

[FLINK-30426] Set archRule.failOnEmptyShould = false to return old behavior #7

Merged
merged 1 commit into from Dec 15, 2022

Conversation

snuyanzin
Copy link
Contributor

In ArchUnit 1.0.0 there was added a breaking change [1]

As mentioned in Enhancements/Core ArchRules will now by default reject evaluating if the set passed to the should-clause is empty. This will break existing rules that don't check any elements in their should-clause. You can restore the old behavior by setting the ArchUnit property archRule.failOnEmptyShould=false

As a result all the rules which do no match anything will fail.
Also since Flink 1.17-SNAPSHOT depends on 1.0.0 ArchUnit, this version was updated to be synced

[1] https://github.com/TNG/ArchUnit/releases/tag/v0.23.0

@boring-cyborg
Copy link

boring-cyborg bot commented Dec 15, 2022

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@MartijnVisser MartijnVisser self-assigned this Dec 15, 2022
@MartijnVisser
Copy link
Contributor

@snuyanzin Thanks a lot. What I don't fully understand is the actual cause: was it because this repo depends on 1.17-SNAPSHOT, which meant that the flink-architecture-tests-production and flink-architecture-tests-test were built with Archunit 1.0.0?

@snuyanzin
Copy link
Contributor Author

which meant that the flink-architecture-tests-production and flink-architecture-tests-test were built with Archunit 1.0.0?

yes, that's the reason

@MartijnVisser
Copy link
Contributor

yes, that's the reason

Ugh. That's freakingly annoying.

@MartijnVisser MartijnVisser merged commit d82256b into apache:main Dec 15, 2022
@boring-cyborg
Copy link

boring-cyborg bot commented Dec 15, 2022

Awesome work, congrats on your first merged pull request!

cbornet pushed a commit to cbornet/flink-connector-pulsar that referenced this pull request Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants