Skip to content

chore: update @elastic/schemas to 0.13.0 - #846

Open
JoshMock wants to merge 2 commits into
mainfrom
schemas-0.13-bump
Open

JoshMock wants to merge 2 commits into
mainfrom
schemas-0.13-bump

Conversation

@JoshMock

@JoshMock JoshMock commented Dec 4, 2026

Copy link
Copy Markdown
Member

fix(kibana): rename SLO commands

fix(es): add flags to nodes stats command

fix(kibana): rename inference chat-completion flag

fix(es): Added prometheus label-values and labels commands with full parameters

fix(kibana): rename SLO commands

fix(es): add flags to nodes stats command

fix(kibana): rename inference `chat-completion` flag

fix(es): Added prometheus label-values and labels commands with full parameters
Copilot AI balanced review requested due to automatic review settings December 4, 2026 20:06
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

👋 This PR can use the first-failure repair loop on GitHub Actions and Buildkite.

Labels

  • auto-loop: triage the first CI or Buildkite failure and commit in-repo fixes (also AI review and CodeQL)
  • skip-ai-review: silences the review bot
  • skip-auto-loop: halt the repair loop (also added when you comment /stop)

Comments

  • /stop: halt the repair loop
  • /bad on a finding: the bot writes a short do not re-flag line from the finding and your note into .github/skills/ai-review-memory.md. A reason is optional.
    • Example: /bad false positive. This path is already encoded.

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

No direct page links are available.
Browse the full preview

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

✅MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 0.46s
✅ REPOSITORY gitleaks yes no no 45.75s
✅ REPOSITORY git_diff yes no no 0.12s
✅ REPOSITORY secretlint yes no no 8.88s
✅ REPOSITORY trivy yes no no 21.61s
✅ TYPESCRIPT eslint 7 0 0 2.84s
✅ YAML yamllint 15 0 0 0.62s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

When prometheus remote-write receives namespace without dataset, it should reject the combination with an input_error; instead, the fallback silently drops the namespace and sends the write to the base endpoint.

1 open issue
What changed in this PR

Updates Elastic CLI to @elastic/schemas 0.13.0 and adapts routing and tests to the upstream API changes.

Changes:

  • Upgrades the schema dependency, lockfile, notice, and command-count assertions.
  • Aligns SLO functional tests and version gates with renamed commands.
  • Adds same-method x-urls path selection and validation coverage.
File Description
test/​lib/​manifest-drift.test.ts Updates expected API counts.
test/​kb/​request-builder.test.ts Uses renamed SLO definition lookup.
test/​functional/​kb/​definitions/​slo_update_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_reset_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_get_snapshot.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_get_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_get_definitions.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_find_slos.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_enable_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_disable_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_delete_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_delete_slo_instances.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_delete_rollup_data.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_create_slo.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_bulk_snapshot.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_bulk_delete.yml Updates SLO command names.
test/​functional/​kb/​definitions/​slo_bulk_delete_status.yml Updates SLO command names.
test/​es/​types.test.ts Tests alternate-path validation.
test/​es/​request-builder.test.ts Tests alternate and Prometheus routes.
src/​es/​types.ts Adds path-template selection and validation.
src/​es/​request-builder.ts Selects paths using supplied parameters.
package.json Bumps schema dependency.
package-lock.json Locks updated schema package.
NOTICE.txt Updates schema package notice.
codegen/​functional/​stack-since.json Renames SLO version-gate keys.
codegen/​functional/​kb.ts Updates SLO snapshot skip filenames.

Review effort: Balanced

Comment thread src/es/types.ts Resolved
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Startup perf: PR vs merge-base ✅

command PR base delta
elastic 43.4 ms 42.9 ms +1.3%
elastic --help 43.9 ms 44.9 ms -2.3%
elastic es --help 85.8 ms 83.4 ms +2.8%
elastic es 84.6 ms 84.0 ms +0.6%
elastic cloud --help 46.1 ms 46.3 ms -0.4%
elastic cloud 46.0 ms 46.6 ms -1.2%
elastic kb --help 91.0 ms 90.4 ms +0.7%
elastic kb 93.5 ms 90.8 ms +3.0%
elastic es indices --help 81.8 ms 79.7 ms +2.6%
elastic es indices update-aliases --help 151.2 ms 145.0 ms +4.3%

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

☁️ Cloud functional tests failed.

FAIL: stack_get_version_stacks.sh
Results: 50 passed, 1 failed
FAIL: stack_get_version_stacks.sh

Build: https://buildkite.com/elastic/elastic-cli/builds/2505

When the supplied path params match no URL exactly, the request fell
back to def.path and silently dropped any param it lacked (e.g.
prometheus remote-write --namespace without --dataset). Throw an
input_error naming the dropped params instead.

Assisted-by: Pi Coding Agent (Claude Opus 5.5)
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

PR type mismatch: title uses chore: update @elastic/schemas to 0.13.0, diff looks like feat instead.

The schemas bump regenerates the CLI with new user-facing commands (Prometheus query/labels/series/etc.) and new flags, which is a feature rather than a no-release chore.

This affects the version bump and changelog entry release-please generates on merge. Update the PR title (and squash commit message) to match, or push a follow-up commit that justifies the current prefix.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The upgraded Prometheus labels and label-values commands require multiple selectors as repeated match[] query parameters, but buildUrl converts them into one comma-separated value, producing an invalid selector when more than one is supplied.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Serialize Prometheus selectors as repeated match[] query parameters

package.json:69

The Prometheus labels and label-values commands exposed by this upgrade expect multiple selectors as repeated match[] query parameters. buildUrl in src/lib/http-core.ts:37-39 instead applies String(value), so two selectors become one invalid selector such as up{job="a"},up{job="b"}. Add repeated-query serialization support and a request-level regression test while preserving comma-separated serialization for existing ES parameters.

1 resolved since last review

Review effort: Balanced

This branch was successfully deployed

1 active deployment
docs-preview — c0ccfa12 Deployed Dec 4, 2026 by github-actions[bot]
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.

2 participants