Skip to content

added switching between light/dark themes - #314

Merged
rashidkpc merged 1 commit into
elastic:masterfrom
rashidkpc:master
Aug 1, 2013
Merged

rashidkpc merged 1 commit into
elastic:masterfrom
rashidkpc:master

Conversation

@rashidkpc

Copy link
Copy Markdown
Contributor

No description provided.

rashidkpc pushed a commit that referenced this pull request Aug 1, 2013
added switching between light/dark themes
@rashidkpc
rashidkpc merged commit 9d65bb5 into elastic:master Aug 1, 2013
harper-carroll pushed a commit to harper-carroll/kibana that referenced this pull request Jul 11, 2016
…ctionIp

Windows doesn't like localhost connections to external ip bound services...
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
arturoliduena added a commit that referenced this pull request Aug 4, 2026
…opt in high-spec-count suites (#280997)

Closes elastic/nightshift-program#812

## Summary
- Adds a `workers` option to `createPlaywrightEvalsConfig` so suite
authors can run spec files in parallel.
- Opts in `workflows` (`workers: 3`) and `agent-builder` (`workers: 2`),
the two highest spec-file-count suites from the weekly run baseline.
- Documents the option in the `@kbn/evals` README with a safety guide
for suite authors.

## Motivation

The Playwright runner executes all spec files in a suite serially
(`workers: 1` by default). `@kbn/scout` already exposes `workers?: 1 | 2
| 3` through `ScoutPlaywrightOptions`, and `createPlaywrightConfig`
already passes it through. However, `createPlaywrightEvalsConfig` never
accepted or forwarded the option, leaving it unavailable to all eval
suites.

From the weekly run #66 baseline, the two largest suites were both
hitting or approaching the 2-hour CI step limit:

| Suite.             | Spec files | Typical runtime |
|-----------------|---:|--------------------:|
| `agent-builder` | 14 | ~2h+ per connector |
| `workflows`       | 9   | ~2h+                          |

The spec files in both suites are independent, so running them in
parallel reduces wall-clock time without requiring additional CI
capacity.

## Changes

### `packages/kbn-evals/src/config/create_playwright_eval_config.ts`

- Adds `workers?: 1 | 2 | 3` to the configuration options.
- Passes the value through to `createPlaywrightConfig`.
- Existing suites remain unchanged when `workers` is omitted (`workers:
1` remains the default).

### `agent-builder/playwright.config.ts`

- Opts in with `workers: 2`.
- Most spec files are fully stateless.
- `find_rules.spec.ts` and `investigate_rule_diagnosis.spec.ts` both
create detection rules and alerts in the same index using hard-coded
names and expected counts. Increasing to `workers: 3` would increase the
chance of those setup windows overlapping and invalidating the
assertions.
- `workers: 2` provides most of the runtime improvement while keeping
that race unlikely.
- A follow-up to eliminate the race entirely by generating unique rule
names per run is tracked separately.

### `workflows/playwright.config.ts`

- Opts in with `workers: 3`.
- All nine spec files are fully stateless.
- No `beforeAll`/`afterAll` hooks modify Elasticsearch or Kibana state.
- Three parallel rounds across nine spec files with no expected
correctness risk.

### `packages/kbn-evals/README.md`

Adds a `workers` subsection to the Playwright configuration
documentation covering:

- Allowed values.
- When to use `workers`.
- Three concrete safety questions suite authors should answer before
opting in.

## Test plan

- [ ] Run the `workflows` suite against a single model and confirm the
runtime is reduced compared to the weekly run baseline.
- [ ] Run the `agent-builder` suite against a single model and confirm
the runtime is reduced.
- [ ] Confirm suites that do not specify `workers` are unaffected
(`workers: 1` remains the default).


## Validation

Baseline and PR runs were compared using **openai-gpt-5.4** (task model)
and **google-gemini-3.1-pro** (judge).
**Baseline (main):** [kibana-evals-on-demand-llm-evals
#314](https://buildkite.com/elastic/kibana-evals-on-demand-llm-evals/builds/314)
**PR:** [kibana-evals-pr-llm-evals
#39](https://buildkite.com/elastic/kibana-evals-pr-llm-evals/builds/39)

### `workflows` (`workers: 3`)

| Metric | Baseline | PR |
|--------|---------:|---:|
| Result | 78 passed | 78 passed |
| Runtime | 1h 48m | **48m** |
| Runtime saved | — | **~55%** |

**Score comparison:** Evaluation scores remained stable with no
correctness regressions.

Comparison:
https://kbn-evals-serverless-ed035a.kb.us-central1.gcp.elastic.cloud/app/management/ai/evals/compare?type=execution&baseline=bk-019fa377-f043-48fa-aaa2-48e1540ce6f5%3A%3Aworkflows%3A%3Aopenai-gpt-5.4&target=bk-019fa361-af56-4b23-b960-d92648d33860%3A%3Aworkflows%3A%3Aopenai-gpt-5.4

### `agent-builder` (`workers: 2`)

| Metric | Baseline | PR |
|--------|---------:|---:|
| Result | 1 failed, 28 passed | 1 failed, 28 passed |
| Runtime | 1h 36m | **1h 10m** |
| Runtime saved | — | **~28%** |

The failing test is pre-existing and occurs on both the baseline and the
PR.

**Score comparison:** Evaluation scores remained stable with no
correctness regressions.

Comparison:
https://kbn-evals-serverless-ed035a.kb.us-central1.gcp.elastic.cloud/app/management/ai/evals/compare?type=execution&baseline=bk-019fa377-f043-48fa-aaa2-48e1540ce6f5%3A%3Aagent-builder%3A%3Aopenai-gpt-5.4&target=bk-019fa361-af56-4b23-b960-d92648d33860%3A%3Aagent-builder%3A%3Aopenai-gpt-5.4

### Conclusion

The `workers` option is correctly passed through to Playwright and
introduces no correctness regressions. The only failing test is
pre-existing and occurs on both `main` and this PR. The change provides
meaningful runtime improvements:

- **`workflows` (`workers: 3`):** ~55% faster (1h 48m → 48m)
- **`agent-builder` (`workers: 2`):** ~28% faster (1h 36m → 1h 10m)
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.

1 participant