-
Notifications
You must be signed in to change notification settings - Fork 4
chore(test): refresh e2e fixtures #461
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 +1 @@ | ||
| AGENTS.md | ||
| /tmp/clerk-fixture-astro-abvf7n/AGENTS.md | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| "astro": "astro" | ||
| }, | ||
| "dependencies": { | ||
| "astro": "7.2.6", | ||
| "astro": "7.2.10", | ||
|
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 | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- repository guidance and learnings ---'
head -5 /tmp/coderabbit-repo-knowledge/clerk-cli-79f624a6/*/*.md 2>/dev/null || true
printf '%s\n' '--- changed manifest and lockfile references ---'
git diff -- test/e2e/fixtures/astro/package.json test/e2e/fixtures/astro/bun.lockb || true
printf '%s\n' '--- fixture files ---'
git ls-files 'test/e2e/fixtures/astro/*'
printf '%s\n' '--- audit command definitions ---'
rg -n -C 3 'e2e:audit-fixtures|audit-fixtures|audit' package.json test/e2e 2>/dev/null | head -160
printf '%s\n' '--- Astro dependency declarations ---'
rg -n -C 3 '"astro"|`@clerk/astro`|`@astrojs`' test/e2e/fixtures/astroRepository: clerk/cli Length of output: 23905 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- repository-wide guidance for the fixture and package manifests ---'
cat /tmp/coderabbit-repo-knowledge/clerk-cli-79f624a6/conventions/repo-wide.md
cat /tmp/coderabbit-repo-knowledge/clerk-cli-79f624a6/learnings/test-e2e-fixtures.md
printf '%s\n' '--- fixture instructions ---'
cat test/e2e/fixtures/astro/AGENTS.md
printf '%s\n' '--- manifest ---'
cat -n test/e2e/fixtures/astro/package.json
printf '%s\n' '--- audit implementation ---'
sed -n '1,260p' scripts/audit-e2e-fixtures.ts
printf '%s\n' '--- resolved `@clerk/astro` package entry and direct dependencies ---'
sed -n '450,485p' test/e2e/fixtures/astro/package-lock.json
printf '%s\n' '--- lockfile metadata and package count ---'
sed -n '1,45p' test/e2e/fixtures/astro/package-lock.json
python3 - <<'PY'
import json
p='test/e2e/fixtures/astro/package-lock.json'
d=json.load(open(p))
print('lockfileVersion=', d.get('lockfileVersion'))
print('root dependencies=', d['packages']['']['dependencies'])
print('`@clerk/astro`=', d['packages'].get('node_modules/@clerk/astro'))
PYRepository: clerk/cli Length of output: 16830 🌐 Web query:
💡 Result: As of September 1, 2026, there are no specific vulnerability advisories reported for Citations:
🌐 Web query:
💡 Result: As of September 1, 2026, there are no reported high or critical security vulnerabilities specifically associated with the Astro version 7.2.10 package itself [1]. If you are seeing high or critical vulnerabilities reported by Citations:
🏁 Script executed (no clone): Length of output: 465 🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY' > /tmp/astro-audit-payload.json
import json
lock=json.load(open("test/e2e/fixtures/astro/package-lock.json"))
versions={}
for path, meta in lock.get("packages", {}).items():
if not path.startswith("node_modules/"):
continue
name=path.removeprefix("node_modules/")
# npm lockfiles can encode scoped packages directly after node_modules/.
versions.setdefault(name, []).append(meta["version"])
print(json.dumps(versions, separators=(",", ":")))
PY
printf '%s\n' '--- npm bulk advisory response ---'
curl -ksS --fail-with-body \
-H 'content-type: application/json' \
--data-binary `@/tmp/astro-audit-payload.json` \
https://registry.npmjs.org/-/npm/v1/security/advisories/bulk \
| python3 -c '
import json,sys
d=json.load(sys.stdin)
for name, items in d.items():
for item in items:
print(json.dumps({
"package": name,
"id": item.get("id"),
"title": item.get("title"),
"severity": item.get("severity"),
"vulnerable_versions": item.get("vulnerable_versions"),
"url": item.get("url"),
"findings": item.get("findings"),
}, separators=(",",":")))
'
rm -f /tmp/astro-audit-payload.jsonRepository: clerk/cli Length of output: 429 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- nanoid lockfile entry and dependency edges ---'
rg -n -C 5 '"node_modules/nanoid"|"nanoid":' test/e2e/fixtures/astro/package-lock.json
printf '%s\n' '--- audit-relevant package metadata from npm ---'
curl -ksS --fail-with-body https://registry.npmjs.org/%40clerk%2Fastro \
| python3 -c '
import json,sys
d=json.load(sys.stdin)
latest=d.get("dist-tags",{}).get("latest")
print(json.dumps({
"latest": latest,
"latest_dependencies": d.get("versions",{}).get(latest,{}).get("dependencies"),
"latest_peerDependencies": d.get("versions",{}).get(latest,{}).get("peerDependencies"),
}, indent=2))
'
printf '%s\n' '--- advisory details ---'
curl -ksS --fail-with-body https://registry.npmjs.org/-/npm/v1/security/advisories/1138810 \
| python3 -c '
import json,sys
d=json.load(sys.stdin)
print(json.dumps({
"id": d.get("id"),
"title": d.get("title"),
"severity": d.get("severity"),
"vulnerable_versions": d.get("vulnerable_versions"),
"patched_versions": d.get("patched_versions"),
"recommendation": d.get("recommendation"),
"url": d.get("url"),
}, indent=2))
' || trueRepository: clerk/cli Length of output: 2454 Resolve the high-severity
🤖 Prompt for AI Agents |
||
| "@clerk/astro": "latest" | ||
| }, | ||
| "allowScripts": { | ||
|
|
||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Keep the
CLAUDE.mdsymlink relative.The committed target points to a temporary
/tmppath. In a normal checkout, that path is absent, soCLAUDE.mdcannot resolve the fixture guidance. The refresh test inscripts/refresh-e2e-fixtures.test.tsrequires the targetAGENTS.md; commit that relative target instead.🤖 Prompt for AI Agents