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

Pytest fails at Setup environment for AiiDA #853

Closed
JPBergsma opened this issue Jun 17, 2021 · 1 comment · Fixed by #854
Closed

Pytest fails at Setup environment for AiiDA #853

JPBergsma opened this issue Jun 17, 2021 · 1 comment · Fixed by #854
Assignees
Labels
priority/high Issue or PR with a consensus of high priority

Comments

@JPBergsma
Copy link
Contributor

JPBergsma commented Jun 17, 2021

Since this morning automatic code checks fail in pytest, while setting up the environment for AiiDA.
Below the output I receive.

Run .github/aiida/setup_aiida.sh

# Replace the placeholders in configuration files with actual values

CONFIG="${GITHUB_WORKSPACE}/.github/aiida"
sed -i "s|PLACEHOLDER_BACKEND|${AIIDA_TEST_BACKEND}|" "${CONFIG}/profile.yaml"
sed -i "s|PLACEHOLDER_PROFILE|test_${AIIDA_TEST_BACKEND}|" "${CONFIG}/profile.yaml"
sed -i "s|PLACEHOLDER_DATABASE_NAME|test_${AIIDA_TEST_BACKEND}|" "${CONFIG}/profile.yaml"
sed -i "s|PLACEHOLDER_REPOSITORY|/tmp/test_repository_test_${AIIDA_TEST_BACKEND}/|" "${CONFIG}/profile.yaml"

verdi setup --config "${CONFIG}/profile.yaml"
Success: created new profile `test_django`.
Info: migrating the database.
Critical: database migration failed, probably because connection details are incorrect:
database connection isn't set to UTC
Operations to perform:
  Apply all migrations: auth, contenttypes, db
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying db.0001_initial... OK
  Applying db.0002_db_state_change...
Error: Process completed with exit code 1.
@JPBergsma JPBergsma added the priority/high Issue or PR with a consensus of high priority label Jun 17, 2021
@CasperWA
Copy link
Member

For reference, the issue is outlined here aiidateam/aiida-core#4989.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/high Issue or PR with a consensus of high priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants