Changed the filename structure of disposable images
ClosedPublic

Authored by jskladan on Dec 16 2015, 1:06 PM.

Details

Summary

Given the way image building is likely to work, it is far simpler to
just use HHMM as a sequence number, instead of the XX in the current
implementation.

Also added ARCH to the filename.

The current name is in the format:
yymmdd_hhmm_release-flavor-arch

Added testing/.cache to .gitignore

Test Plan

unittests work

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jskladan retitled this revision from to Changed the filename structure of disposable images.Dec 16 2015, 1:06 PM
jskladan updated this object.
jskladan edited the test plan for this revision. (Show Details)
jskladan added reviewers: tflink, kparal, lbrabec.
lbrabec accepted this revision.Dec 16 2015, 1:13 PM
This revision is now accepted and ready to land.Dec 16 2015, 1:13 PM
yymmdd_hhmm_release-flavor-arch

According to the code, the format is yymmdd_hhmm-release-flavor-arch (dash/underscore swapped). If that's intended, it's fine.

libtaskotron/ext/disposable/vm.py
202–203

Without the f it looks like it requires a number, not an arbitrary string. I would add it back to make this clear, that does not influence how we use that in our deployment. (It would be also nice to add value types to docstrings, but in this case, it would still be a bit confusing).

testing/test_vm.py
15–19

What if we did

import testcloud.exceptions as tce

and then used tce.TestcloudImageError in code? Would that eliminate the errors?

According to the code, the format is yymmdd_hhmm-release-flavor-arch (dash/underscore swapped). If that's intended, it's fine.

Good catch.
I'll also probably add the 'fedora' string there somewhere, although I'm not sure we'll be building images of something-else-than-fedora any time soon, but we can definitely make it future-proof-y.

jskladan updated this revision to Diff 1864.Jan 18 2016, 4:06 PM

Some amendments

Closed by commit rLTRNc93b1d3c6296: Changed the filename structure of disposable images (authored by Josef Skladanka <jskladan@redhat.com>). · Explain WhyJan 18 2016, 4:08 PM
This revision was automatically updated to reflect the committed changes.