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

Update sgp to v0.7.2 #260

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Update sgp to v0.7.2 #260

merged 1 commit into from
Mar 22, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 15, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.slack.gradle.root 0.6.0 -> 0.7.2 age adoption passing confidence
com.slack.gradle.base 0.6.0 -> 0.7.2 age adoption passing confidence

Release Notes

slackhq/slack-gradle-plugin

v0.7.2

Compare Source

2023-03-21

v0.7.1

Compare Source

2023-03-20

  • [Skippy] Improve pattern configuration.
    1. Make the default patterns public. This allows consumers to more
      easily reuse them when customizing their own.
    2. Use sets for the type to better enforce uniqueness requirements.
    3. Add github actions to never-skip defaults.
    4. Add excludePatterns to allow finer-grained control. This runs after
      include filtering so that users can manually exclude certain files that
      may otherwise be captured in an inclusion filter and is difficult to
      describe in a simple glob pattern. GitHub action does similar controls
      for CI matrices.
  • [Skippy] Allow relative (from the project root) to affected_projects.txt and allow non-existent files as a value. This makes it easy to gracefully fall back in CI.
  • [Skippy] Fix logging path matchers missing toString() impls.
  • [SKippy] Log verbosely in debug mode when skipping task deps.
  • Update oshi to 6.4.1.

v0.7.0

Compare Source

2023-03-17

Project Skippy

This release introduces an experimental new computeAffectedProjects task for computing affected projects based on an input of changed files. The goal of this is to statically detect which unit test, lint, and androidTest checks can be safely skipped in CI on pull requests.

Example usage

./gradlew computeAffectedProjects --changed-files changed_files.txt

Where changed_files.txt is resolved against the root repo directory and contains a newline-delimited list of changed files (usually inferred from a PR).

A simple example of how to produce such a file with the gh CLI:

gh pr view ${{ github.event.number }} --json files -q '.files[].path' > changed_files.txt

One would run this task first as a preflight task, then run subsequent builds with the slack.avoidance.affectedProjectsFile Gradle property pointing to its output file location (printed at the end of the task).

./gradlew ... -Pslack.avoidance.affectedProjectsFile=/Users/zacsweers/dev/slack/slack-android-ng/build/skippy/affected_projects.txt

The globalCiLint, globalCiUnitTest, and aggregateAndroidTestApks tasks all support reading this property and will avoid adding dependencies on tasks in projects that are not present in this set.

The ComputeAffectedProjectsTask task has some sensible defaults, but can be configured further in the root projects like so.

tasks.named<ComputeAffectedProjectsTask>("computeAffectedProjects") {
  // Glob patterns of files to include in computing
  includePatterns.addAll(
    "**/*.kt",
    "**/*.java",
  )
  // Glob patterns of files that, if changed, should result in not skipping anything in the build
  neverSkipPatterns.addAll(
    "**/*.versions.toml",
    "gradle/wrapper/**",
  )
}

Debug logging can be enabled via the slack.debug=true Gradle property. This will output timings, logs, and diagnostics for the task.

The configurations used to determine the build graph can be customized via comma-separated list to the slack.avoidance.affected-project-configurations property.

v0.6.1

Compare Source

2023-03-15

Happy Ted Lasso season 3 premier day!

  • Fix: Remove UseContainerSupport jvm arg from unit tests as this appears to only work on Linux.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 15, 2023
@renovate renovate bot changed the title Update sgp to v0.6.1 Update sgp to v0.7.0 Mar 18, 2023
@renovate renovate bot changed the title Update sgp to v0.7.0 Update sgp to v0.7.1 Mar 20, 2023
@renovate renovate bot changed the title Update sgp to v0.7.1 Update sgp to v0.7.2 Mar 22, 2023
@TinasheMzondiwa TinasheMzondiwa merged commit 9eaae48 into develop Mar 22, 2023
@TinasheMzondiwa TinasheMzondiwa deleted the renovate/sgp branch March 22, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant