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
importcontent command should allow failure on import errors #9258
Comments
This is deliberate, as much of the download is taking place in a places with unreliable connectivity - and causing the entire import to fail because of a few files is undesirable. A fix that would encompass the use case you are describing would be to add a |
Sorry, I should have phrased that differently. I did find the old commits that made it that way. I'll make a PR with a flag. |
Normally importcontent carries on when it can't import a file and prints a warning on the number of skipped files. That makes it unreliable when trying to ensure a fully provisioned device. Add the --error-on-fail option to make import errors fatal. Fixes: learningequality#9258
Normally importcontent carries on when it can't import a file and prints a warning on the number of skipped files. That makes it unreliable when trying to ensure a fully provisioned device. Add the --error-on-fail option to make import errors fatal. Fixes: learningequality#9258
Normally importcontent carries on when it can't import a file and prints a warning on the number of skipped files. That makes it unreliable when trying to ensure a fully provisioned device. Add the --fail-on-error option to make import errors fatal. Fixes: learningequality#9258
Fixed in #9259 |
Normally importcontent carries on when it can't import a file and prints a warning on the number of skipped files. That makes it unreliable when trying to ensure a fully provisioned device. Add the --fail-on-error option to make import errors fatal. Fixes: learningequality#9258
Observed behavior
When running the
importcontent
management command, it succeeds with a warning when files failed to be imported.Errors and logs
Expected behavior
importcontent
fails when it can't import all files.User-facing consequences
If you're trying to provision a fully populated device, then you'll have to dig through the logs to find out if it really succeeded or not.
Steps to reproduce
The last step would print
0
while I'd expect it to have some non-0
failure code.Context
This is the develop branch as of 6f7f0b8 on Linux (EndlessOS). Where this really affects us is in our image builder. There we're installing Kolibri via the
org.learningequality.Kolibri
flatpak app in flathub. Currently this uses kolibri-installer-gnome 2.0, which in turn includes Kolibri 0.14.7 (AFAICT).We want to pre-populate our OS images with Kolibri content. If the content isn't reliably downloaded, then we might ship images that are missing channel objects.
The text was updated successfully, but these errors were encountered: