-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: re-enable ci tests #156
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 | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -29,22 +29,22 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
cache: pnpm | ||||||||||||||||||||||||||||||||||||||||||
- run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||
- run: pnpm turbo lint prettier | ||||||||||||||||||||||||||||||||||||||||||
# dev-script: | ||||||||||||||||||||||||||||||||||||||||||
# runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
# steps: | ||||||||||||||||||||||||||||||||||||||||||
# - uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# fetch-depth: 2 | ||||||||||||||||||||||||||||||||||||||||||
# - uses: pnpm/action-setup@v2 | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# version: 8 | ||||||||||||||||||||||||||||||||||||||||||
# - uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# node-version: 20 | ||||||||||||||||||||||||||||||||||||||||||
# cache: 'pnpm' | ||||||||||||||||||||||||||||||||||||||||||
# - run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||
# - run: pnpm start-server-and-test 'turbo dev --filter=registry' 3000 'exit 0;' | ||||||||||||||||||||||||||||||||||||||||||
# working-directory: apps/registry | ||||||||||||||||||||||||||||||||||||||||||
dev-script: | ||||||||||||||||||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||||||||||||||||||
- uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
fetch-depth: 2 | ||||||||||||||||||||||||||||||||||||||||||
- uses: pnpm/action-setup@v2 | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
version: 8 | ||||||||||||||||||||||||||||||||||||||||||
- uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
node-version: 20 | ||||||||||||||||||||||||||||||||||||||||||
cache: 'pnpm' | ||||||||||||||||||||||||||||||||||||||||||
- run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||
- run: pnpm start-server-and-test 'turbo dev --filter=registry' 3000 'exit 0;' | ||||||||||||||||||||||||||||||||||||||||||
working-directory: apps/registry | ||||||||||||||||||||||||||||||||||||||||||
build: | ||||||||||||||||||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||||||||||||||||||
|
@@ -60,29 +60,29 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
cache: pnpm | ||||||||||||||||||||||||||||||||||||||||||
- run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||
- run: pnpm turbo build | ||||||||||||||||||||||||||||||||||||||||||
# test: | ||||||||||||||||||||||||||||||||||||||||||
# runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
# steps: | ||||||||||||||||||||||||||||||||||||||||||
# - uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||
# - uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# node-version: 20 | ||||||||||||||||||||||||||||||||||||||||||
# - uses: pnpm/action-setup@v2 | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# version: 8 | ||||||||||||||||||||||||||||||||||||||||||
# - uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# node-version: 20 | ||||||||||||||||||||||||||||||||||||||||||
# cache: pnpm | ||||||||||||||||||||||||||||||||||||||||||
# - run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||
# - name: Install Playwright Browsers | ||||||||||||||||||||||||||||||||||||||||||
# run: pnpm exec playwright install --with-deps | ||||||||||||||||||||||||||||||||||||||||||
# working-directory: apps/registry | ||||||||||||||||||||||||||||||||||||||||||
# - name: Run Playwright tests | ||||||||||||||||||||||||||||||||||||||||||
# run: pnpm turbo test:e2e --concurrency 1000 # The high concurrency is due to a bug: https://github.com/vercel/turbo/issues/4291 | ||||||||||||||||||||||||||||||||||||||||||
# - uses: actions/upload-artifact@v3 | ||||||||||||||||||||||||||||||||||||||||||
# if: always() | ||||||||||||||||||||||||||||||||||||||||||
# with: | ||||||||||||||||||||||||||||||||||||||||||
# name: playwright-report | ||||||||||||||||||||||||||||||||||||||||||
# path: playwright-report/ | ||||||||||||||||||||||||||||||||||||||||||
# retention-days: 30 | ||||||||||||||||||||||||||||||||||||||||||
test: | ||||||||||||||||||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||||||||||||||||||
- uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||
- uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
node-version: 20 | ||||||||||||||||||||||||||||||||||||||||||
- uses: pnpm/action-setup@v2 | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
version: 8 | ||||||||||||||||||||||||||||||||||||||||||
- uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
node-version: 20 | ||||||||||||||||||||||||||||||||||||||||||
cache: pnpm | ||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+67
to
+76
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. 🛠️ Refactor suggestion Remove duplicate Node.js setup There are two identical Node.js setup steps which is redundant. Remove the duplicate setup: - uses: actions/checkout@v3
- - uses: actions/setup-node@v3
- with:
- node-version: 20
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
- run: pnpm install | ||||||||||||||||||||||||||||||||||||||||||
- name: Install Playwright Browsers | ||||||||||||||||||||||||||||||||||||||||||
run: pnpm exec playwright install --with-deps | ||||||||||||||||||||||||||||||||||||||||||
working-directory: apps/registry | ||||||||||||||||||||||||||||||||||||||||||
- name: Run Playwright tests | ||||||||||||||||||||||||||||||||||||||||||
run: pnpm turbo test:e2e --concurrency 1000 # The high concurrency is due to a bug: https://github.com/vercel/turbo/issues/4291 | ||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+81
to
+82
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. 🛠️ Refactor suggestion Add timeout and consider concurrency settings The Playwright test step should have a timeout, and the high concurrency setting might cause stability issues. Add timeout and adjust concurrency: - name: Run Playwright tests
- run: pnpm turbo test:e2e --concurrency 1000 # The high concurrency is due to a bug: https://github.com/vercel/turbo/issues/4291
+ run: pnpm turbo test:e2e --concurrency 100 # Lower concurrency for stability
+ timeout-minutes: 30 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||
- uses: actions/upload-artifact@v3 | ||||||||||||||||||||||||||||||||||||||||||
if: always() | ||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||
name: playwright-report | ||||||||||||||||||||||||||||||||||||||||||
path: playwright-report/ | ||||||||||||||||||||||||||||||||||||||||||
retention-days: 30 | ||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+83
to
+88
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. 💡 Codebase verification Artifact path configuration mismatch The artifact upload path
🔗 Analysis chainVerify the artifact path configuration The artifact upload step uses a hardcoded path that might not match the actual test output location. Let's verify the Playwright report path: Consider making the path more specific: - uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
- path: playwright-report/
+ path: apps/registry/playwright-report/
retention-days: 30 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for Playwright configuration files to verify the correct report path
rg -l "reporter.*html" . --type yaml --type javascript
Length of output: 91 Script: #!/bin/bash
# Check for Playwright configuration files to verify the correct report path
rg -l "reporter.*html" . --type yaml --type js
Length of output: 85 |
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.
🛠️ Refactor suggestion
Review the dev-script job implementation
The
dev-script
job has several potential issues:exit 0
forces a success status without actual validationConsider this improved implementation:
📝 Committable suggestion