Skip to content

ci(v7): Bump to ubuntu-24.04 #17083

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

Merged
merged 24 commits into from
Jul 24, 2025
Merged

ci(v7): Bump to ubuntu-24.04 #17083

merged 24 commits into from
Jul 24, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented Jul 18, 2025

ubuntu-20.04 is no longer working, so CI is no longer working and nothing can be merged in v7 :O

Changes required to make this work:

  • Skip all playwright tests on CI :( We need to manually test changes locally instead. Playwright in this version simply does not like ubuntu-24.04
  • Skip mongoose/mongodb tests because they somehow also fail
  • Stop compiling node profiling binaries - we vendor them in instead
  • Size limit action fails because the comparison artifacts have expired 😅

@mydea mydea requested review from Lms24 and andreiborza July 18, 2025 11:20
@mydea mydea self-assigned this Jul 18, 2025
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Jul 18, 2025

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 80.96 KB (added)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 71.9 KB (added)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 76.15 KB (added)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 65.53 KB (added)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 35.78 KB (added)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 35.67 KB (added)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.71 KB (added)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.73 KB (added)
@sentry/browser - Webpack (gzipped) 22.92 KB (added)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 79.18 KB (added)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.5 KB (added)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 36.17 KB (added)
@sentry/browser - ES6 CDN Bundle (gzipped) 25.42 KB (added)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 221.94 KB (added)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 109.54 KB (added)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 76.26 KB (added)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 39.48 KB (added)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 72.4 KB (added)
@sentry/react - Webpack (gzipped) 22.95 KB (added)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 90.16 KB (added)
@sentry/nextjs Client - Webpack (gzipped) 54.28 KB (added)
@sentry-internal/feedback - Webpack (gzipped) 17.34 KB (added)

@mydea mydea force-pushed the fn/v7-ubuntu-ci branch from e93336e to dc0a5ef Compare July 18, 2025 12:06
cursor[bot]

This comment was marked as outdated.

@mydea mydea force-pushed the fn/v7-ubuntu-ci branch from a9b40fd to 8e31cc6 Compare July 21, 2025 08:36
cursor[bot]

This comment was marked as outdated.

@mydea mydea force-pushed the fn/v7-ubuntu-ci branch from 8e31cc6 to e961bc3 Compare July 21, 2025 09:02
cursor[bot]

This comment was marked as outdated.

mydea added 7 commits July 21, 2025 11:46
ubuntu-20.04 is no longer working

Revert "try 22.04"

This reverts commit 6f6cd22.
fix profiling stuff

fix profiling node

fix tarball cache
fix prisma ??
@mydea mydea force-pushed the fn/v7-ubuntu-ci branch from 025fd11 to a43bd04 Compare July 21, 2025 10:49
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Playwright Tests Fail Due to Missing Dependencies

Playwright tests are failing on Ubuntu 24.04 runners in job_nextjs_integration_test, job_browser_playwright_tests, and job_browser_loader_tests. This is because the npx playwright install --with-deps flag and the npx playwright install-deps step were removed from these jobs. Although OS dependencies are installed in job_install_deps, each GitHub Actions job runs on a fresh runner, preventing these dependencies from being available to the separate Playwright test jobs.

.github/workflows/build.yml#L614-L620

key: ${{ runner.os }}-Playwright-${{steps.playwright-version.outputs.version}}
- name: Install Playwright browser if not cached
if: steps.playwright-cache.outputs.cache-hit != 'true' && matrix.node >= 14
run: npx playwright install
env:
PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}}
- name: Run tests

.github/workflows/build.yml#L706-L710

- name: Install Playwright browser if not cached
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install
env:
PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}}

.github/workflows/build.yml#L759-L763

- name: Install Playwright browser if not cached
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install
env:
PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}}

Fix in CursorFix in Web


Bug: Missing Directory Causes Build Script Failure

The build:copy-bindings script attempts to copy from compiled-bindings/ to lib/. However, the node-gyp build steps (and associated CI job) that previously created and populated compiled-bindings/ have been removed. This results in the compiled-bindings/ directory not existing, causing the cp command to fail and break the build process.

packages/profiling-node/package.json#L53-L54

"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:copy-bindings": "cp -r compiled-bindings/ lib/",

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Playwright Browser Installation Script Removed

The postinstall script, which automatically installed Playwright browsers via yarn install-browsers, was removed. This causes browser integration tests to fail due to missing browsers unless they are manually installed.

dev-packages/browser-integration-tests/package.json#L14-L16

"fix": "eslint . --format stylish --fix",
"type-check": "tsc",
"pretest": "yarn clean && yarn type-check",

Fix in CursorFix in Web


job_nextjs_integration_test:
name: Nextjs (Node ${{ matrix.node }}) Tests
needs: [job_get_metadata, job_build]
if: needs.job_get_metadata.outputs.changed_nextjs == 'true' || github.event_name != 'pull_request'
if: false
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Next.js Integration Tests Disabled

The job_nextjs_integration_test is completely disabled by setting its if condition to false. This likely accidental change prevents important Next.js integration tests from running, potentially masking functionality issues, especially after the upgrade to Ubuntu 24.04.

Locations (1)

Fix in CursorFix in Web

"test:bundle": "node test-binaries.esbuild.js",
"test": "cross-env SENTRY_PROFILER_BINARY_DIR=lib jest --config jest.config.js"
"test:watch": "cross-env SENTRY_PROFILER_BINARY_DIR=compiled-bindings jest --watch",
"test": "cross-env SENTRY_PROFILER_BINARY_DIR=compiled-bindings jest --config jest.config.js"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Node Profiling Build Fails Due to Missing Bindings

The packages/profiling-node build and test scripts now rely on a compiled-bindings directory that is never created or populated. The build:copy-bindings script attempts to copy from this non-existent directory, leading to build failures. Similarly, test scripts set SENTRY_PROFILER_BINARY_DIR to this missing directory, preventing tests from running. This change removed the previous node-gyp steps responsible for generating these bindings.

Locations (1)

Fix in CursorFix in Web

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing Postinstall Script Causes Test Failures

The postinstall script, "yarn install-browsers", was removed from dev-packages/browser-integration-tests/package.json. This script automatically installed Playwright browsers. Its removal prevents automatic browser installation during dependency setup, leading to browser integration test failures for local developers.

dev-packages/browser-integration-tests/package.json#L14-L15

"fix": "eslint . --format stylish --fix",
"type-check": "tsc",

Fix in CursorFix in Web


@mydea mydea merged commit bc8bbb6 into v7 Jul 24, 2025
80 of 82 checks passed
@mydea mydea deleted the fn/v7-ubuntu-ci branch July 24, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants