StackStorm Integration — StackStorm 3.9.0 documentation
Testing Changes
To test Orquesta changes on StackStorm, update the Orquesta version in appropriate requirement files, rebuild the StackStorm virtualenv, and run Orquesta related tests.
Push feature/change branch to the Orquesta repo.
Clone the StackStorm repo and checkout appropriate branch.
Run the following command to update the Orquesta in the StackStorm requirement files.
# Replace the value of my-dev-branch with the name of the feature branch. $ export ORQUESTA_BRANCH="my-dev-branch" $ sed -i -e "s/\(orquesta.git@\).*\(#egg=orquesta\)/\1${ORQUESTA_BRANCH}\2/" ./st2common/in-requirements.txt $ sed -i -e "s/\(orquesta.git@\).*\(#egg=orquesta\)/\1${ORQUESTA_BRANCH}\2/" ./contrib/runners/orquesta_runner/in-requirements.txt
Rebuild the StackStorm virtualenv. Take note that auto-generation tool will update related requirements.txt files.
# Remove and rebuild the StackStorm virtualenv. $ make distclean $ make requirements
Run the Orquesta runner unit tests. The unit tests are located under the directory
./contrib/runners/orquesta_runner/tests/unit.
# Run unit tests for the Orquesta runner. $ . virtualenv/bin/activate $ nosetests --rednose --immediate --with-parallel -s -v contrib/runners/orquesta_runner/tests/unit
Run the Orquesta integration tests. The integration tests are located under the directory
./st2tests/integration/orquesta.
# Launch StackStorm screen sessions and run the Orquesta integration tests. $ ./tools/launchdev.sh start -x $ make orquesta-itests
Commiting Changes
Once the Orquesta feature branch is completed and merged into Orquesta master branch, update the Orquesta version in appropriate StackStorm requirement files.
Merge feature/change PR to the Orquesta master branch.
Clone the StackStorm repo and create new feature branch.
Run the following command to update the Orquesta in the StackStorm requirement files.
# Replace the value of new-commit with the latest commit in Orquesta containing the change(s). $ export ORQUESTA_COMMIT="new-commit" $ sed -i -e "s/\(orquesta.git@\).*\(#egg=orquesta\)/\1${ORQUESTA_COMMIT}\2/" ./st2common/in-requirements.txt $ sed -i -e "s/\(orquesta.git@\).*\(#egg=orquesta\)/\1${ORQUESTA_COMMIT}\2/" ./contrib/runners/orquesta_runner/in-requirements.txt
Rebuild the StackStorm virtualenv. Take note that auto-generation tool will update related requirements.txt files.
# Remove and rebuild the StackStorm virtualenv. $ make distclean $ make requirements
Run the Orquesta runner unit tests. The unit tests are located under the directory
./contrib/runners/orquesta_runner/tests/unit.
# Run unit tests for the Orquesta runner. $ . virtualenv/bin/activate $ nosetests --rednose --immediate --with-parallel -s -v contrib/runners/orquesta_runner/tests/unit
Run the Orquesta integration tests. The integration tests are located under the directory
./st2tests/integration/orquesta.
# Launch StackStorm screen sessions and run the Orquesta integration tests. $ ./tools/launchdev.sh start -x $ make orquesta-itests
Create a PR in the StackStorm repo for the requirement changes.