Skip to content

Conversation

Kami and others added 29 commits March 13, 2019 17:01
to only be dispatched on completed states, but not on custom states if
action_sensor.emit_when config option was configured.

Issue was inadverently introduced in
#4536,

Issue reported by Hiroyasu OHYAMA (@userlocalhost).
provided using "?st2-api-key" query parameter.
MASKED_ATTRIBUTES_BLACKLIST constant and log.mask_secrets_blacklist
config option.
This way we avoid outliers when method returns early aka immediately.
Root cause:
When a action calls other action which belongs to the different pack, during `render_live_params`, only parent pack configuration is retrieved.

Fixes:
Passes action reference to `render_live_params`, if action parent pack is different with child action pack, the configuration for child pack is retired and rendered.
Googed Stackstorm documentation and did not see anywhere mentioned that this is supported.
Fix typo for `cancellation`
Added new unit test case for the fix.
Modified two dummy packs that unit test can run.
Fix code review comments.
Updated CHANGELOG.txt
Remove action and workflow from dummy_pack_20 to orquesta_tests
Rename action_ref to spec_action
Rename import names for test_workflow.py and reflect changes for dummy_pack_20
In order to run integration test, test used packs has to be installed first.
Install `orquesta_tests` and `dummy_pack_7` packs in `` DB
Create `virtualenv` for packs
Add new testcase in test_wiring.py
…/launchdev.sh

Remove integration task code made yesterday.

Add code to setup integration test for render:
During integration setup on cicd, `launchdev.sh start -x` will be called to install `examples` pack in order to run integration test. Add other packs are installed too, includes `core`, `default` and `pack`.

Add new orquesta workflow action in examples. Still don't know which packs can be used for render action other than dummy_pack_7.
Copy dummy_pack_7 to tests pack
Move setting up pack `virtualenv` to the end to make sure st2client and st2api are up running
1. Move tests pack action to https://github.com/StackStorm/st2tests/tree/master/packs/tests
   Add a default value to config.schema.yaml and renamed action `render` to `render_config_context`
   Please see StackStorm/st2tests#150
2. Made change in CHANGELOG.rst
3. Rename copy_examples to copy_test_packs in `tools/launchdev.sh`
4. Handle gracefully when authentication is on for setting up virtualenv.
5. Renamed action `render` to `render_config_context` for unit test dummy_pack_7
Clone st2tests repo to /tmp directory
Copy st2tests/tests pack to /opt/stackstorm/packs
Remove /tmp/st2tests directory
If `st2 run packs.setup_virtualenv packs=tests` returns an error, then warn users
Change the message to Unable to setup virtualenv for the \"tests\" pack. Please setup virtualenv for the \"tests\" pack before running integration tests.
correctly use default config file from /etc/st2/st2.conf if one is not
explicitly provided using --config-file command line argument.
Underneath, statsd uses UDP protocol which is "fire and forget" which
means all the errors are non-fatal and don't propagate back to the
application. There is an edge case with how statsd library establishes
connection though. If hostname is used instead of an IP address and this
hostname can't be resolved, this DNS resolution error will propagate all
the way up and break the application.

This behavior is of course not desired (all metric related operation
errors should be non-fatal) and this PR fixes that. We simply ignore
those errors and log them.
propagate all the way up since those indicate programmer / developer
error and should be caught during development.
@Kami Kami added this to the 2.10.4 milestone Mar 14, 2019
@Kami Kami changed the title [DONT MERGE] Changes for v2.10.4 release Changes for v2.10.4 release Mar 14, 2019
@Kami Kami merged commit c1ace84 into v2.10 Mar 15, 2019
@Kami Kami deleted the v2.10.4_changes branch March 15, 2019 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants