-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v8' into moshe/lower.memory.usage
- Loading branch information
Showing
9 changed files
with
79 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
latest=1.21.6 | ||
penultimate=1.20.13 | ||
latest=1.22.0 | ||
penultimate=1.21.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,16 @@ on: | |
schedule: | ||
- cron: "0 17 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
force_create_issue: | ||
type: boolean | ||
description: 'Create issue even if versions are up-to-date' | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
go-versions: | ||
uses: ./.github/workflows/go-versions.yml | ||
|
||
check-go-eol: | ||
needs: go-versions | ||
permissions: | ||
issues: write | ||
contents: read | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
steps: | ||
|
@@ -36,17 +31,38 @@ jobs: | |
echo "officialLatestVersion=${{ fromJSON(env.fetch-api-data)[0].latest }}" >> $GITHUB_ENV | ||
echo "officialPenultimateVersion=${{ fromJSON(env.fetch-api-data)[1].latest }}" >> $GITHUB_ENV | ||
# If the latest official Go version is different from Relay's release version, generate an issue | ||
# with useful details. | ||
- name: Create issue if update required | ||
if: inputs.force_create_issue || (needs.go-versions.outputs.latest != env.officialLatestVersion) | ||
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELAY_LATEST_VERSION: ${{ needs.go-versions.outputs.latest }} | ||
OFFICIAL_LATEST_VERSION: ${{ env.officialLatestVersion }} | ||
RELAY_PENULTIMATE_VERSION: ${{ needs.go-versions.outputs.penultimate }} | ||
OFFICIAL_PENULTIMATE_VERSION: ${{ env.officialPenultimateVersion }} | ||
- name: Run update script | ||
if: needs.go-versions.outputs.latest != env.officialLatestVersion | ||
id: update | ||
run: ./scripts/update-go-release-version.sh ${{ env.officialLatestVersion }} ${{ env.officialPenultimateVersion }} \ | ||
|
||
- name: Create pull request | ||
if: steps.update.outcome == 'success' | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
filename: .github/ISSUE_TEMPLATE/update_go_versions.md | ||
update_existing: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
add-paths: | | ||
Dockerfile | ||
.github/variables/go-versions.env | ||
branch: "launchdarklyreleasebot/update-to-go-${{ env.officialLatestVersion }}" | ||
author: "LaunchDarklyReleaseBot <[email protected]>" | ||
committer: "LaunchDarklyReleaseBot <[email protected]>" | ||
title: "fix(deps): bump supported Go versions to ${{ env.officialLatestVersion }} and ${{ env.officialPenultimateVersion }}" | ||
commit-message: "Bumps from Go ${{ needs.go-versions.outputs.latest }} -> ${{ env.officialLatestVersion }} and ${{ needs.go-versions.outputs.penultimate }} -> ${{ env.officialPenultimateVersion }}." | ||
body: | | ||
It's time to update Relay's supported Go versions, due to a recent upstream Go release. | ||
The Go major release cadence is ~every 6 months; the two most recent major versions are supported. | ||
Note that between major releases, the Go team often ships multiple minor versions. | ||
| | Current repo configuration | Desired repo configuration | | ||
|-------------|------------------------------------|---------------------------------------------------------------------------------------------------------------------| | ||
| Latest | ${{ needs.go-versions.outputs.latest }} | [${{ env.officialLatestVersion }}](https://go.dev/doc/devel/release#go${{ env.officialLatestVersion }}) | | ||
| Penultimate | ${{ needs.go-versions.outputs.penultimate }}| [${{ env.officialPenultimateVersion }}](https://go.dev/doc/devel/release#go${{ env.officialPenultimateVersion }}) | | ||
Run locally: | ||
```bash | ||
./scripts/update-go-release-version.sh ${{ env.officialPenultimateVersion }} ${{ env.officialPenultimateVersion }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'Manual Integration Tests' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
go-version: | ||
description: "Go version to use for building Relay (leave empty for latest defined in repo.)" | ||
required: false | ||
type: string | ||
environment: | ||
description: "The environment to test against." | ||
type: choice | ||
options: | ||
- 'staging' | ||
- 'production' | ||
|
||
jobs: | ||
go-versions: | ||
uses: ./.github/workflows/go-versions.yml | ||
|
||
integration-test: | ||
needs: go-versions | ||
uses: ./.github/workflows/integration-test.yml | ||
with: | ||
environment: ${{ inputs.environment }} | ||
go-version: ${{ inputs.go-version != '' && inputs.go-version || needs.go-versions.outputs.latest }} | ||
branch: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "8.3.0" | ||
".": "8.3.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters