• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aiidateam / aiida_core / 6079
74%

Build:
DEFAULT BRANCH: develop
Ran 10 May 2019 12:37PM UTC
Jobs 4
Files 387
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6079

push

travis-ci

ltalirz
Automate export file migration for `verdi import` (#2820)

Fixes #2739.

Invoke `verdi export migrate` in `verdi import`
if it turns out the export file archive cannot be imported
due to an IncompatibleArchiveVersionError.

The default is to automatically migrate it (via a temporary file).

Introduce the `--non-interactive` flag for `verdi import`.

Add tests for new functionality.

Make sure `--non-interactive` does not print confirm messages.
Make sure old export files are automatically migrated, both local files and from URLs.

Introduce the `--migration`/`--no-migration` choice to force migration, if needed
or avoid automatic migration.
This makes sure that an error code != 0 is still present,
when automatic migration is not performed on old export files.

Following behaviour is expected and implemented:

| `migration` | `non_interactive` | Result |
| ------------- | ---------------------- | ------------- |
| `True`* | `False`* | Query user, migrate|
| `True` | `True` | No query, migrate|
| `False` | `False` | No query, no migrate|
| `False` | `True` | No query, no migrate|

*Default.

Separate code into two utility functions that help to import and migrate.

23818 of 32779 relevant lines covered (72.66%)

2.71 hits per line

Jobs
ID Job ID Ran Files Coverage
5 6079.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 10 May 2019 12:37PM UTC 0
66.45
Travis Job 6079.5
6 6079.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 10 May 2019 12:44PM UTC 0
66.39
Travis Job 6079.6
7 6079.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 10 May 2019 12:43PM UTC 0
69.16
Travis Job 6079.7
8 6079.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 10 May 2019 12:44PM UTC 0
69.1
Travis Job 6079.8
Source Files on build 6079
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6079
  • 2370f744 on github
  • Prev Build on develop (#6077)
  • Next Build on develop (#6082)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc