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

Fix build config to allow skipping tests #1221

Merged
merged 1 commit into from Jan 14, 2022

Conversation

shonfeder
Copy link
Contributor

@shonfeder shonfeder commented Jan 13, 2022

Closes #1219

51228a7 had the unintended consequence of triggering the maven/surefire
design bug reported in https://issues.apache.org/jira/browse/MJAR-138.

The effect of this was to break some of our build targets that skip
tests by setting maven.test.skip=true, because it would not build the
tlair jar when tests were skipped, but would then still require that the
jar be present to compile.

This fix implemented the workaround described at
https://issues.apache.org/jira/browse/MJAR-138?focusedCommentId=16160394&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16160394
-- namely, we add a maven profile that only includes the dependency when
mavne.test.skip=false.


51228a had the unintended consequence of triggering the maven/surefire
design bug reported in https://issues.apache.org/jira/browse/MJAR-138.

The effect of this was to break some of our build targets that skip
tests by setting `maven.test.skip=true`, because it would not build the
tlair jar when tests were skipped, but would then still require that the
jar be present to compile.

This fix implemented the workaround described at
https://issues.apache.org/jira/browse/MJAR-138?focusedCommentId=16160394&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16160394
-- namely, we add a maven profile that only includes the dependency when
`mavne.test.skip=false`.
Copy link
Contributor

@konnov konnov left a comment

Choose a reason for hiding this comment

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

Yes, let's merge to unblock the builds

@shonfeder shonfeder merged commit b1bb2b2 into unstable Jan 14, 2022
@shonfeder shonfeder deleted the sf/1219/fix-maven-skip-tests branch January 14, 2022 13: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.

[BUG] Build error when using make apalache-jar
2 participants