Repository navigation
fix(playwright): align ontology library specs with the install job - #37510
Conversation
#37489 moved library installs to the ONTOLOGY_PACK_INSTALL background job and pack reviews to /library/{pack}/summary, but the specs it touched never ran (Playwright was skipped on that PR), so the nightly AUT failed 7 ontology tests. - OntologyNativeLibrary: the industry filter asserted sosa-ssn both visible and absent; assert the healthcare pack fhir is filtered out instead. - OntologyNativeImportReview: wait for the install job, not a change-set apply; DCAT reviews 48 New and 14 Skipped (properties whose ranges sit outside the pack), so Publish grows by 48; route the failed review to /summary. - OntologyNativeOperations: drop the change-set draft interception and the /preview replay the UI no longer calls; retry a lost install start and assert a reinstall settles as an empty (total 0) job. - utils/ontologyStudio: waitForPackInstallJob returns the settled job.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…d-to badge The detail badge renders the pack abbreviation (Aligned to SOSA/SSN), not the standard's full name.
Code Review ✅ Approved 🟢 Low riskChanges are confined to Playwright ontology specs, a test helper, and generated impact metadata; they adjust test expectations without changing application behavior. Realigns the ontology Playwright specs with the background install job from #37489, covering the sosa-ssn industry filter, the install wait and expected counts, the review summary route, and the install-start assertions. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes
Nightly AUT run 42924598595 fails 7 ontology tests on both MySQL and PostgreSQL. All 7 are deterministic failures on the first attempt. There are two causes.
1. Collate server, already being fixed in openmetadata-collate#8405. Collate forks
backgroundJob.jsonand its copy lacksONTOLOGY_PACK_INSTALL. In the Collate server log, everyPOST /ontologies/{id}/library/{pack}/installthrowsjava.lang.NoSuchFieldError, so no library install ever completes. That breaks every "… Installed" assertion. This PR doesn't touch it.2. Spec drift from #37489, fixed here. #37489 moved library installs to a background job and moved pack reviews to
/library/{pack}/summary. Playwright was skipped on that PR, so the edited specs never ran. These tests fail against a plain OM server too, and would keep failing after #8405 merges:OntologyNativeLibraryfhir→sosa-ssnrename, the industry filter check asserts thatontology-pack-sosa-ssnis visible and also has count 0ontology-pack-fhir(healthcare) is filtered out; expect the badge textAligned to SOSA/SSNOntologyNativeImportReview› installs a pack…/ontologyChangeSets/*/apply, which installs no longer call; expectsPublish (+62)COMPLETED; expect+48OntologyNativeImportReview› lists its items as New…New, but DCAT reviews 48Newand 14Skipped. The skipped ones are properties whose ranges sit outside the pack (dcterms:Location,rdfs:Resource,foaf:Document…), as seen in the failure snapshot.NativeOntologyImportReviewITalready accepts NEW or SKIPPEDNewand 14Skipped, with no warningsOntologyNativeImportReview› a failed pack review…/library/*/review, but the UI now calls/summary/summaryOntologyNativeOperations› installs sosa-ssn ×2POST /ontologyChangeSetsdrafts and waits for a/library/{pack}/previewreplay; the UI calls neither anymore/installstarts. The source-ontology variant drops the first start and checks that the UI's Retry finishes the install. A reinstall into the installed target must settle as an empty job (total: 0)New helper:
waitForPackInstallJob(page, ontologyId)inplaywright/utils/ontologyStudio.ts. It returns the settled job, whether that comes from the start response or from a poll.Test titles are unchanged, so the timing baseline still applies.
Test evidence
OntologyNativeLibrary,OntologyNativeImportReview,OntologyNativeOperationsandOntologyFirstRun, so all 7 tests that failed in the nightly now pass.Aligned to SOSA/SSN), not the full standard name. Fixed in b1bc823.tsc --noEmit -p playwright/tsconfig.json: passes. ESLint onplaywright/**: 0 errors. organize-imports and prettier leave the files unchanged.🤖 Generated with Claude Code