Skip to content

Commit 16c0662

Browse files
committed
pick any cert
1 parent c6ec298 commit 16c0662

9 files changed

Lines changed: 2511 additions & 3 deletions

File tree

.agents

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/ubuntu/clineagents/agents/

.aider.chat.history.md

Lines changed: 2296 additions & 0 deletions
Large diffs are not rendered by default.

.aider.conf.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/ubuntu/clineagents/aider/.aider.conf.yml

.aider.input.history

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
2+
# 2026-05-27 07:27:35.391387
3+
+y
4+
5+
# 2026-05-27 07:28:03.181859
6+
+D
7+
8+
# 2026-05-27 07:29:26.431548
9+
+/help
10+
11+
# 2026-05-27 07:43:22.302809
12+
+i am working on st2actions/st2actions/cmd/workflow_engine.py and i am attempting to get the engine to pause workflows when it dies. unfortunately my code in pause_worfkows in st2actions/st2actions/workflows/workflows.py is never called. i see stack traces for exceptions thrown 2026-05-27 11:33:44,454 140493767094016 ERROR workflows [-] Failed to connect to message broker after 10 attempts. Pausing running workflows before giving up. Error: [Errno 111] ECONNREFUSED
13+
+2026-05-27 11:33:44,454 140493767094016 ERROR workflows [-] RabbitMQ connection error detected. Attempting to pause running workflows before potential engine shutdown.
14+
+2026-05-27 11:33:44,459 140493767094016 INFO workflows [-] Other workflow engines detected (2 members). Skipping workflow pause on this instance.
15+
+2026-05-27 11:33:44,461 140493973623360 ERROR traceback [-] Traceback (most recent call last):
16+
17+
# 2026-05-27 07:43:27.157841
18+
+y
19+
20+
# 2026-05-27 07:44:40.798738
21+
+D
22+
23+
# 2026-05-27 07:45:17.781400
24+
+ explain the change first
25+
26+
# 2026-05-27 13:03:38.412880
27+
+/plan
28+
29+
# 2026-05-27 13:03:46.664378
30+
+/help
31+
32+
# 2026-05-27 13:04:08.793257
33+
+/ask
34+
35+
# 2026-05-27 13:07:18.283022
36+
+ok the st2workflow engine using st2actions/st2actions/workflows/workflows.py. and st2actions/st2actions/cmd/workflow_engine.py. are not properly pausing workflows. all i see in logs/st2workflowengine.log is '2026-05-27 13:05:17,989 131092297217024 INFO workflow_engine [-] Pausing running workflows due to connection failure...' i don't see where it actually pauses them in the log file.
37+
38+
# 2026-05-27 13:07:52.082551
39+
+what would be the fix.
40+
41+
# 2026-05-27 13:08:36.464442
42+
+yes
43+
44+
# 2026-05-27 13:18:47.750166
45+
+now it never kills the st2workflow engine. i see action_db [-] Updating ActionExection: "6a1725c5bf3aec4c7218bff5" with status="paused" (l. bu then a bunch of failed to restablish errors.
46+
47+
# 2026-05-27 13:25:16.213779
48+
+do it
49+
50+
# 2026-05-27 13:26:07.827844
51+
+/help
52+
53+
# 2026-05-27 13:26:33.834047
54+
+/code
55+
56+
# 2026-05-27 13:26:50.196901
57+
+did you make the changes?
58+
59+
# 2026-05-27 13:27:35.622846
60+
+/help
61+
62+
# 2026-05-27 13:32:53.221799
63+
+now i see ``` 2026-05-27 13:32:14,690 129980544239488 ERROR traceback [-]
64+
+2026-05-27 13:32:14,691 129980545616512 INFO workflow_engine [-] Pausing running workflows due to connection failure...
65+
+2026-05-27 13:32:14,691 129980545616512 DEBUG coordination [-] Using cached coordinator instance: <tooz.drivers.redis.RedisDriver object at 0x76376f2bf810>
66+
+2026-05-27 13:32:14,691 129980545616512 WARNING workflows [-] Coordination service not enabled. Cannot safely determine if other engines exist. Pausing all running workflows as a safety measure.
67+
+2026-05-27 13:32:14,704 129980545616512 DEBUG echo_driver [-] [metrics] counter.decr(action.executions.running, 1)
68+
+2026-05-27 13:32:14,705 129980545616512 DEBUG echo_driver [-] [metrics] counter.incr(action.executions.paused, 1)
69+
+2026-05-27 13:32:14,705 129980545616512 DEBUG action_db [-] Updating ActionExection: "6a1723b0eb3a771d3b2f88c2" with status="paused" (liveaction_db={'action': 'testpack.test', 'action_is_workflow': True, 'callback': {}, 'context': {'user': 'stanley', 'pack': 'testpack', 'workflow_execution': '6a1723b0fca55c783f641286', 'paused_by': 'workflow_engine_start_stop_seq', 'resumed_by': 'workflow_engine_start_stop_seq'}, 'delay': None, 'end_timestamp': None, 'id': '6a1723b0eb3a771d3b2f88c2', 'notify': None, 'parameters': {}, 'result': {'output': None}, 'runner_info': {'hostname': 'US05CG22729VG', 'pid': 611639}, 'start_timestamp': '2026-05-27 17:02:40.558956+00:00', 'status': 'running', 'task_execution': None, 'workflow_execution': None})
70+
+2026-05-27 13:32:14,722 129980545616512 DEBUG channel [-] using channel_id: 1
71+
+2026-05-27 13:32:14,722 129980545616512 DEBUG connection_retry_wrapper [-] Received RabbitMQ server error, sleeping for 10 seconds before retrying: [Errno 104] Connection reset by peer
72+
+2026-05-27 13:32:24,723 129980545616512 DEBUG channel [-] Closed channel #1
73+
+2026-05-27 13:32:29,725 129980545616512 DEBUG connection_retry_wrapper [-] Failed to re-establish connection to RabbitMQ server, retrying in 2.0 seconds: timed out```
74+
75+
# 2026-05-27 13:48:16.878163
76+
+will this ensure that the exception is raised. and it will not get stuck in a continuous retry loop
77+
78+
# 2026-05-27 13:50:49.611867
79+
+/undo
80+
81+
# 2026-05-27 13:50:57.279284
82+
+/ask
83+
84+
# 2026-05-27 13:52:08.282148
85+
+where was the rabbitm mq dep in the previous code for refactor: update workflows directly in database to avoid RabbitMQ dependency on shutdown
86+
87+
# 2026-05-27 13:53:25.921178
88+
+where does update_liveaction_status use rabbitmq?
89+
90+
# 2026-05-27 13:53:50.652278
91+
+n
92+
93+
# 2026-05-27 13:54:00.604683
94+
+i was passing publish=false
95+
96+
# 2026-05-27 13:54:25.704413
97+
+/undo
98+
99+
# 2026-05-28 08:21:53.690188
100+
+/exit
101+
102+
# 2026-05-28 08:42:39.528114
103+
+D
104+
105+
# 2026-05-29 09:18:05.127816
106+
+d
107+
108+
# 2026-05-29 10:16:50.574249
109+
+/ask
110+
111+
# 2026-05-29 13:32:06.334917
112+
+/exit

.aider.tags.cache.v4/cache.db

3.02 MB
Binary file not shown.

.aiderignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
virtualenv/

.clinerules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/ubuntu/clineagents/clinerules/

skills-lock.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"version": 1,
3+
"skills": {
4+
"agentmemory-agents": {
5+
"source": "rohitg00/agentmemory",
6+
"sourceType": "github",
7+
"skillPath": "plugin/skills/agentmemory-agents/SKILL.md",
8+
"computedHash": "c9969fcd8c7255ef684568697c6baf890b07e407f6575f7bbcd7c97724f33160"
9+
},
10+
"agentmemory-architecture": {
11+
"source": "rohitg00/agentmemory",
12+
"sourceType": "github",
13+
"skillPath": "plugin/skills/agentmemory-architecture/SKILL.md",
14+
"computedHash": "573b1b8de203f039791ac2716459fc63bbd35b90b1634fd99cd08d2c13fa6368"
15+
},
16+
"agentmemory-config": {
17+
"source": "rohitg00/agentmemory",
18+
"sourceType": "github",
19+
"skillPath": "plugin/skills/agentmemory-config/SKILL.md",
20+
"computedHash": "7ce6efc42dcdc8a12e3de7683ea2bc4ab3b59ac25b6e850adf5eee0edd940d01"
21+
},
22+
"agentmemory-hooks": {
23+
"source": "rohitg00/agentmemory",
24+
"sourceType": "github",
25+
"skillPath": "plugin/skills/agentmemory-hooks/SKILL.md",
26+
"computedHash": "b421751543c0484da5559fdf74cab2c758f6d94ecba022657f19be0f93fa2efb"
27+
},
28+
"agentmemory-mcp-tools": {
29+
"source": "rohitg00/agentmemory",
30+
"sourceType": "github",
31+
"skillPath": "plugin/skills/agentmemory-mcp-tools/SKILL.md",
32+
"computedHash": "e0e3c931226bdb3a7a314c89c635434b7e57bc3bc0a3b9cbc240a6413db134c7"
33+
},
34+
"agentmemory-rest-api": {
35+
"source": "rohitg00/agentmemory",
36+
"sourceType": "github",
37+
"skillPath": "plugin/skills/agentmemory-rest-api/SKILL.md",
38+
"computedHash": "d7b8e6430f06e3adc7dc404fcb1044b454cbf1e9b43477c734d038e87f6aad4b"
39+
},
40+
"commit-context": {
41+
"source": "rohitg00/agentmemory",
42+
"sourceType": "github",
43+
"skillPath": "plugin/skills/commit-context/SKILL.md",
44+
"computedHash": "3de145b977f4c14b411ba69623fb6da046895954c309488b271ac7b5a37b1fa9"
45+
},
46+
"commit-history": {
47+
"source": "rohitg00/agentmemory",
48+
"sourceType": "github",
49+
"skillPath": "plugin/skills/commit-history/SKILL.md",
50+
"computedHash": "e52626f9dc9b0517e1f9b19a8b02de9edfb3ef44eae363b43acbbe23e131780e"
51+
},
52+
"forget": {
53+
"source": "rohitg00/agentmemory",
54+
"sourceType": "github",
55+
"skillPath": "plugin/skills/forget/SKILL.md",
56+
"computedHash": "0aecb46743b0b06de5c4d70af1cef72dc1ca22fc3c9c579b418855b6d6c2d485"
57+
},
58+
"handoff": {
59+
"source": "rohitg00/agentmemory",
60+
"sourceType": "github",
61+
"skillPath": "plugin/skills/handoff/SKILL.md",
62+
"computedHash": "931d304bdff93a99ccb25ea1166d8efa1550ca5428fb209dd44fdd0e652e5b63"
63+
},
64+
"recall": {
65+
"source": "rohitg00/agentmemory",
66+
"sourceType": "github",
67+
"skillPath": "plugin/skills/recall/SKILL.md",
68+
"computedHash": "51f8b97fa0d49f069ee34c91763d09643189fa60b1f5cb91ad950d9698916997"
69+
},
70+
"recap": {
71+
"source": "rohitg00/agentmemory",
72+
"sourceType": "github",
73+
"skillPath": "plugin/skills/recap/SKILL.md",
74+
"computedHash": "172c06de68fef1d41362293467f7bafb4608563af3774fac0f12f85eef8b4a65"
75+
},
76+
"remember": {
77+
"source": "rohitg00/agentmemory",
78+
"sourceType": "github",
79+
"skillPath": "plugin/skills/remember/SKILL.md",
80+
"computedHash": "80b9016df4b9e8ff2632f8e1ddc5172af1696564cdcb3ed63b36e8d8bff6ef70"
81+
},
82+
"session-history": {
83+
"source": "rohitg00/agentmemory",
84+
"sourceType": "github",
85+
"skillPath": "plugin/skills/session-history/SKILL.md",
86+
"computedHash": "ece45f2f4db16fa213f2f46ddfdba271a4281f9ba0d0bcec69ac5e7d0075c0a7"
87+
},
88+
"write-agentmemory-skill": {
89+
"source": "rohitg00/agentmemory",
90+
"sourceType": "github",
91+
"skillPath": "plugin/skills/write-agentmemory-skill/SKILL.md",
92+
"computedHash": "4d1423b3d289ad2cb136c0b760be204f18268b67190983d3874b02e90f4c4298"
93+
}
94+
}
95+
}

st2common/tests/integration/test_rabbitmq_ssl_listener.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18+
import glob
1819
import os
1920
import ssl
2021
import socket
@@ -122,7 +123,7 @@ def test_ssl_connection_ca_certs_provided(self):
122123

123124
# 2. Validate server cert against other CA bundle (failure)
124125
# CA bundle which was not used to sign the server cert
125-
ca_cert_path = os.path.join("/etc/ssl/certs/SecureTrust_CA.pem")
126+
ca_cert_path = glob.glob("/etc/ssl/certs/*.pem")[0]
126127

127128
cfg.CONF.set_override(
128129
name="ssl_cert_reqs", override="required", group="messaging"
@@ -139,7 +140,7 @@ def test_ssl_connection_ca_certs_provided(self):
139140
self.assertRaisesRegex(ssl.SSLError, expected_msg, connection.connect)
140141

141142
# 3. Validate server cert against other CA bundle (failure)
142-
ca_cert_path = os.path.join("/etc/ssl/certs/SecureTrust_CA.pem")
143+
ca_cert_path = glob.glob("/etc/ssl/certs/*.pem")[0]
143144

144145
cfg.CONF.set_override(
145146
name="ssl_cert_reqs", override="optional", group="messaging"
@@ -157,7 +158,7 @@ def test_ssl_connection_ca_certs_provided(self):
157158

158159
# 4. Validate server cert against other CA bundle (failure)
159160
# We use invalid bundle but cert_reqs is none
160-
ca_cert_path = os.path.join("/etc/ssl/certs/SecureTrust_CA.pem")
161+
ca_cert_path = glob.glob("/etc/ssl/certs/*.pem")[0]
161162

162163
cfg.CONF.set_override(name="ssl_cert_reqs", override="none", group="messaging")
163164
cfg.CONF.set_override(

0 commit comments

Comments
 (0)