Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/platform-fullstack-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- ".github/workflows/scripts/get_package_version_from_lockfile.py"
- "autogpt_platform/**"
pull_request:
types: [opened, synchronize, reopened, labeled]
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
Comment thread
ntindle marked this conversation as resolved.
Outdated
Comment thread
ntindle marked this conversation as resolved.
Outdated
paths:
- ".github/workflows/platform-fullstack-ci.yml"
- ".github/workflows/scripts/docker-ci-fix-compose-build-cache.py"
Expand All @@ -18,7 +19,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('merge-queue-{0}', github.ref) || github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' && github.event.action != 'labeled' }}

defaults:
run:
Expand Down Expand Up @@ -142,9 +143,31 @@ jobs:
run: pnpm types
if: success() || (steps.generate-api-client.outcome == 'success')

e2e-label-gate:
Comment thread
ntindle marked this conversation as resolved.
name: E2E label gate
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- name: Check for ci-ready label
if: >-
github.event_name == 'pull_request'
&& !contains(github.event.pull_request.labels.*.name, 'ci-ready')
run: |
echo "::error::The 'ci-ready' label is required to run E2E tests."
echo "Add the 'ci-ready' label to this PR to trigger E2E tests on the big-boi runner."
exit 1
Comment thread
ntindle marked this conversation as resolved.
- name: Label present or not a PR
Comment thread
ntindle marked this conversation as resolved.
Outdated
if: >-
github.event_name != 'pull_request'
|| contains(github.event.pull_request.labels.*.name, 'ci-ready')
run: echo "E2E tests authorized to run."
Comment thread
cursor[bot] marked this conversation as resolved.
Comment thread
cursor[bot] marked this conversation as resolved.
Comment thread
ntindle marked this conversation as resolved.

Comment thread
coderabbitai[bot] marked this conversation as resolved.
e2e_test:
name: end-to-end tests
runs-on: big-boi
needs: [e2e-label-gate]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo-workflow-checker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Repo - PR Status Checker
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, labeled]
merge_group:

jobs:
Expand Down
Loading