-
Notifications
You must be signed in to change notification settings - Fork 951
Remove Argos CI integration #7955
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| import { test } from "@playwright/test"; | ||
| import { argosScreenshot } from "@argos-ci/playwright"; | ||
| import { test, expect } from "@playwright/test"; | ||
|
|
||
| test("screenshot homepage", async ({ page }) => { | ||
| await page.goto("/"); | ||
| await argosScreenshot(page, "homepage"); | ||
| await expect(page).toHaveScreenshot("homepage.png"); | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| import { test } from "@playwright/test"; | ||
| import { argosScreenshot } from "@argos-ci/playwright"; | ||
| import { test, expect } from "@playwright/test"; | ||
|
|
||
| test("screenshot homepage", async ({ page }) => { | ||
| await page.goto("/"); | ||
| await argosScreenshot(page, "homepage"); | ||
| await expect(page).toHaveScreenshot("homepage.png"); | ||
|
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
for p in \
"apps/eclipse/tests/example.spec.ts-snapshots/homepage-chromium-linux.png" \
"apps/docs/tests/example.spec.ts-snapshots/homepage-chromium-linux.png"
do
if [ -f "$p" ]; then
echo "FOUND: $p"
else
echo "MISSING: $p"
fi
done
echo "--- tracked snapshot files ---"
git ls-files 'apps/*/tests/*.spec.ts-snapshots/*' || trueRepository: prisma/web Length of output: 246 🏁 Script executed: # Verify the test file exists and check its content
if [ -f "apps/eclipse/tests/example.spec.ts" ]; then
echo "=== Test file content ==="
cat -n "apps/eclipse/tests/example.spec.ts"
else
echo "Test file not found"
fiRepository: prisma/web Length of output: 305 🏁 Script executed: # Check for any snapshot files that might exist
echo "=== Checking for any existing snapshot files ==="
find apps/eclipse/tests -name "*snapshot*" -o -name "*.png" 2>/dev/null || echo "No snapshot files found"
# Also check the exact directory structure
echo "=== Directory structure under apps/eclipse/tests ==="
find apps/eclipse/tests -type f 2>/dev/null | head -20Repository: prisma/web Length of output: 191 🏁 Script executed: # Verify Playwright configuration and snapshot expectations
echo "=== Checking Playwright config ==="
find . -maxdepth 3 -name "playwright.config.*" -o -name "playwright.json" 2>/dev/null | xargs cat 2>/dev/null || echo "No Playwright config found"Repository: prisma/web Length of output: 2481 🏁 Script executed: # Check if docs test file exists with same assertion
if [ -f "apps/docs/tests/example.spec.ts" ]; then
echo "=== Docs test file found ==="
cat -n "apps/docs/tests/example.spec.ts"
else
echo "Docs test file not found at apps/docs/tests/example.spec.ts"
fiRepository: prisma/web Length of output: 308 Add and commit Playwright baseline snapshot(s) for the new assertion. The test at line 5 uses To fix this, generate the snapshot locally by running the test (which will create the baseline), then commit the resulting snapshot files. Playwright will automatically name them following the pattern Expected snapshot locations:
🧰 Tools🪛 GitHub Actions: Eclipse Tests / 0_Playwright Tests (Eclipse).txt[error] 5-5: Playwright screenshot assertion failed (toHaveScreenshot). A snapshot doesn't exist at /home/runner/work/web/web/apps/eclipse/tests/example.spec.ts-snapshots/homepage-chromium-linux.png; writing actual. Expected tests/example.spec.ts-snapshots/homepage-chromium-linux.png, received test-results/example-screenshot-homepage-chromium/homepage-actual.png. 🪛 GitHub Actions: Eclipse Tests / Playwright Tests (Eclipse)[error] 5-6: Playwright screenshot assertion failed (toHaveScreenshot). Snapshot does not exist at /home/runner/work/web/web/apps/eclipse/tests/example.spec.ts-snapshots/homepage-chromium-linux.png; Playwright wrote the actual screenshot to test-results/example-screenshot-homepage-chromium/homepage-actual.png. 🤖 Prompt for AI AgentsSource: Pipeline failures |
||
| }); | ||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove stale
ARGOS_TOKENfrom CI test jobs.Line 12 removes Argos reporter/token usage, but the Playwright workflows still inject
ARGOS_TOKEN(for Docs and Eclipse). Keeping an unused secret in test job env broadens secret exposure and leaves the Argos cleanup incomplete; please remove it from.github/workflows/docs-test.ymland.github/workflows/eclipse-test.yml.🤖 Prompt for AI Agents