Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d3a4bdfac | ||
|
|
f02e4b7147 | ||
|
|
1ff6e1e6ac | ||
|
|
cde8bd3bad | ||
|
|
06e159870e | ||
|
|
241db268a5 | ||
|
|
512af04303 | ||
|
|
7326217643 | ||
|
|
2d91d57e8b | ||
|
|
32fc6fc66b |
@@ -17,7 +17,7 @@ jobs:
|
|||||||
- run: python3 --version
|
- run: python3 --version
|
||||||
- run: node --version
|
- run: node --version
|
||||||
- run: echo "Runner works!"
|
- run: echo "Runner works!"
|
||||||
- run: git clone --depth 1 http://abiba-bot:***REMOVED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
- run: git clone --depth 1 http://abiba-bot:***REDACTED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
||||||
|
|
||||||
- name: Python syntax check
|
- name: Python syntax check
|
||||||
run: |
|
run: |
|
||||||
@@ -46,7 +46,7 @@ print('✅ config.yaml.example valid')
|
|||||||
needs: [validate]
|
needs: [validate]
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🚀 Deploy tag $(echo $GITHUB_REF_NAME)"
|
- run: echo "🚀 Deploy tag $(echo $GITHUB_REF_NAME)"
|
||||||
- run: git clone --depth 1 http://abiba-bot:***REMOVED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
- run: git clone --depth 1 http://abiba-bot:***REDACTED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
||||||
|
|
||||||
- name: Deploy to Tanko (canary)
|
- name: Deploy to Tanko (canary)
|
||||||
run: ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 jerome@192.168.68.122 "cd /root && bash -s" < scripts/deploy.sh --ct=tanko --mode=native "$GITHUB_REF_NAME" 2>&1 || echo "⚠️ Tanko deploy skipped"
|
run: ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 jerome@192.168.68.122 "cd /root && bash -s" < scripts/deploy.sh --ct=tanko --mode=native "$GITHUB_REF_NAME" 2>&1 || echo "⚠️ Tanko deploy skipped"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone --depth 1 http://abiba-bot:***REMOVED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
run: git clone --depth 1 http://abiba-bot:***REDACTED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
||||||
- name: Python syntax
|
- name: Python syntax
|
||||||
run: |
|
run: |
|
||||||
python3 -m py_compile plugins/platforms/zulip/adapter.py 2>/dev/null
|
python3 -m py_compile plugins/platforms/zulip/adapter.py 2>/dev/null
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
environment: canary
|
environment: canary
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone --depth 1 http://abiba-bot:***REMOVED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
run: git clone --depth 1 http://abiba-bot:***REDACTED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
||||||
- name: Deploy to Tanko
|
- name: Deploy to Tanko
|
||||||
env:
|
env:
|
||||||
TAG: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
@@ -66,7 +66,7 @@ jobs:
|
|||||||
environment: production
|
environment: production
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone --depth 1 http://abiba-bot:***REMOVED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
run: git clone --depth 1 http://abiba-bot:***REDACTED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
||||||
- name: Deploy to all Hermes agents
|
- name: Deploy to all Hermes agents
|
||||||
env:
|
env:
|
||||||
TAG: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
environment: agent-zero
|
environment: agent-zero
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone --depth 1 http://abiba-bot:***REMOVED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
run: git clone --depth 1 http://abiba-bot:***REDACTED***@192.168.68.17:3000/SyslogSolution/zulip-platform-plugins.git .
|
||||||
- name: Deploy to kagentz
|
- name: Deploy to kagentz
|
||||||
env:
|
env:
|
||||||
TAG: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# CI Final Test
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# CI Pipeline Status
|
||||||
|
Status: Active
|
||||||
@@ -77,7 +77,7 @@ SELFTEST_TIMEOUT = 30 # seconds to wait for self-test response
|
|||||||
|
|
||||||
# Gen 4: Connection pool health
|
# Gen 4: Connection pool health
|
||||||
HEARTBEAT_INTERVAL = 300 # Log heartbeat every 5 minutes
|
HEARTBEAT_INTERVAL = 300 # Log heartbeat every 5 minutes
|
||||||
MAX_CONSECUTIVE_EMPTY_POLLS = 20 # Reset client after this many empty polls
|
MAX_CONSECUTIVE_EMPTY_POLLS = 500 # Reset client after this many empty polls (~25min at 3s interval). Raised from 20 to prevent idle bots from cycling reconnections.
|
||||||
CLIENT_REUSE_LIMIT = 500 # Create fresh client every N polls to prevent connection leaks
|
CLIENT_REUSE_LIMIT = 500 # Create fresh client every N polls to prevent connection leaks
|
||||||
POLL_SILENCE_WARN_INTERVAL = 60 # Warn if no events received for this many seconds
|
POLL_SILENCE_WARN_INTERVAL = 60 # Warn if no events received for this many seconds
|
||||||
MAX_ERROR_LOG_LEN = 80 # Truncate error response bodies to avoid HTML spam
|
MAX_ERROR_LOG_LEN = 80 # Truncate error response bodies to avoid HTML spam
|
||||||
@@ -1311,7 +1311,7 @@ def check_requirements() -> bool:
|
|||||||
"""Check whether the Zulip adapter is installable."""
|
"""Check whether the Zulip adapter is installable."""
|
||||||
if not HTTPX_AVAILABLE:
|
if not HTTPX_AVAILABLE:
|
||||||
return False
|
return False
|
||||||
site = os.getenv("ZULIP_SITE", "").strip()
|
site = os.getenv("ZULIP_SITE", "").strip() or os.getenv("ZULIP_URL", "").strip()
|
||||||
email = os.getenv("ZULIP_EMAIL", "").strip()
|
email = os.getenv("ZULIP_EMAIL", "").strip()
|
||||||
api_key = os.getenv("ZULIP_API_KEY", "").strip()
|
api_key = os.getenv("ZULIP_API_KEY", "").strip()
|
||||||
return bool(site and email and api_key)
|
return bool(site and email and api_key)
|
||||||
@@ -1320,7 +1320,7 @@ def check_requirements() -> bool:
|
|||||||
def validate_config(config) -> bool:
|
def validate_config(config) -> bool:
|
||||||
"""Validate that the configured Zulip platform has credentials."""
|
"""Validate that the configured Zulip platform has credentials."""
|
||||||
extra = getattr(config, "extra", {}) or {}
|
extra = getattr(config, "extra", {}) or {}
|
||||||
site = extra.get("site") or os.getenv("ZULIP_SITE", "")
|
site = extra.get("site") or os.getenv("ZULIP_SITE", "") or os.getenv("ZULIP_URL", "")
|
||||||
email = extra.get("email") or os.getenv("ZULIP_EMAIL", "")
|
email = extra.get("email") or os.getenv("ZULIP_EMAIL", "")
|
||||||
api_key = extra.get("api_key") or os.getenv("ZULIP_API_KEY", "")
|
api_key = extra.get("api_key") or os.getenv("ZULIP_API_KEY", "")
|
||||||
return bool(site and email and api_key)
|
return bool(site and email and api_key)
|
||||||
@@ -1333,7 +1333,7 @@ def is_connected(config) -> bool:
|
|||||||
|
|
||||||
def _env_enablement() -> Optional[dict]:
|
def _env_enablement() -> Optional[dict]:
|
||||||
"""Seeds PlatformConfig.extra from env vars for env-only setups."""
|
"""Seeds PlatformConfig.extra from env vars for env-only setups."""
|
||||||
site = os.getenv("ZULIP_SITE", "").strip()
|
site = os.getenv("ZULIP_SITE", "").strip() or os.getenv("ZULIP_URL", "").strip()
|
||||||
email = os.getenv("ZULIP_EMAIL", "").strip()
|
email = os.getenv("ZULIP_EMAIL", "").strip()
|
||||||
api_key = os.getenv("ZULIP_API_KEY", "").strip()
|
api_key = os.getenv("ZULIP_API_KEY", "").strip()
|
||||||
if not (site and email and api_key):
|
if not (site and email and api_key):
|
||||||
|
|||||||
Reference in New Issue
Block a user