Repository navigation
Fix fetchGitHubCommits to use authenticated scrapes via username/PAT - #234
Conversation
8466e7c to
94452e9
Compare
|
Results Of Test Job : }, |
…ad of backport issue (#229) * Add groovy wrapper for generating release notes * Add generate-release-notes Groovy pipeline wrapper * fix #200 * Assisted-by: IBM Bob v2.0.3 * Use backportedBy Signed-off-by: smlambert <slambert@gmail.com> * Keep backportOf for all objects Signed-off-by: smlambert <slambert@gmail.com> * Fix backportedBy value Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update as per review request Signed-off-by: smlambert <slambert@gmail.com> * Bump actions/setup-java from 5.7.0 to 6.0.0 (#230) Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5.7.0 to 6.0.0. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@b6effb0...dd06d9c) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump js-yaml in /generate-release-notes/generate-release-notes (#231) Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2. - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix Release Note Generation Rate Limiting (#234) * Bump actions/setup-java from 6.0.0 to 6.0.1 (#232) Bumps [actions/setup-java](https://github.com/actions/setup-java) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@dd06d9c...de7274f) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix #200 --------- Signed-off-by: smlambert <slambert@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Scott Fryer <60462088+steelhead31@users.noreply.github.com>
Fixes #233
Description
Fixes release note generation failures (
sfr_create_release_notesand CI workflows) caused by Akamai/WAF anti-bot challenges and rate limiting frombugs.openjdk.org(especially on large releases like JDK 27 with 2,000+ issues), as well as Node.js test-runner compatibility warnings and flaky CI network calls.Key Changes
Jira Issue Fetch Optimization (
fetchJiraIssues.js):encodeURIComponenton multiline JQL queries containing spaces, quotes, and parentheses to prevent malformed requests.summary,priority,components,customfield_10008,issuetype,issuelinks), slashing response payload sizes by over 90%.Accept: application/jsonand browserUser-Agentheaders to prevent bot-detection false positives.Fetching JIRA issues X-Y of Z...).GitHub Commits Auth & Rate Limits (
fetchGitHubCommits.js):GITHUB_TOKENviaAuthorizationheader to prevent GitHub REST API rate-limiting during commit comparisons.Test Suite Modernization & Isolation:
assert { type: 'json' }to standardwith { type: 'json' }for Node.js 22+ compatibility.fetchJiraIssuesTest.jsby mockingglobalThis.fetchto ensure CI tests are deterministic and do not make live network requests.Verification
npm testacross all test files (extractJDKIssues,fetchGitHubCommits,fetchJiraIssues).