-
Notifications
You must be signed in to change notification settings - Fork 0
Phase 6 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phase 6 #9
Changes from all commits
e00f271
6d54444
fe11524
9c63753
bd1efa2
72f558f
eeb8782
442d908
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,10 +49,27 @@ jobs: | |
| name: coverage | ||
| path: cover.out | ||
|
|
||
| helm-lint: | ||
| name: Helm Lint & Dry-run | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Helm | ||
| uses: azure/setup-helm@v4 | ||
| with: | ||
| version: v3.14.0 | ||
|
|
||
| - name: Lint Helm Chart | ||
| run: helm lint charts/agentrax/ | ||
|
|
||
| - name: Template Helm Chart | ||
| run: helm template test charts/agentrax/ --debug | ||
|
|
||
| build: | ||
| name: Docker Build | ||
| runs-on: ubuntu-latest | ||
| needs: [lint, test] | ||
| needs: [lint, test, helm-lint] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
|
|
@@ -71,3 +88,27 @@ jobs: | |
| tags: ghcr.io/gitcommitankit/agentrax:${{ github.sha }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
|
|
||
| e2e: | ||
| name: End-to-End Tests (kind) | ||
| runs-on: ubuntu-latest | ||
| needs: [build] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win Disable checkout credential persistence in the E2E job.
🧰 Tools🪛 zizmor (1.29.0)[warning] 97-97: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [error] 97-97: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "1.23" | ||
| cache: true | ||
|
|
||
| - name: Create kind Cluster | ||
| uses: helm/[email protected] | ||
| with: | ||
| cluster_name: agentrax-e2e | ||
|
|
||
| - name: Install cluster dependencies | ||
| run: make deploy-deps | ||
|
|
||
| - name: Run E2E Tests | ||
| run: make test-e2e | ||
|
Comment on lines
+92
to
+114
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n -C 10 \
'test-e2e|IMG[?+:=]|kind load docker-image|docker (load|save)|kustomize edit set image|ghcr.io/gitcommitankit/agentrax' \
Makefile test/e2e config .githubRepository: gitcommitankit/agentrax Length of output: 8340 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- Makefile targets and image variables ---'
sed -n '1,145p' Makefile
printf '%s\n' '--- E2E image and setup references ---'
rg -n -C 12 \
'projectimage|LoadImageToKindClusterWithName|InstallPrometheus|InstallPrometheusAdapter|InstallGateway|Gateway API|deploy-deps|InstallCertManager|kind' \
test/e2e config Makefile .github
printf '%s\n' '--- deploy-deps definition ---'
rg -n -C 20 '^deploy-deps:|deploy-deps' Makefile scripts config test .githubRepository: gitcommitankit/agentrax Length of output: 50380 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- Makefile ---'
sed -n '1,130p' Makefile
printf '%s\n' '--- E2E image setup ---'
rg -n -C 8 \
'projectimage|LoadImageToKindClusterWithName|make", "docker-build|make", "deploy|InstallCertManager' \
test/e2e
printf '%s\n' '--- Cluster dependency target ---'
rg -n -C 12 '^deploy-deps:|deploy-deps' MakefileRepository: gitcommitankit/agentrax Length of output: 10355 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- Remaining dependency targets ---'
sed -n '150,205p' Makefile
printf '%s\n' '--- E2E monitoring and gateway setup ---'
rg -n -C 8 \
'Prometheus|prometheus|Adapter|adapter|Gateway|gateway|Install.*Prom|Install.*Gateway|deploy-prometheus|metrics.k8s.io|custom.metrics' \
test/e2e config hack .github Makefile \
-g '!config/crd/external/*.yaml' \
-g '!config/crd/bases/*.yaml'
printf '%s\n' '--- Workflow dependency step ---'
sed -n '92,116p' .github/workflows/ci.ymlRepository: gitcommitankit/agentrax Length of output: 24204 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- Prometheus and adapter installation manifests/commands ---'
rg -n \
'prometheus-adapter|prometheus-operator|kind:[[:space:]]+Prometheus|prometheus-community|prometheus\.yaml|install.*prometheus|apply.*prometheus' \
Makefile config test .github \
-g '*.yaml' -g '*.yml' -g 'Makefile' -g '*.go' \
-g '!config/crd/external/*.yaml' \
-g '!config/crd/bases/*.yaml'
printf '%s\n' '--- E2E image lifecycle ---'
sed -n '35,68p' test/e2e/e2e_test.goRepository: gitcommitankit/agentrax Length of output: 3242 Install Prometheus and Prometheus Adapter in
🧰 Tools🪛 zizmor (1.29.0)[warning] 97-97: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [warning] 92-115: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) [error] 97-97: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) [error] 100-100: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) [error] 106-106: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) 🤖 Prompt for AI AgentsSource: Path instructions |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Autoscaling Soak Test | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| soak_duration_minutes: | ||
| description: "Duration to run autoscaling soak in minutes" | ||
| default: "10" | ||
| required: false | ||
|
|
||
| jobs: | ||
| soak: | ||
| name: Autoscaling Soak Test (kind) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "1.23" | ||
| cache: true | ||
|
|
||
| - name: Create kind cluster | ||
| uses: helm/[email protected] | ||
| with: | ||
| cluster_name: agentrax-soak | ||
|
|
||
| - name: Install cluster dependencies | ||
| run: make deploy-deps | ||
|
|
||
| - name: Run Autoscaling Soak Suite | ||
| run: make test-e2e-soak | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| env: | ||
| SOAK_DURATION_MINUTES: ${{ github.event.inputs.soak_duration_minutes }} | ||
Uh oh!
There was an error while loading. Please reload this page.