Skip to content

Fix mimaReportBinaryIssues, doesn't run aggregate#9459

Merged
dwijnand merged 1 commit intoscala:2.13.xfrom
dwijnand:fix-mima
Jan 27, 2021
Merged

Fix mimaReportBinaryIssues, doesn't run aggregate#9459
dwijnand merged 1 commit intoscala:2.13.xfrom
dwijnand:fix-mima

Conversation

@dwijnand
Copy link
Member

When you run a task in the shell, it uses the current project (normally
root) and runs the tasks on the project and the project it aggregates.
That's why "compile" compiles all and "test" tests all. But "testAll"
is our custom thing, defined only on the root project, which refers to
specific tasks to run. So while just "mimaReportBinaryIssues" does the
right thing in the shell, it only checks root (which is a noop) when
used in "testAll". So back to specifying both - but at least I still
fixed unqualified "mimaReportBinaryIssues" from working in the shell.

When you run a task in the shell, it uses the current project (normally
root) and runs the tasks on the project and the project it aggregates.
That's why "compile" compiles all and "test" tests all.  But "testAll"
is our custom thing, defined only on the root project, which refers to
specific tasks to run.  So while just "mimaReportBinaryIssues" does the
right thing in the shell, it only checks root (which is a noop) when
used in "testAll".  So back to specifying both - but at least I still
fixed unqualified "mimaReportBinaryIssues" from working in the shell.
@scala-jenkins scala-jenkins added this to the 2.13.5 milestone Jan 27, 2021
@dwijnand dwijnand changed the title Fix mimaReportBinaryIssues, not run aggregate Fix mimaReportBinaryIssues, doesn't run aggregate Jan 27, 2021
@dwijnand dwijnand added the internal not resulting in user-visible changes (build changes, tests, internal cleanups) label Jan 27, 2021
@dwijnand dwijnand merged commit 6da2a93 into scala:2.13.x Jan 27, 2021
@dwijnand dwijnand deleted the fix-mima branch January 27, 2021 18:32
dwijnand added a commit to regadas/scala that referenced this pull request Feb 17, 2021
When you run a task in the shell, it uses the current project (normally
root) and runs the tasks on the project and the project it aggregates.
That's why "compile" compiles all and "test" tests all.  But "testAll"
is our custom thing, defined only on the root project, which refers to
specific tasks to run.  So while just "mimaReportBinaryIssues" does the
right thing in the shell, it only checks root (which is a noop) when
used in "testAll".  So back to specifying both - but at least I still
fixed unqualified "mimaReportBinaryIssues" from working in the shell.

(cherry picked from commit 8e5951d)
backport of scala#9459
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal not resulting in user-visible changes (build changes, tests, internal cleanups)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants