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

aiidateam / aiida_core / 6078
73%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 10 May 2019 09:55AM UTC
Jobs 4
Files 387
Run time 9min
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
6078

Pull #2820

travis-ci

web-flow
Automate export file migration for `verdi import`

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 CLI | Result script |
| ------------- | ---------------------- | ------------- | ---------------- |
| `True`* | `False`* | Query user, migrate | Migrate |
| `True`* | `True` | No query, migrate | Migrate |
| `False` | `False`* | No query, no migrate | No migrate |
| `False` | `True` | No query, no migrate | No migrate |

*Default.

Separate code into two utility functions that help to import and migrate.
Pull Request #2820: Automate export file migration for `verdi import`

61 of 61 new or added lines in 1 file covered. (100.0%)

23828 of 32779 relevant lines covered (72.69%)

2.71 hits per line

Jobs
ID Job ID Ran Files Coverage
5 6078.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 10 May 2019 09:55AM UTC 0
66.48
Travis Job 6078.5
6 6078.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 10 May 2019 10:02AM UTC 0
66.39
Travis Job 6078.6
7 6078.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 10 May 2019 10:00AM UTC 0
69.17
Travis Job 6078.7
8 6078.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 10 May 2019 10:03AM UTC 0
69.11
Travis Job 6078.8
Source Files on build 6078
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6078
  • Pull Request #2820
  • PR Base - develop (#6077)
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