• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elastic / cloudbeat / 28582110417
76%

Build:
DEFAULT BRANCH: main
Ran 02 Jul 2026 10:25AM UTC
Jobs 1
Files 235
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jul 2026 09:49AM UTC coverage: 75.802%. Remained the same
28582110417

push

github

web-flow
Fix EA workflow risk-score maintainer HTTP 500 by using sync run (#7174)

## Summary

Fixes the **Create EA Environment** workflow failure in the *Install
entity store and run risk-score maintainer* step. The script now calls
the risk-score maintainer with `sync=true`, matching Kibana FTR
behavior, instead of the async `runSoon` path that races with Task
Manager after entity store install.

## Problem

After entity store install and maintainer init succeed, the workflow
failed on the first attempt to run the risk-score maintainer:

`Risk-score maintainer run failed (non-retryable HTTP 500)`


Entity store install already schedules maintainers with `autoStart:
true` (Kibana #263732). The script then triggered an **async** run
(`POST .../run/risk-score` without `sync=true`), which calls
`taskManager.runSoon()` and can conflict with Task Manager's auto-run,
producing a generic HTTP 500.

## Solution

- Use **synchronous** maintainer run:
`.../run/risk-score?apiVersion=2&sync=true`
- Use a **600s** curl timeout for the sync run (Kibana allows up to 10
minutes); keep 120s for status/install/init
- Add optional env var `RISK_SCORE_MAINTAINER_SYNC_TIMEOUT_SEC` (default
600)
- Keep `POST init` as idempotent safety for the already-running
(skip-install) path
- Retry only gateway/connection errors (502/503/504/000); fail fast on
HTTP 500 (real scoring error with sync mode)

## Test plan

- [x] Re-run **Create EA Environment** (`create-env-ea.yml`) on
`9.5.0-SNAPSHOT` (or the version that previously failed)
- [x] Confirm step logs show `sync=true` and `Risk-score maintainer sync
run succeeded (HTTP 200)`

9730 of 12836 relevant lines covered (75.8%)

16.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28582110417.1 02 Jul 2026 10:25AM UTC 235
75.8
GitHub Action Run
Source Files on build 28582110417
  • Tree
  • List 235
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c86ddb3a on github
  • Prev Build on gh-readonly-queue/main/pr-7128-5a7f112aa7fa2e4adc07a2ee21dbf8767adee9fb (#28506506480)
  • Next Build on main (#28586500615)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc