|
| 1 | +name: E2E Checkpoint Store |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + agent: |
| 7 | + description: "Agent to run" |
| 8 | + required: true |
| 9 | + default: "vogon" |
| 10 | + type: choice |
| 11 | + options: |
| 12 | + - vogon |
| 13 | + - claude-code |
| 14 | + - opencode |
| 15 | + - gemini-cli |
| 16 | + - factoryai-droid |
| 17 | + - cursor-cli |
| 18 | + - copilot-cli |
| 19 | + - roger-roger |
| 20 | + - codex |
| 21 | + checkpoint_store: |
| 22 | + description: "Checkpoint storage backend to run the suite against" |
| 23 | + required: true |
| 24 | + default: "git-refs" |
| 25 | + type: choice |
| 26 | + options: |
| 27 | + - git-branch |
| 28 | + - git-refs |
| 29 | + |
| 30 | +jobs: |
| 31 | + e2e-checkpoint-store: |
| 32 | + if: inputs.agent != 'copilot-cli' |
| 33 | + runs-on: ubuntu-latest |
| 34 | + timeout-minutes: 40 |
| 35 | + permissions: |
| 36 | + actions: read |
| 37 | + contents: read |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: Checkout repository |
| 41 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 42 | + with: |
| 43 | + ref: ${{ github.event.pull_request.head.sha || github.sha }} |
| 44 | + |
| 45 | + - name: Install system dependencies |
| 46 | + run: | |
| 47 | + sudo apt-get update |
| 48 | + sudo apt-get install -y gnome-keyring tmux |
| 49 | + echo 'somecredstorepass' | gnome-keyring-daemon --unlock |
| 50 | +
|
| 51 | + - name: Setup mise |
| 52 | + uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4 |
| 53 | + |
| 54 | + - name: Build entire CLI |
| 55 | + run: go build -o /usr/local/bin/entire ./cmd/entire |
| 56 | + |
| 57 | + - name: Build vogon binary |
| 58 | + if: inputs.agent == 'vogon' |
| 59 | + run: go build -o /usr/local/bin/vogon ./e2e/vogon |
| 60 | + |
| 61 | + - name: Install agent CLI |
| 62 | + if: inputs.agent != 'vogon' |
| 63 | + run: | |
| 64 | + case "${{ inputs.agent }}" in |
| 65 | + claude-code) curl -fsSL https://claude.ai/install.sh | bash ;; |
| 66 | + opencode) curl -fsSL https://opencode.ai/install | bash ;; |
| 67 | + gemini-cli) npm install -g @google/gemini-cli ;; |
| 68 | + codex) npm install -g @openai/codex ;; |
| 69 | + cursor-cli) curl https://cursor.com/install -fsS | bash ;; |
| 70 | + factoryai-droid) curl -fsSL https://app.factory.ai/cli | sh ;; |
| 71 | + copilot-cli) npm install -g @github/copilot ;; |
| 72 | + roger-roger) ;; # installed by mise (see mise.toml) |
| 73 | + esac |
| 74 | + echo "$HOME/.local/bin" >> $GITHUB_PATH |
| 75 | +
|
| 76 | + - name: Verify roger-roger agent |
| 77 | + if: inputs.agent == 'roger-roger' |
| 78 | + run: | |
| 79 | + set -euo pipefail |
| 80 | + echo "Verifying roger-roger binaries on PATH..." |
| 81 | + command -v roger-roger |
| 82 | + command -v entire-agent-roger-roger |
| 83 | +
|
| 84 | + - name: Bootstrap agent |
| 85 | + if: inputs.agent != 'roger-roger' && inputs.agent != 'vogon' |
| 86 | + env: |
| 87 | + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |
| 88 | + GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} |
| 89 | + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
| 90 | + CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }} |
| 91 | + FACTORY_API_KEY: ${{ secrets.FACTORY_API_KEY }} |
| 92 | + run: go run ./e2e/bootstrap ${{ inputs.agent }} |
| 93 | + |
| 94 | + - name: E2E Checkpoint Store |
| 95 | + env: |
| 96 | + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |
| 97 | + GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} |
| 98 | + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
| 99 | + E2E_CODEX_MODEL: ${{ inputs.agent == 'codex' && 'gpt-5.1-codex-mini' || '' }} |
| 100 | + CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }} |
| 101 | + FACTORY_API_KEY: ${{ secrets.FACTORY_API_KEY }} |
| 102 | + E2E_ARTIFACT_DIR: ${{ github.workspace }}/e2e-artifacts |
| 103 | + E2E_ENTIRE_BIN: /usr/local/bin/entire |
| 104 | + E2E_CHECKPOINT_STORE: ${{ inputs.checkpoint_store }} |
| 105 | + run: | |
| 106 | + mkdir -p "$E2E_ARTIFACT_DIR" |
| 107 | + mise run test:e2e --agent ${{ inputs.agent }} |
| 108 | +
|
| 109 | + - name: Upload artifacts |
| 110 | + if: always() |
| 111 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 |
| 112 | + with: |
| 113 | + name: e2e-checkpoint-store-${{ inputs.agent }}-${{ inputs.checkpoint_store }} |
| 114 | + path: e2e-artifacts/ |
| 115 | + retention-days: 7 |
| 116 | + |
| 117 | + e2e-checkpoint-store-copilot: |
| 118 | + if: inputs.agent == 'copilot-cli' |
| 119 | + runs-on: ubuntu-latest |
| 120 | + timeout-minutes: 40 |
| 121 | + permissions: |
| 122 | + actions: read |
| 123 | + contents: read |
| 124 | + copilot-requests: write |
| 125 | + |
| 126 | + steps: |
| 127 | + - name: Checkout repository |
| 128 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 129 | + with: |
| 130 | + ref: ${{ github.event.pull_request.head.sha || github.sha }} |
| 131 | + |
| 132 | + - name: Install system dependencies |
| 133 | + run: | |
| 134 | + sudo apt-get update |
| 135 | + sudo apt-get install -y gnome-keyring tmux |
| 136 | + echo 'somecredstorepass' | gnome-keyring-daemon --unlock |
| 137 | +
|
| 138 | + - name: Setup mise |
| 139 | + uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4 |
| 140 | + |
| 141 | + - name: Build entire CLI |
| 142 | + run: go build -o /usr/local/bin/entire ./cmd/entire |
| 143 | + |
| 144 | + - name: Install agent CLI |
| 145 | + run: | |
| 146 | + npm install -g @github/copilot |
| 147 | + echo "$HOME/.local/bin" >> $GITHUB_PATH |
| 148 | +
|
| 149 | + - name: Bootstrap agent |
| 150 | + env: |
| 151 | + COPILOT_GITHUB_TOKEN: ${{ github.token }} |
| 152 | + run: go run ./e2e/bootstrap ${{ inputs.agent }} |
| 153 | + |
| 154 | + - name: E2E Checkpoint Store |
| 155 | + env: |
| 156 | + COPILOT_GITHUB_TOKEN: ${{ github.token }} |
| 157 | + E2E_ARTIFACT_DIR: ${{ github.workspace }}/e2e-artifacts |
| 158 | + E2E_ENTIRE_BIN: /usr/local/bin/entire |
| 159 | + E2E_CHECKPOINT_STORE: ${{ inputs.checkpoint_store }} |
| 160 | + run: | |
| 161 | + mkdir -p "$E2E_ARTIFACT_DIR" |
| 162 | + mise run test:e2e --agent ${{ inputs.agent }} |
| 163 | +
|
| 164 | + - name: Upload artifacts |
| 165 | + if: always() |
| 166 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 |
| 167 | + with: |
| 168 | + name: e2e-checkpoint-store-${{ inputs.agent }}-${{ inputs.checkpoint_store }} |
| 169 | + path: e2e-artifacts/ |
| 170 | + retention-days: 7 |
0 commit comments