Skip to content

Conversation

@t-b
Copy link
Collaborator

@t-b t-b commented Aug 26, 2025

Close #573

@t-b t-b self-assigned this Aug 26, 2025
The on-premise tests using the python 3.9 and 3.11 tests are currently not
working due to permission issues around the CWD when executing docker run.

The reason is that the user id of the user inside the docker image and of
that on the machine running github actions is different.

By now creating a user with uid/gid 1001 we match what is on the host.

But the images are currently only rebuild on demand manually on the
machine. We fix that by building them before the run step.

The run step is also moved to a script for easier local testing and to
avoid code duplication.

And finally the Dockerfile is used with a ARG'ed FROM to avoid
duplication.
@t-b t-b force-pushed the fix-on-premise-tests branch from 3b00b72 to bb957a9 Compare August 26, 2025 18:45
@t-b t-b merged commit 078bda8 into master Aug 26, 2025
4 checks passed
@t-b t-b deleted the fix-on-premise-tests branch August 26, 2025 18:54
t-b added a commit that referenced this pull request Aug 27, 2025
The on-premise tests were fixed in 078bda8 (Merge pull request #581 from
AllenInstitute/fix-on-premise-tests, 2025-08-26) and also passed on
master [1]. Now they are not passing again with an error like:

credentials = dict((k, os.environ.get(env_var, LIMS_DB_CREDENTIAL_DEFAULTS[env_var]))
        for k, env_var in LIMS_DB_CREDENTIAL_MAP.items())
KeyError: 'LIMS_PASSWORD'

The dict LIMS_DB_CREDENTIAL_DEFAULTS does not contain an entry with
"LIMS_PASSWORD" as key which should be okay as we are always having that
in the envrionment. But this seems to be racy as sometimes we try indexing
LIMS_DB_CREDENTIAL_DEFAULTS with "LIMS_PASSWORD" anyway.

Let's fix that by adding an entry do LIMS_DB_CREDENTIAL_DEFAULTS.

[1]: https://github.com/AllenInstitute/ipfx/actions/runs/17247644153
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.

Nightly tests fail

2 participants