Skip to content

CI: [BIPS-31431] Run automation tests workflow before and after built promotion#188

Merged
ivgonzalezc merged 7 commits intomainfrom
BIPS-31431-before-after
Mar 27, 2026
Merged

CI: [BIPS-31431] Run automation tests workflow before and after built promotion#188
ivgonzalezc merged 7 commits intomainfrom
BIPS-31431-before-after

Conversation

@ivgonzalezc
Copy link
Copy Markdown
Contributor

@ivgonzalezc ivgonzalezc commented Feb 4, 2026

Purpose of the PR

  • Run automation tests workflow before and after built promotion

Linked JIRA issue(s)

Summary of changes

  • Release workflow refactored, with new jobs isolating steps and giving more readability for the workflow
  • Automation tests workflow updated, with new variable env, that is going to be the target environment to test, where DEV will be artifacts on Jfrog Artifactory, and PROD will be artifacts on Terraform Registry
  • .goreleaser.yml updated with new version templates.

Checklist

Release

  • Priority release required due to Hot fix / Escalation / Critical bug
  • Priority release not required (can be released later with other stories or bugs fixes)

Testing

  • dev
  • automation (required for feature branch merges and significant changes)
  • manual (required for feature branch merges and significant changes)

Automation

  • no changes are required
  • existing tests have been updated
  • new tests have been added
  • further changes are required by the automation team

@ivgonzalezc ivgonzalezc marked this pull request as ready for review March 17, 2026 19:38
@ivgonzalezc ivgonzalezc requested a review from a team as a code owner March 17, 2026 19:38
Copilot AI review requested due to automatic review settings March 17, 2026 19:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the CI/release automation to compute a shared release version, split release publishing paths (tag vs non-tag), and integrate automation tests into the promotion flow. It also updates the automation-tests workflow to accept a build-origin input and adjusts GoReleaser artifact naming templates.

Changes:

  • Add a get_version job and refactor the release workflow into separate “JFrog snapshot” vs “Terraform Registry tag” jobs.
  • Add automation-tests workflow dispatch inputs (build_origin) and update automation tests triggering/polling behavior.
  • Update GoReleaser binary name template to remove the extra _v prefix.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.

File Description
.goreleaser.yml Adjusts binary naming template to align artifact naming with version formatting changes.
.github/workflows/release.yml Refactors version derivation into its own job and adds automation-tests dispatch/polling around tag releases.
.github/workflows/automation-tests.yaml Adds tag trigger + workflow_dispatch input and forwards build origin to downstream automation workflow.
Comments suppressed due to low confidence (1)

.github/workflows/automation-tests.yaml:277

  • The workflow now triggers on push tags, but this job only runs on workflow_dispatch. For tag pushes there is no job that marks the workflow failed when tests fail (and no output is published), so tag-triggered runs can appear successful even when automation tests fail. Expand this if: to include push (and any other intended events) or add an equivalent result/publish job for tag runs.
  automation-test-no-pr:
    name: Publish automation test result for other events than PRs
    needs: [automation-test-run]
    runs-on: ubuntu-latest
    if: ${{ github.event_name == 'workflow_dispatch' }}
    steps:

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the release and automation-test GitHub Actions workflows to support running automation tests around artifact promotion/release, and updates GoReleaser templating used in the build/release pipeline.

Changes:

  • Added a get_version job to centralize version calculation and reused it across release jobs.
  • Split release publishing into separate jobs for non-tag (JFrog snapshot) and tag (Terraform Registry) releases, with automation-test gating logic added.
  • Updated the Automation Tests workflow to run on tag pushes and accept a new build_origin input for workflow dispatches.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
.goreleaser.yml Adjusts GoReleaser binary naming template used in produced artifacts.
.github/workflows/release.yml Refactors release pipeline into multiple jobs; adds automation-test wait/dispatch logic.
.github/workflows/automation-tests.yaml Adds tag trigger and build_origin input; adjusts dispatch inputs and result publishing jobs.
Comments suppressed due to low confidence (1)

.github/workflows/automation-tests.yaml:280

  • automation-test-no-pr is described as publishing results for "other events than PRs", but it only runs on workflow_dispatch. With the new push.tags trigger, tag runs won’t have any job that fails the workflow on test failure (only PRs and dispatch do). If tags should be gated by automation tests, expand this condition to include push (or add a separate job for tag events).
  automation-test-no-pr:
    name: Publish automation test result for other events than PRs
    needs: [automation-test-run]
    runs-on: ubuntu-latest
    if: ${{ github.event_name == 'workflow_dispatch' }}
    steps:

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copilot AI review requested due to automatic review settings March 19, 2026 19:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors CI workflows to run automation tests around artifact promotion/release, including separating non-tag (JFrog) vs tag (Terraform Registry) release paths and adding workflow-dispatch driven automation runs.

Changes:

  • Refactored release.yml to introduce a dedicated versioning job and split release logic into tag vs non-tag jobs, with post-release automation test dispatch + gating.
  • Updated automation-tests.yaml to support tag triggers and a new build_origin workflow-dispatch input intended to select DEV vs PROD artifact sources.
  • Updated GoReleaser templating and adjusted Dependabot workflow permissions for invoking the reusable release workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
.goreleaser.yml Changes binary naming template used inside release archives.
.github/workflows/release.yml Adds get_version, splits release jobs, and dispatches/awaits automation tests post-release.
.github/workflows/automation-tests.yaml Adds tag trigger + build_origin input and tweaks version increment logic/dispatch inputs.
.github/workflows/dependabot-comments.yml Updates permissions for Dependabot-triggered reusable release workflow invocation.
Comments suppressed due to low confidence (1)

.github/workflows/automation-tests.yaml:280

  • The workflow now runs on push tag events, but there is no final job that fails the workflow when automation tests fail for that event type. automation-test-PR only runs on PRs, and automation-test-no-pr only runs on workflow_dispatch, so a tag-triggered run can appear successful even if automation-test-run reports a failure conclusion. Consider expanding the if: condition (or adding another job) to enforce failure for push tag events too.
  automation-test-no-pr:
    name: Publish automation test result for other events than PRs
    needs: [automation-test-run]
    runs-on: ubuntu-latest
    if: ${{ github.event_name == 'workflow_dispatch' }}
    steps:

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dtejadav
dtejadav previously approved these changes Mar 19, 2026
RanjitMishraBT
RanjitMishraBT previously approved these changes Mar 20, 2026
dtejadav
dtejadav previously approved these changes Mar 26, 2026
Copilot AI review requested due to automatic review settings March 26, 2026 20:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

.github/workflows/automation-tests.yaml:280

  • With on.push.tags enabled, this workflow will run for tag pushes, but there is no job that fails the workflow based on the automation test conclusion for push events. automation-test-no-pr is described as “other events than PRs” but only runs on workflow_dispatch, so tag-triggered runs will appear successful even if automation-test-run finds failures. Either include push in this job’s condition (or add a separate job for tag pushes), or rename/update the job/triggering logic to match the intended behavior.
  automation-test-no-pr:
    name: Publish automation test result for other events than PRs
    needs: [automation-test-run]
    runs-on: ubuntu-latest
    if: ${{ github.event_name == 'workflow_dispatch' }}
    steps:

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dtejadav
dtejadav previously approved these changes Mar 27, 2026
Copy link
Copy Markdown
Contributor

@dtejadav dtejadav left a comment

Choose a reason for hiding this comment

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

🚀

@github-actions
Copy link
Copy Markdown

Automation tests Checked

Automation tests failed

Please check the Automation tests run here

@ivgonzalezc ivgonzalezc merged commit 1885c71 into main Mar 27, 2026
16 of 17 checks passed
@ivgonzalezc ivgonzalezc deleted the BIPS-31431-before-after branch March 27, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants