mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-11-09 17:53:56 -10:00
fix(ci): exclude migration-owned activation policy from seed cache
Co-authored-by: GPT-6 (Codex) <[email protected]>
This commit is contained in:
1 parent
d3b5bb7dce
commit
abcb6afd83
2 files changed
+10
No files matched your search
@@ -87,6 +87,15 @@ class E2ESeedCacheContractTests(unittest.TestCase):
|
||||
workflow.index("- name: Run Playwright E2E suite"),
|
||||
)
|
||||
|
||||
def test_seed_dump_excludes_migration_owned_activation_policy(self):
|
||||
workflow = (
|
||||
Path(__file__).resolve().parents[1] / "workflows/platform-fullstack-ci.yml"
|
||||
).read_text(encoding="utf-8")
|
||||
dump = workflow.split("pg_dump -U postgres", 1)[1].split(
|
||||
"postgres > /tmp/e2e_test_data.sql", 1
|
||||
)[0]
|
||||
self.assertIn("--exclude-table='platform.\"PaidUsageActivationPolicy\"'", dump)
|
||||
|
||||
def test_seed_cache_key_uses_pristine_checkout(self):
|
||||
workflow = (
|
||||
Path(__file__).resolve().parents[1] / "workflows/platform-fullstack-ci.yml"
|
||||
|
||||
@@ -495,6 +495,7 @@ jobs:
|
||||
pg_dump -U postgres --data-only --column-inserts \
|
||||
--schema=platform \
|
||||
--exclude-table='platform._prisma_migrations' \
|
||||
--exclude-table='platform."PaidUsageActivationPolicy"' \
|
||||
--exclude-table='platform.apscheduler_jobs' \
|
||||
--exclude-table='platform.apscheduler_jobs_batched_notifications' \
|
||||
postgres > /tmp/e2e_test_data.sql
|
||||
|
||||
Reference in new issue
Block a user