-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ci: updated cores #38420
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
ci: updated cores #38420
Changes from all commits
ce14fb1
6f5f5c1
b9dff17
d761634
40a52cb
1c03b30
26a25a8
d0d46ea
5439d4d
8b3fe32
4b858d8
44d9700
9b0dd98
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 | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -21,7 +21,7 @@ on: | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||
| ci-test: | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest-8-cores | ||||||||||||||||||||||||||||||||||||||||||
| if: | | ||||||||||||||||||||||||||||||||||||||||||
| github.event.pull_request.head.repo.full_name == github.repository || | ||||||||||||||||||||||||||||||||||||||||||
| github.event_name == 'push' || | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -182,8 +182,14 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
| echo "COMMIT_INFO_MESSAGE=Manual workflow run for Hosted tests" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Monitor Resource Usage | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| echo "Monitoring system metrics during Cypress tests..." | ||||||||||||||||||||||||||||||||||||||||||
| nohup bash -c 'while true; do echo "==== CPU & RAM Usage ===="; top -b -n 1 | head -n 10; echo "==== Disk Usage ===="; df -h; sleep 10; done' > resource_usage.log & | ||||||||||||||||||||||||||||||||||||||||||
| echo $! > resource_monitor_pid | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+185
to
+190
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. 🛠️ Refactor suggestion Resource monitoring implementation needs improvement. The current implementation has several issues:
Apply this diff to improve the implementation: - - name: Monitor Resource Usage
- run: |
- echo "Monitoring system metrics during Cypress tests..."
- nohup bash -c 'while true; do echo "==== CPU & RAM Usage ===="; top -b -n 1 | head -n 10; echo "==== Disk Usage ===="; df -h; sleep 10; done' > resource_usage.log &
- echo $! > resource_monitor_pid
+ - name: Monitor Resource Usage
+ run: |
+ echo "Monitoring system metrics during Cypress tests..."
+ nohup bash -c '
+ while true; do
+ timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
+ echo "{"
+ echo " \"timestamp\": \"$timestamp\","
+ echo " \"cpu_ram\": $(top -bn1 | head -n 10 | jq -R -s .),"
+ echo " \"disk\": $(df -h | jq -R -s .)"
+ echo "},"
+ sleep 30
+ done
+ ' > resource_usage.log 2>&1 &
+ echo $! > resource_monitor_pid📝 Committable suggestion
Suggested change
🧰 Tools🪛 yamllint (1.35.1)[error] 189-189: trailing spaces (trailing-spaces) |
||||||||||||||||||||||||||||||||||||||||||
| - name: Run the cypress test | ||||||||||||||||||||||||||||||||||||||||||
| uses: cypress-io/github-action@v6 | ||||||||||||||||||||||||||||||||||||||||||
| uses: cypress-io/github-action@v6.7.8 | ||||||||||||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||
| CYPRESS_USERNAME: ${{ secrets.CYPRESS_USERNAME }} | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -245,13 +251,27 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
| CYPRESS_S3_ACCESS: ${{ secrets.CYPRESS_S3_ACCESS }} | ||||||||||||||||||||||||||||||||||||||||||
| CYPRESS_S3_SECRET: ${{ secrets.CYPRESS_S3_SECRET }} | ||||||||||||||||||||||||||||||||||||||||||
| CYPRESS_STATIC_ALLOCATION: true | ||||||||||||||||||||||||||||||||||||||||||
| DEBUG: 'cypress:*' | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| browser: ${{ env.BROWSER_PATH }} | ||||||||||||||||||||||||||||||||||||||||||
| install: false | ||||||||||||||||||||||||||||||||||||||||||
| config-file: cypress_ci_hosted.config.ts | ||||||||||||||||||||||||||||||||||||||||||
| working-directory: app/client | ||||||||||||||||||||||||||||||||||||||||||
| env: "NODE_ENV=development" | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Stop Monitoring | ||||||||||||||||||||||||||||||||||||||||||
| if: always() | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| kill $(cat resource_monitor_pid) || true | ||||||||||||||||||||||||||||||||||||||||||
| echo "Resource monitoring stopped." | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Upload Resource Usage Log | ||||||||||||||||||||||||||||||||||||||||||
| if: always() | ||||||||||||||||||||||||||||||||||||||||||
| uses: actions/upload-artifact@v3 | ||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||
| name: resource-usage-log | ||||||||||||||||||||||||||||||||||||||||||
| path: resource_usage.log | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Rename reports | ||||||||||||||||||||||||||||||||||||||||||
| if: failure() | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
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.
💡 Codebase verification
Warning:
ubuntu-latest-8-coresis not a standard GitHub-hosted runnerThe runner configuration
ubuntu-latest-8-coresappears to be a custom runner label that's used in several workflows:GitHub's standard hosted runners are
ubuntu-latest,windows-latest, andmacos-latest. Unless your organization has set up self-hosted runners with this label, this change will cause workflow failures.🔗 Analysis chain
LGTM: Runner upgrade addresses memory issues.
The upgrade to 8 cores aligns with the goal of resolving Google Sheets test crashes due to high memory usage.
Let's verify the runner's availability:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 264
Script:
Length of output: 4235
Script:
Length of output: 225
Script:
Length of output: 1924