rusackas commented on code in PR #45601:
URL: https://github.com/apache/superset/pull/45601#discussion_r4344397276


##########
.github/workflows/caches.js:
##########
@@ -35,6 +35,25 @@ const assetsConfig = {
 };
 
 // Multi-layer cache definition
+// A pg_dump of the metadata + examples database the Playwright jobs load with
+// `superset load_examples`. Keyed on everything that shapes that data: the
+// example loaders and their YAML configs, migrations, the CLI commands that
+// run, the CI config, and the E2E workflow itself (it pins the Postgres image
+// the dump has to match).
+const playwrightTestdataConfig = {
+  path: ['/tmp/superset-playwright-testdata'],
+  hashFiles: [
+    `${workspaceDirectory}/superset/examples/**/*`,
+    `${workspaceDirectory}/superset/migrations/**/*`,
+    `${workspaceDirectory}/superset/cli/examples.py`,
+    `${workspaceDirectory}/superset/cli/test.py`,
+    `${workspaceDirectory}/tests/integration_tests/superset_test_config.py`,
+    `${workspaceDirectory}/.github/workflows/superset-e2e.yml`,
+    `${workspaceDirectory}/.github/workflows/bashlib.sh`,
+  ],

Review Comment:
   @sadpandajoe good catch. The key now hashes all `superset/**/*.py`, 
`requirements/*.txt` and `pyproject.toml`, so importer/model logic or 
dependency changes rebuild the dump.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to