Skip to content

Deploy: purge removed vocabulary resources from S3 (aws s3 sync --delete)

Steve CAPELL requested to merge fix/deploy-s3-delete into main

The deploy-ontology job used aws s3 sync without --delete, so it only added/updated objects and never removed resources deleted from the ontology. Removed terms (e.g. the LetterOfCredit class and its issuingBank/creditAmount properties) kept resolving on test.uncefact.org/vocabulary while the local build (which rebuilds dist/ clean) 404s them.

  • Add --delete to all three content-typed sync passes. The include/exclude filters scope each delete to its file type, so the passes purge orphaned .jsonld, .ttl and .html/asset objects without deleting each other's files.
  • Trigger the ontology build/deploy when scripts/build-vocab-site.py, scripts/_vocab_base.py or .gitlab-ci.yml change (not only ontology/**), so a build-script or deploy fix actually redeploys — and merging this fix immediately re-runs the deploy, purging the current orphans.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Merge request reports

Loading