chore: Fixes for 26.04 12-factor extensions. /tmp and init templates.
Metadata
Current evaluation
Merged PR fixing 26.04 12-factor extensions by staging base-files_tmp slice for bare rocks, resolving paas-charm /tmp permission errors, and updating init templates.
Resolution: closed resolved
Reason: Merged as rockcraft#1399. The change homogenizes bare rock extensions to stage the base-files_tmp slice, resolving the /tmp permission denied error in paas-charm, and corrects comments in 12-factor init templates.
Evaluated by: mr-cal-bot
No scores available.
Issue body
`paas-charm` stores its state under `/tmp/<framework>/state`. Bare rocks built with the Go and Express.js extensions don't contain a `/tmp`, so the charm unit fails on its first hook:
`PathError: mkdir /tmp.mkdir-new permission denied`
The Flask, Django and FastAPI extensions worked around this with a hand-rolled mkdir -m 777 ${CRAFT_PART_INSTALL}/tmp . Spring Boot staged the `base-files_tmp` chisel slice. Go and Express.js did neither.
Homogenize all frameworks using `bare` image to stage the `base-files_tmp` slice and remove the manual `mkdir`. `paas-charm` will use `/tmp` in all frameworks to use internal temporary information.
Also update and fix comments in 12-factor init templates.
Related to: https://github.com/canonical/paas-charm/pull/388
---
- [x] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/blob/main/CONTRIBUTING.md).
- [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [x] I've successfully run `make lint && make test`.
- [ ] I've added or updated any relevant documentation.
- [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.
- [ ] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR fixing 26.04 12-factor extensions by staging base-files_tmp slice for bare rocks, resolving paas-charm /tmp permission errors, and updating init templates. |
Update history
| Date | Change |
|---|---|
| merged | |
| created |
Related work
-
Related To:
paas-charm#388
(confidence 95%)
Explicitly linked in the PR body as the related upstream change requiring this fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1387 chore: Fixes for 26.04 12-factor extensions. /tmp and init templates. | rockcraft | open | Fixes /tmp staging for 12-factor extensions and updates init templates. Approved by 2 reviewers but has 1 unresolved comment requesting rebase onto hotfix/1.21. |