Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG]: Silent error when EXTRA_CONF_DIRS is invalid #266

Closed
aulemahal opened this issue Oct 25, 2022 · 2 comments · Fixed by #272
Closed

🐛 [BUG]: Silent error when EXTRA_CONF_DIRS is invalid #266

aulemahal opened this issue Oct 25, 2022 · 2 comments · Fixed by #272
Assignees
Labels
bug Something isn't working

Comments

@aulemahal
Copy link
Collaborator

When adding a directory to EXTRA_CONF_DIRS, if there is a typo in its name, the error goes unnoticed.

Feel free to close this if not important enough, but I felt that it would be nice if pavics-compose.sh would fail when encountering an invalid directory name.

@aulemahal aulemahal added the bug Something isn't working label Oct 25, 2022
@github-actions
Copy link

Thanks for submitting an issue.
Please make sure to provide enough details for us to be able to replicate your issue or understand your question.

@tlvu
Copy link
Collaborator

tlvu commented Oct 26, 2022

We do not validate those dirs because all the files (docker-compose-extra.yml, default.env) under those dirs are optional, but probably we need to validate the dir itself, without validating the files under.

@tlvu tlvu closed this as completed in #272 Dec 23, 2022
tlvu added a commit that referenced this issue Dec 23, 2022
…ot take effect and warn when a dir in `EXTRA_CONF_DIRS` does not exist (#272)

## Fixes:

- Overriding `DATA_PERSIST_ROOT` in `env.local` do not take effect for
`JUPYTERHUB_USER_DATA_DIR`, `MAGPIE_PERSIST_DIR`, and
`GEOSERVER_DATA_DIR`.

These 3 vars will have to be delayed evaluated for override in
`env.local` to
  take effect.

  For a variable to be delayed evaluated, it has to be defined using
single-quote and be added to the list of `DELAYED_EVAL` in
`default.env`.

  If those steps are forgotten in `env.local`, it will still work since
`env.local` is the last file to be read. However those steps should not
be
  forgotten in any `default.env` for all components.

So the impact or burden is on the developpers to write their
`default.env`
  file properly, not on the users that only modify the `env.local` file.

All `default.env` files header have been updated with notice about this
new
  delayed evaluation feature.

  Fixes #270

## Changes:

- Warn when a dir in `EXTRA_CONF_DIRS` does not exist.

Most likely a typo in a new dir. Just warn and not exit directly to
avoid
leaving the entire platform down during an unattended autodeploy since
no
  one is around to take immediate action.

  Fixes #266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants