Repository: vercel/next.js
Pull request: [test] Rename "cache component" CI shards to "experimental"

The "cache component" shards are not the only shards testing Cache Components. They only run tests where we haven't explicitly enabled the flag. The "normal" shards might also test Cache Components which makes the manifest confusing ("Why are `cache-components-*` excluded when this seems like the purpose of this shard?").

The experimental shards will test upcoming feature flags that we want broader test coverage for (e.g. new scroll handlers via Fragment refs). But even without any Next.js specific feature flags, we'd at least start testing React's experimental channel (not implemented here).


Changed files:
filename: .github/workflows/build_and_test.yml
patch: @@ -878,10 +878,10 @@ jobs:
       stepName: 'test-ppr-prod-${{ matrix.group }}'
     secrets: inherit
 
-  # TODO: remove these jobs once Cache Components is the default
+  # TODO: Disable these when no more experiments are tested
   # Manifest generated via: https://gist.github.com/wyattjoh/2ceaebd82a5bcff4819600fd60126431
-  test-cache-components-integration:
-    name: test cache components integration
+  test-experimental-integration:
+    name: test experimental integration
     needs: ['optimize-ci', 'changes', 'build-native', 'build-next']
     if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
 
@@ -891,16 +891,16 @@ jobs:
       afterBuild: |
         export __NEXT_EXPERIMENTAL_PPR=true # for compatibility with the existing tests
         export __NEXT_EXPERIMENTAL_CACHE_COMPONENTS=true
-        export NEXT_EXTERNAL_TESTS_FILTERS="test/cache-components-tests-manifest.json"
+        export NEXT_EXTERNAL_TESTS_FILTERS="test/experimental-tests-manifest.json"
 
         node run-tests.js \
           --timings \
           --type integration
-      stepName: 'test-cache-components-integration'
+      stepName: 'test-experimental-integration'
     secrets: inherit
 
-  test-cache-components-dev:
-    name: test cache components dev
+  test-experimental-dev:
+    name: test experimental dev
     needs: ['optimize-ci', 'changes', 'build-native', 'build-next']
     if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
 
@@ -913,18 +913,18 @@ jobs:
       afterBuild: |
         export __NEXT_EXPERIMENTAL_PPR=true # for compatibility with the existing tests
         export __NEXT_EXPERIMENTAL_CACHE_COMPONENTS=true
-        export NEXT_EXTERNAL_TESTS_FILTERS="test/cache-components-tests-manifest.json"
+        export NEXT_EXTERNAL_TESTS_FILTERS="test/experimental-tests-manifest.json"
         export NEXT_TEST_MODE=dev
 
         node run-tests.js \
           --timings \
           -g ${{ matrix.group }} \
           --type development
-      stepName: 'test-cache-components-dev-${{ matrix.group }}'
+      stepName: 'test-experimental-dev-${{ matrix.group }}'
     secrets: inherit
 
-  test-cache-components-prod:
-    name: test cache components prod
+  test-experimental-prod:
+    name: test experimental prod
     needs: ['optimize-ci', 'changes', 'build-native', 'build-next']
     if: ${{ needs.optimize-ci.outputs.skip == 'false' && needs.changes.outputs.docs-only == 'false' }}
 
@@ -937,14 +937,14 @@ jobs:
       afterBuild: |
         export __NEXT_EXPERIMENTAL_PPR=true # for compatibility with the existing tests
         export __NEXT_EXPERIMENTAL_CACHE_COMPONENTS=true
-        export NEXT_EXTERNAL_TESTS_FILTERS="test/cache-components-tests-manifest.json"
+        export NEXT_EXTERNAL_TESTS_FILTERS="test/experimental-tests-manifest.json"
         export NEXT_TEST_MODE=start
 
         node run-tests.js \
           --timings \
           -g ${{ matrix.group }} \
           --type production
-      stepName: 'test-cache-components-prod-${{ matrix.group }}'
+      stepName: 'test-experimental-prod-${{ matrix.group }}'
     secrets: inherit
 
   tests-pass:
@@ -963,9 +963,9 @@ jobs:
         'test-ppr-dev',
         'test-ppr-prod',
         'test-ppr-integration',
-        'test-cache-components-dev',
-        'test-cache-components-prod',
-        'test-cache-components-integration',
+        'test-experimental-dev',
+        'test-experimental-prod',
+        'test-experimental-integration',
         'test-cargo-unit',
         'rust-check',
         'rustdoc-check',