As of the 1.0.0 release tempest-lib as a separate
repository and project is deprecated. We moved all the
code to tempest.lib temepst version 10.
Hoping everyone is moved to tempest.lib now, We can retire
the tempest-lib. We discussed the same in PTG and agreed to
proceed on retirement
- https://etherpad.opendev.org/p/qa-zed-ptg
Needed-By: https://review.opendev.org/c/openstack/governance/+/836704
Change-Id: I37ceb96e084f569ea59e4849ca8770742ce17846
git log title must be shorter than 50 chars, and git log body text
should be shorter than 72 chars.
This patch fixes this issue on generated comment.
Change-Id: I2b35b627e32e5891fa0db0aa8c9fce664adb5e50
Currently, the first line of the commit message generated
by migrate_from_tempest.sh is more than 72 characters, which
is the limiting value. This patch enforces that git-message-rule.
Change-Id: I6108c9a1602b8daa04a94f97d219ff4fb4a43371
migrate_from_tempest.sh creates a commit for migrating code from
Tempest, but the commit message becomes long and redundant because
of containing file paths. Then now developers need to remove them
by hands.
This patch makes the script remove file paths.
In addition, this patch makes the script add the blueprint msg
"Partially implements blueprint migrate-service-clients-to-tempest-lib"
for managing these tasks on gerrit.
Change-Id: If8fc115dea67f779a86d33d26ac56cc8540a8c0f
`tools/migrate_from_tempest.sh` doesn't work at BSD, because `sed`
command requires parameter for `-i` option.
This patch fixes it.
Change-Id: I262638dbd3afd0c089bc6a2491104d5207006750
Recently the migrate_from_tempest.sh script was updated to switch from
grabbing a list of all the sha1s for that file and dumping that into
the commit message to a much cleaner list of Change-Ids for the
most recent commits that touched a file. There was one little
oversight that slipped through that change where we were still
referring to sha1s at the bottom of the commit msg. This commit fixes
that message to now say Change-Ids.
Change-Id: Idd4c7bf469a44ff1758bb2c7d8c61459fc133a2b
We are migrating service clients to tempeset-lib, but we needed to
update many places by hands even if using the migration script.
There is a pattern of update, so this patch adds a new option
--service-client for updating them automatically.
We can use it like:
$ tools/migrate_from_tempest.sh -u ../tempest -s \
tempest/services/compute/json/availability_zone_client.py \
tempest/tests/services/compute/test_availability_zone_client.py \
tempest/api_schema/response/compute/v2_1/availability_zone.py
Partially implements blueprint migrate-service-clients-to-tempest-lib
Change-Id: Iab832501725cedd5c5fcc65d760ce8a9794223ac
The previous script wrote a lot of change_id on the migration commit
message, and that was unreadable. Developers needed to change the
message by hands for showing the latest change_id for each migrated
module. That was boring.
This patch makes the script write the latest change_id like
* run_tempest.sh: I55311cff4dea1f6c5adaa2a6d51eeee2f6cc71ea
* run_tests.sh: I55311cff4dea1f6c5adaa2a6d51eeee2f6cc71ea
Change-Id: I7ce8e7b911c97ad7757a886f781341cce74c5307
We are migrating service client code from Tempest, and we need to
migrate files under different pathes in a single patch.
However, current migrating script handles them as the same path and
we could not use the script for the migration.
This patch changes the script for keeping original pathes of source
files.
Change-Id: Id42692aea4b7e132f49dbfe9a0a6551fa2a56770
The subunit-trace module has been moved into the os-testr package.
This decouples the nominally independent module from the rest of
tempest-lib which should enable wider usage. However, since some
packages are depending on tempest-lib to use os-testr at this point
we add it to the requirements.txt file instead of test-requirements
so that those consumers won't be broken when this is release.
Additionally, os-testr includes a testr wrapper, ostestr, which
replaces the pretty_tox.sh script and is used to run unit tests.
Depends-On: Ia399c65e62c2306c9a2d082c6219fcb030b5946b
Change-Id: Iafbfa92a91b945b75aaa1f684594c903c8f6f700
The current implementation uses an hard-coded git:// URL to clone
tempest from. Supporting specifying an alternate URL via command
line, as git:// does not work from behind some corporate firewalls.
The default URL - if none is specified - will still be the one
currently hardcoded in the script.
Change-Id: Ia927f597c719ad0c3e8ae4b59f888e6696d8fead
The '--follow' option from git log was used to follow the file even if
it was renamed for instance, although the option can't deal with
multiple files which was blocking us to migrate multiple files at once.
This patches fixes the issue by looking one file at time and
concatenating their ids in the end.
Change-Id: I39a2e94e1c27a83de2b976f263928c5199d44b22
Closes-bug: #1411499
Use git log instead of git filter-branch - which rewrites the history - to get
SHA1 from the commits that touch the files to be migrated from tempest to
tempest_lib.
Change-Id: I321d78390991eb90fbb4a176a12187b78edc9f31
Closes-bug: #1386782
This commit adds a pretty_tox.sh wrapper script for the tempest-lib
unit tests to use subunit-trace when running the tests. This should
make the output a bit more clear and help with future debugging.
Change-Id: I48d670353bb85f7f87a05041bed60ad131555057
This commit changes the migrate_from_tempest tool to not mess around
with the commit history. The previous approach in the tool isn't
actually something that we can do. The commit history we had when the
repository was created is the canonical past for tempest-lib and we
can't migrate over any other tempest commits directly, this was a
mistake on my part.
Moving forward we'll just have to refer to the commit sha1s from the
tempest repo in the commit message. This script will now just copy the
specified files from tempest and generate a commit message with the
complete list of sha1s from the tempest history.
Change-Id: I7e2b2a0543d113961598b33d23985a1082fbba9a
This commit adds a new tool to migrate files with history into
tempest-lib. When migrating functionality into tempest we need to
use this instead of copying and pasting files so that we preserve the
commit history from tempest.