Commit Graph

20 Commits

Author SHA1 Message Date
Ghanshyam Mann fc1791f858 Retire tempest-lib in favor of tempest.lib
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
2022-04-05 23:41:14 +00:00
OTSUKA, Yuanying 6c63f35615 Make git log messsage to shorter
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
2015-11-25 17:32:35 +09:00
Reedip Banerjee 26d4d38eb2 Fix the length of auto-generated commit
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
2015-10-14 10:03:53 +05:30
Reedip Banerjee 2f0a64ff6e Added a full stop to auto-generated commit message
migrate_from_tempest.sh did not have a full stop to end the commit
message. This patch adds it.

Change-Id: I8d8a1ad2487ca69cece4eda43afc710c46c60729
2015-10-02 10:30:32 +05:30
Jenkins 24200a38c7 Merge "Remove file path from migration commit msg" 2015-09-30 02:42:11 +00:00
Jenkins 106faf879a Merge "Make the script available on Mac (BSD)" 2015-09-29 20:25:25 +00:00
Ken'ichi Ohmichi 59408c9253 Remove file path from migration commit msg
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
2015-09-28 06:09:55 +00:00
OTSUKA, Yuanying d4a2d5615d Make the script available on Mac (BSD)
`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
2015-09-25 14:43:12 +09:00
Matthew Treinish 9c7eddffd8
Change sha1s to change ids in commit msg from migration tool
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
2015-09-24 11:10:34 -04:00
Ken'ichi Ohmichi 307df12b98 Add --service-client option to migration script
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
2015-09-17 05:55:35 +09:00
Ken'ichi Ohmichi 2ce9a6f398 Write the latest change_id on migration commit
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
2015-09-16 01:13:09 +09:00
Ken'ichi Ohmichi 0c1374c143 Keep original pathes of source files
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
2015-09-14 17:46:34 +00:00
Matthew Treinish ab309cf8a7 Switch to using ostestr for subunit-trace
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
2015-05-28 18:51:53 +00:00
andreaf ed27340650 Support specifying the tempest git URL
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
2015-03-18 21:45:19 +00:00
Mauro S. M. Rodrigues c473cda72f Fix migrate_from_tempest script to work with multiple files
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
2015-01-16 20:32:58 +00:00
Jenkins 8dd9da1f42 Merge "Add pretty_tox.sh wrapper script to use subunit-trace" 2014-12-11 12:22:02 +00:00
Mauro S. M. Rodrigues c9c9ff674b Fix migration script to use original SHA1 from tempest's commits
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
2014-12-05 14:31:58 -02:00
Matthew Treinish dd266f725d Add pretty_tox.sh wrapper script to use subunit-trace
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
2014-12-04 20:59:27 +00:00
Matthew Treinish 5f62c16d43 Don't edit commit history with migrate from tempest tool
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
2014-10-07 11:58:44 -04:00
Matthew Treinish 5372a58a79 Add tool to migrate files from tempest into lib
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.
2014-08-28 18:01:09 -04:00