Storage path prefix follow-up: deploy tidies and refuses review/./.. segments, per-app lifecycle rule and its age, pre-alpha.37 review apps (template #168, #169)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github-actions, php
- Domain
- cloud, devops, documentation
Research direction
Read the linked template issues #168 and #169 and docs#247, then check the template branch fix/storage-prefix-168-169 and its CHANGELOG.md for the final commits. Verify the documented GCLOUD_PATH_PREFIX rules, lifecycle prefix and age guidance, pre-alpha.37 migration steps, and stop warning path against that change; done when the docs accurately cover each behavior and the upgrade steps.
Written by the indexing model from the issue text.
Description
Follow-up to docs#247 (closed, documented in de3025f), from template components-web-app#168 and #169. Fix on the template branch fix/storage-prefix-168-169, landing in the next template release after 2.0.0-alpha.37; the template's CHANGELOG.md will link the final commits. Found while working on #170.
GCLOUD_PATH_PREFIX rules (variables "Storage path prefix")
- The deploy now tidies the prefix exactly as php does (trims whitespace, squeezes doubled slashes, strips leading/trailing
/, adds one trailing/), sosite-a//stores review apps undersite-a/review/<slug>/. - The deploy fails before touching the cluster on a
.or..segment, or on a wholereviewsegment (review/,site/review):review/is where review apps store.reviews/ormy-review/are fine. Upgrade note: rename such a prefix first, moving its objects with it.
Lifecycle rule (ci-cd "Review app storage")
- One rule per prefixed app:
matchesPrefix: ["<GCLOUD_PATH_PREFIX>review/"](["review/"]only with no prefix). agecounts from each object's creation, not from the review app's stop, so pick an age longer than review apps live, or the rule deletes a running review app's uploads.
Review apps deployed before 2.0.0-alpha.37
- Their uploads sit at the bucket root. After their next deploy (which adds the
review/<slug>/prefix) those uploads 404 and the orphan scan no longer sees them. - Fix: redeploy with fresh fixtures (
CWA_CI_FIXTURES_PURGE=trueon the review fixture job), or stop and recreate the review app, then delete the old root objects by hand. - Stop review's warning (when the guarded delete fails) now prints the app's real path, e.g.
site-a/review/<slug>/, and the lifecycle prefix to rely on.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from components-web-app/docs
-
Browser Tests page: the template's tests no longer use the sample content (components-web-app#177)Open
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
components-web-app/docs#267 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
components-web-app/docs#266 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
components-web-app/docs#265 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
components-web-app/docs#264 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
components-web-app/docs#263 · 1 comment ·
All issues in components-web-app/docs
Similar issues
-
area: aria/combobox gemini-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
angular/components#33973 ·
Maintainers usually reply within 1 day
-
bug priority: P2
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[bug] status, list and push crash with an uncaught NotInitializedError stack trace when teamai is not initializedPossibly taken @jay23606 claimed this today. Openbug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Tencent/teamai-cli#1227 ·
Maintainers usually reply within 1 day
-
[Tool]: YapOpen
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
withkarann/aifoxx#417 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sindresorhus/eslint-plugin-unicorn#3921 ·
Maintainers usually reply within 1 day