joewitt opened a new pull request, #11994: URL: https://github.com/apache/nifi/pull/11994
# Summary [NIFI-16663](https://issues.apache.org/jira/browse/NIFI-16663) OpenSAML 5.2.3 and its Shibboleth dependencies (`org.opensaml:*` and `net.shibboleth:shib-*`) are not published to Maven Central, which stops at OpenSAML 4.0.1. They are resolved from `build.shibboleth.net`, and when that server does not respond, workflow jobs fail while downloading artifacts such as `opensaml-core-api` and `shib-security`. Examples are the `system-tests` run for NIFI-16641 and a `build` run from the same day. Changes: - `build.yml`, `integration-tests.yml` and `docker-tests.yml` already set `aether.connector.http.retryHandler.count=5` and `aether.connector.http.connectionMaxTtl=30`. The same settings are now applied to `system-tests.yml`, `code-compliance.yml`, `code-coverage.yml` and `reproducible-build.yml`, which used the Maven defaults. - A new composite action, `.github/actions/cache-shibboleth`, caches `~/.m2/repository/org/opensaml` and `~/.m2/repository/net/shibboleth`. The cache key is `<runner.os>-shibboleth-<org.opensaml.version>`, read from `nifi-framework-bundle/pom.xml`. The existing `setup-java` Maven cache is keyed on all POM files, so any POM change misses it and downloads these artifacts again. This cache only changes when the OpenSAML version changes. - The action is called after checkout in every job that uses `actions/setup-java`. The cache is saved by the first successful run on `main` and restored by later runs, including pull requests. Runs before that first save behave as they do today, with the added retry settings. # Tracking Please complete the following tracking steps prior to pull request creation. ### Issue Tracking - [x] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created ### Pull Request Tracking - [x] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000` - [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000` - [x] Pull request contains [commits signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) with a registered key indicating `Verified` status ### Pull Request Formatting - [x] Pull Request based on current revision of the `main` branch - [x] Pull Request refers to a feature branch with one commit containing changes # Verification Please indicate the verification steps performed prior to pull request creation. ### Build - [ ] Build completed using `./mvnw clean install -P contrib-check` - [ ] JDK 21 - [ ] JDK 25 Not applicable: the change is limited to GitHub workflow files. ### Verification performed - [x] All workflow files and the new action parse as valid YAML - [x] `./mvnw -N -P contrib-check apache-rat:check` reports no issues - [x] The version extraction in the action returns `5.2.3` from `nifi-framework-bundle/pom.xml` - [ ] Cache save and restore behavior can only be confirmed on GitHub Actions. The `Cache Shibboleth Artifacts` step in this pull request's workflow runs should report a cache miss with a save on the first run. ### Licensing - [ ] New dependencies are compatible with the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License Policy](https://www.apache.org/legal/resolved.html) - [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` files Not applicable: no dependencies are added or changed. ### Documentation - [ ] Documentation formatting appears as expected in rendered files Not applicable: no documentation is changed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
