Skip to content

fix: allow install under read-only $HOME#175

Merged
chrisburr merged 3 commits intoDIRACGrid:mainfrom
chrisburr:fix/readonly-home
Apr 16, 2026
Merged

fix: allow install under read-only $HOME#175
chrisburr merged 3 commits intoDIRACGrid:mainfrom
chrisburr:fix/readonly-home

Conversation

@chrisburr
Copy link
Copy Markdown
Member

Set register_envs: false to document that DIRACOS installers do not need ~/.conda/environments.txt, and make the basic-tests CI rows exercise a read-only $HOME to catch regressions like #174.

BEGINRELEASENOTES

FIX: install under read-only $HOME (#174)

ENDRELEASENOTES

DIRACOS installers do not need ~/.conda/environments.txt and the
unconditional ~/.conda creation breaks installs under a read-only
$HOME (DIRACGrid#174).
Mirrors the reproducer from DIRACGrid#174 on every basic-tests
matrix row. Runs the installer as a non-root user (root ignores
permission bits, which would mask the regression), then restores
ownership for the post-install suite since singularity/apptainer's
user-namespace mapping cannot traverse tester-owned dirs.
@chrisburr chrisburr force-pushed the fix/readonly-home branch 2 times, most recently from b2e3a59 to 2864178 Compare April 15, 2026 09:31
@chrisburr chrisburr marked this pull request as ready for review April 15, 2026 10:01
@chrisburr chrisburr requested review from chaen and fstagni April 15, 2026 10:01
@chrisburr chrisburr force-pushed the fix/readonly-home branch 2 times, most recently from 46d9dd8 to 2c6a33a Compare April 15, 2026 13:05
Pin constructor to chrisburr/constructor@fix/mkdir-conda-guard so the
basic-tests CI actually passes. Revert to the conda-forge release
once the upstream fix lands and ships.
@chrisburr
Copy link
Copy Markdown
Member Author

The PR to fix this upstream has been merged (this PR is still needed to get the DIRACOS2 side of the fix).

Comment thread pixi.toml
"ruamel.yaml" = ">=0.11.14,<0.19"

[pypi-dependencies]
constructor = { git = "https://github.com/chrisburr/constructor.git", branch = "fix/mkdir-conda-guard" }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a temporary thing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes just until the next release of constructor as my pull request has already been merged

@chrisburr chrisburr merged commit 7f1d17b into DIRACGrid:main Apr 16, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants