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 junit-reports in CircleCI #2189

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Fix junit-reports in CircleCI #2189

merged 2 commits into from
Apr 11, 2022

Conversation

iamdanfox
Copy link
Contributor

@iamdanfox iamdanfox commented Apr 11, 2022

Before this PR

There's a thread in #dev-foundry-infra where Alexis flagged that it's a little inconvenient to see what the compile failures are in CircleCI.

I thought we were hoisting this information to the top of the build by parsing the junit xml, but empirically it has not been working on the Apollo codebase.

In fact, I found this refactor from May 2021 (so almost exactly a year ago) which introduced a brand new JunitReportsRootPlugin in addition to the existing JunitReportsPlugin.

We used to be applying the JunitReportsPlugin automatically but this was changed (I assume unintentionally) here:

https://github.com/palantir/gradle-baseline/pull/1764/files#diff-1ac4be5b278bc51e4c5bdc114f5bc34d9edbe25c509c2af49cdb6d64a2cd5fe0L42

After this PR

==COMMIT_MSG==
Fix the com.palantir.baseline-circleci plugin so that compilation failures are once again parsed as XML and can be surfaced at the top of CircleCI builds.
==COMMIT_MSG==

Possible downsides?

  • I have added no tests here, so it might regress

@changelog-app
Copy link

changelog-app bot commented Apr 11, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Fix the com.palantir.baseline-circleci plugin so that compilation failures are once again parsed as XML and can be surfaced at the top of CircleCI builds.

Check the box to generate changelog(s)

  • Generate changelog entry

Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

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

Thanks!

@bulldozer-bot bulldozer-bot bot merged commit 208f69f into develop Apr 11, 2022
@bulldozer-bot bulldozer-bot bot deleted the dfox/fix-junit-reports branch April 11, 2022 15:20
@svc-autorelease
Copy link
Collaborator

Released 4.102.0

bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Apr 11, 2022
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.101.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Support safety annotations on type-use e.g. `Collection<@safe String>` | palantir/gradle-baseline#2187 |


## 4.102.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | Fix the `com.palantir.baseline-circleci` plugin so that compilation failures are once again parsed as XML and can be surfaced at the top of CircleCI builds. | palantir/gradle-baseline#2189 |


## 4.103.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | Fix TypeArgumentHandler NPE on wildcard types | palantir/gradle-baseline#2190 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Apr 11, 2022
@@ -40,6 +41,7 @@ public final class BaselineCircleCi implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPluginManager().apply(JunitReportsRootPlugin.class);
project.getPluginManager().apply(JunitReportsPlugin.class);
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be necessary. In #1764 we explicitly created the JunitReportsRootPlugin that does this.

project.allprojects(proj -> proj.getPluginManager().apply(JunitReportsPlugin.class));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants