diff --git a/.github/scripts/check-folders.js b/.github/scripts/check-folders.js index 125cbac4c4d9..76c7906cd44b 100644 --- a/.github/scripts/check-folders.js +++ b/.github/scripts/check-folders.js @@ -14,6 +14,9 @@ async function main() { 'package.json', // package.json at root 'generic/basic', // generic/basic doesn't use Github action matrix feature which we parse to find out the differences 'generic/basic-m1', // generic/basic-m1 doesn't use Github action matrix feature which we parse to find out the differences + // Disabled for now, as it's failing with + // Our Container Sandbox (SSE) experience has been replaced with Devboxes (https://codesandbox.io/docs/learn/devboxes/overview) + 'platforms/codesandbox', 'platforms-serverless-vercel/vercel-with-redwood/api', // Redwood uses workspaces but is included 'platforms-serverless-vercel/vercel-with-redwood/web', // Redwood uses workspaces but is included 'platforms-serverless/firebase-functions/functions', // Firebase root doesn't have package.json but is included diff --git a/.github/workflows/optional-test.yaml b/.github/workflows/optional-test.yaml index 955c273c3794..60828073a74d 100644 --- a/.github/workflows/optional-test.yaml +++ b/.github/workflows/optional-test.yaml @@ -148,61 +148,61 @@ jobs: if: failure() run: bash .github/slack/notify-failure.sh ${{ github.job }} ${{ matrix.generator }} - platforms-codesandbox: - needs: [detect_jobs_to_run] - if: contains(fromJSON(needs.detect_jobs_to_run.outputs.jobs), 'platforms') - - timeout-minutes: 45 - strategy: - fail-fast: false - matrix: - platform: - - codesandbox - clientEngine: ['library', 'binary'] - os: [ubuntu-22.04] - runs-on: ${{ matrix.os }} - concurrency: ${{ github.job }}-${{ matrix.platform }}-${{ matrix.clientEngine }} - - steps: - - uses: actions/checkout@v4 - - - uses: pnpm/action-setup@v3.0.0 - with: - version: 8 - - - uses: actions/setup-node@v4 - with: - node-version: 16 - cache: 'npm' - cache-dependency-path: platforms/${{ matrix.platform }}/package-lock.json - - - name: Define Client Engine Type to test - run: echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.clientEngine }}" >> $GITHUB_ENV - - - name: Install Dependencies - run: npm install - - - name: Install Puppeteer - uses: ianwalter/puppeteer-container@v4.0.0 - - - name: Set test specific DATABASE_URL - run: | - string=${{ env.DATABASE_URL_POSTGRES_TEMPLATE }} - search=database - replace=${{ github.job }}_${{ matrix.platform }}_${{ matrix.os }}_${{ matrix.clientEngine }} - replaced=${string/$search/$replace} - echo "DATABASE_URL=$replaced" >> $GITHUB_ENV - env: - DATABASE_URL_POSTGRES_TEMPLATE: ${{ secrets.DATABASE_URL_POSTGRES_TEMPLATE }} - - - name: test ${{ matrix.platform }} - ${{ matrix.clientEngine }} - id: run-test - uses: nick-invision/retry@v3 - with: - timeout_minutes: 45 - max_attempts: 3 - command: bash .github/scripts/test-project.sh ${{ github.job }} ${{ matrix.platform }} - - - name: notify-slack - if: failure() - run: bash .github/slack/notify-failure.sh ${{ github.job }} ${{ matrix.platform }} + # platforms-codesandbox: + # needs: [detect_jobs_to_run] + # if: contains(fromJSON(needs.detect_jobs_to_run.outputs.jobs), 'platforms') + + # timeout-minutes: 45 + # strategy: + # fail-fast: false + # matrix: + # platform: + # - codesandbox + # clientEngine: ['library', 'binary'] + # os: [ubuntu-22.04] + # runs-on: ${{ matrix.os }} + # concurrency: ${{ github.job }}-${{ matrix.platform }}-${{ matrix.clientEngine }} + + # steps: + # - uses: actions/checkout@v4 + + # - uses: pnpm/action-setup@v3.0.0 + # with: + # version: 8 + + # - uses: actions/setup-node@v4 + # with: + # node-version: 16 + # cache: 'npm' + # cache-dependency-path: platforms/${{ matrix.platform }}/package-lock.json + + # - name: Define Client Engine Type to test + # run: echo "PRISMA_CLIENT_ENGINE_TYPE=${{ matrix.clientEngine }}" >> $GITHUB_ENV + + # - name: Install Dependencies + # run: npm install + + # - name: Install Puppeteer + # uses: ianwalter/puppeteer-container@v4.0.0 + + # - name: Set test specific DATABASE_URL + # run: | + # string=${{ env.DATABASE_URL_POSTGRES_TEMPLATE }} + # search=database + # replace=${{ github.job }}_${{ matrix.platform }}_${{ matrix.os }}_${{ matrix.clientEngine }} + # replaced=${string/$search/$replace} + # echo "DATABASE_URL=$replaced" >> $GITHUB_ENV + # env: + # DATABASE_URL_POSTGRES_TEMPLATE: ${{ secrets.DATABASE_URL_POSTGRES_TEMPLATE }} + + # - name: test ${{ matrix.platform }} - ${{ matrix.clientEngine }} + # id: run-test + # uses: nick-invision/retry@v3 + # with: + # timeout_minutes: 45 + # max_attempts: 3 + # command: bash .github/scripts/test-project.sh ${{ github.job }} ${{ matrix.platform }} + + # - name: notify-slack + # if: failure() + # run: bash .github/slack/notify-failure.sh ${{ github.job }} ${{ matrix.platform }} diff --git a/.github/workflows/scripts/detect-jobs-to-run.test.js b/.github/workflows/scripts/detect-jobs-to-run.test.js index 2e544f142feb..583aa02b7055 100644 --- a/.github/workflows/scripts/detect-jobs-to-run.test.js +++ b/.github/workflows/scripts/detect-jobs-to-run.test.js @@ -40,7 +40,6 @@ describe('detect-jobs-to-run', () => { "databases-macos", "test-runners", "community-generators", - "platforms-codesandbox", ] `) }) @@ -121,7 +120,6 @@ describe('detect-jobs-to-run', () => { "databases-macos", "test-runners", "community-generators", - "platforms-codesandbox", ] `) expect(jobsToRun.includes('platforms')).toBe(true) @@ -158,7 +156,6 @@ describe('detect-jobs-to-run', () => { "databases-macos", "test-runners", "community-generators", - "platforms-codesandbox", ] `) expect(jobsToRun.includes('platforms')).toBe(true) @@ -195,7 +192,6 @@ describe('detect-jobs-to-run', () => { "databases-macos", "test-runners", "community-generators", - "platforms-codesandbox", ] `) expect(jobsToRun.includes('platforms')).toBe(true)