Skip to content

ci: gate pull request integration tests behind the integ environment - #301

Open
ThirdEyeSqueegee wants to merge 4 commits into
mainfrom
integ-environment-gate
Open

ThirdEyeSqueegee wants to merge 4 commits into
mainfrom
integ-environment-gate

Conversation

@ThirdEyeSqueegee

@ThirdEyeSqueegee ThirdEyeSqueegee commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Description

Why is this change being made?

  1. The safe-to-test label is the only check before a pull request's code runs with the CI role, and it is not tied to a commit. The run checks out whatever head the pull request has when the label lands.

What is changing?

  1. integration-tests.yml gets an authorize job on the new integ environment, which requires approval from the aws-secrets-manager team. On a pull request, the integration tests start only after a reviewer approves that run, and each new push needs a new approval. The trigger changes from labeled to opened, synchronize and reopened. Scheduled, manual, release and push runs skip the gate.
  2. The step that removed the label is deleted, along with the pull-requests: write permission in integration-tests.yml, staging.yml, publish-crates.yml and release.yml, which only that step used.
  3. When a run is not approved, the integration-tests job fails before any checkout. A skipped job counts as a passing required check, so skipping it would leave the check green after a rejected or expired approval.

Dependabot pull requests wait for the same approval. Approving a run lets that commit's code and tests run with the CI role, so the diff needs a read before each approval.

Related Links

  • Issue #, if available:

Testing

How was this tested?

  1. Not run. A pull_request_target workflow runs from main, so the gate first applies after this merges, and from then on to every open pull request.
  2. actionlint reports nothing new on the changed files.

When testing locally, provide testing artifact(s):

  1. N/A

Reviewee Checklist

Update the checklist after submitting the PR

  • I have reviewed, tested and understand all changes
    If not, why:
  • I have filled out the Description and Testing sections above
    If not, why:
  • Build and Unit tests are passing
    If not, why:
  • Unit test coverage check is passing
    If not, why:
  • Integration tests pass locally
    If not, why:
  • I have updated integration tests (if needed)
    If not, why:
  • I have ensured no sensitive information is leaking (i.e., no logging of sensitive fields, or otherwise)
    If not, why:
  • I have added explanatory comments for complex logic, new classes/methods and new tests
    If not, why:
  • I have updated README/documentation (if needed)
    If not, why:
  • I have clearly called out breaking changes (if any)
    If not, why:

Reviewer Checklist

All reviewers please ensure the following are true before reviewing:

  • Reviewee checklist has been accurately filled out
  • Code changes align with stated purpose in description
  • Test coverage adequately validates the changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.35%. Comparing base (34e0cc0) to head (0313782).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #301   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files          34       34           
  Lines        9422     9422           
  Branches     9422     9422           
=======================================
  Hits         8136     8136           
  Misses       1153     1153           
  Partials      133      133           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch is waiting to be deployed

1 waiting deployment
code-review — 03137827 Waiting Nov 16, 2026 by ThirdEyeSqueegee via review #202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant