Skip to content

fix: sync Forge AWS GitHub deploy with working 8.0.x - #16263

Merged
jamesfredley merged 1 commit into
7.0.xfrom
sync/forge-aws-gha-7.0
Aug 29, 2026
Merged

jamesfredley merged 1 commit into
7.0.xfrom
sync/forge-aws-gha-7.0

Conversation

@jamesfredley

Copy link
Copy Markdown
Contributor

Sync Forge AWS GitHub deploy with working 8.0.x

Copy forge-deploy-aws.yml (no --process, fail fast on EB errors) and
shared.yaml GitHubDeployRole managed policies from 8.0.x.

Copy forge-deploy-aws.yml (no --process, fail fast on EB errors) and
shared.yaml GitHubDeployRole managed policies from 8.0.x.
Copilot AI lite review requested due to automatic review settings August 29, 2026 02:10
@jamesfredley
jamesfredley merged commit 381bc41 into 7.0.x Aug 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Aligns the Grails Forge AWS Elastic Beanstalk deployment workflow and its supporting CloudFormation shared stack with the known-working 8.0.x configuration (notably: removing EB “process” polling and tightening deployment behavior to fail fast on EB-reported errors, plus syncing IAM role permissions/trust patterns).

Changes:

  • Updated GitHubDeployRole in the shared CloudFormation stack (managed policies + expanded S3/describe permissions; trust now matches refs/heads/*.x and refs/tags/v*).
  • Simplified EB application-version creation in the GitHub Actions workflow (removed --process + custom processing polling) and added EB ERROR-event detection during rollout.
  • Updated infrastructure README to reflect the new trust-policy patterns.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
grails-forge/infrastructure/shared.yaml Syncs IAM role trust/policies to match the 8.0.x “working” deployment permissions and allowed refs.
grails-forge/infrastructure/README.md Updates documentation to reflect the new GitHub OIDC trust-policy constraints.
.github/workflows/forge-deploy-aws.yml Removes application-version processing polling and adds EB event-based failure detection during deployment.
Suppressed comments (1)

.github/workflows/forge-deploy-aws.yml:205

  • wait_for_ready_green is called after starting the environment update, but its ERROR-event polling start time is currently computed inside the function. Capture the start timestamp before creating/updating the EB version and pass it through so ERROR events from the very beginning of the deployment aren't missed.
            --source-bundle "S3Bucket=${ARTIFACT_BUCKET},S3Key=${S3_KEY}" >/dev/null

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 163 to +167
wait_for_ready_green() {
local operation="$1"
local expected_version="$2"
local status health current_version attempt
local status health current_version attempt event
local start_iso
@bito-code-review

Copy link
Copy Markdown

To address the issue where wait_for_ready_green misses ERROR events emitted between the update-environment call and the function start, you should modify the function to accept an optional start_iso timestamp. This allows the caller to capture the timestamp before initiating the deployment and pass it into the function.

Here is the suggested update for the function definition:

          wait_for_ready_green() {
            local operation="$1"
            local expected_version="$2"
            local start_iso="${3:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"
            local status health current_version attempt event
            for attempt in {1..90};

By defaulting start_iso to the current time if not provided, you maintain backward compatibility while enabling the caller to pass a pre-deployment timestamp to ensure no events are missed.

.github/workflows/forge-deploy-aws.yml

wait_for_ready_green() {
            local operation="$1"
            local expected_version="$2"
            local start_iso="${3:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"
            local status health current_version attempt event
            for attempt in {1..90}; do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants