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

[improve][ci] Upgrade Gradle Enterprise maven extension version #22096

Merged

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Feb 22, 2024

Motivation & Modifications

  • keep the Gradle Enterprise maven extension version up-to-date
  • skip activating Gradle Enterprise maven extension for builds in GitHub Actions when the pull request branch or forked repository has a name that indicates it's a work in progress.
    • it's better not to clutter the GE server with unnecessary builds for experiments.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 3.3.0 milestone Feb 22, 2024
@lhotari lhotari self-assigned this Feb 22, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 22, 2024
@lhotari lhotari requested a review from Technoboy- February 22, 2024 09:58
@lhotari lhotari force-pushed the lh-upgrade-gradle-enterprise-client branch from a6231d0 to 5af45db Compare February 22, 2024 10:17
@Technoboy- Technoboy- merged commit 08058b9 into apache:master Feb 22, 2024
50 checks passed
.mvn/gradle-enterprise.xml Show resolved Hide resolved
@@ -22,7 +22,9 @@
<gradleEnterprise
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
<enabled>#{env['GRADLE_ENTERPRISE_ACCESS_KEY']?.trim() > ''}</enabled>
<!-- Enable Gradle Enterprise extension when GRADLE_ENTERPRISE_ACCESS_KEY is set and the build isn't
Copy link
Contributor

Choose a reason for hiding this comment

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

I would expand the comment after with:

GITHUB_HEAD_REF contains the name of the branch.
The regular expression:
- `(?i)` - This flag makes the matching case insensitive.

I would rewrite the comment for clarity:

<!-- Enable Gradle Enterprise extension when all of the  following conditions match:
1. GRADLE_ENTERPRISE_ACCESS_KEY is set
2. The branch or repository names do not denote work in progress. In effect, it does not contain either "wip," "experiment," or "private."
-->

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, this got already merged so I won't bother making further changes.

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

Successfully merging this pull request may close these issues.

4 participants