Skip to content

[Chargeback] 0.4.1 follow-up: fix empty Usage dashboard (sync @timestamp) - #20481

Closed
JohannesMahne wants to merge 3 commits into
wip-johannes-chargebackfrom
feature/chargeback-0.4.1-bulk-sync-fix
Closed

[Chargeback] 0.4.1 follow-up: fix empty Usage dashboard (sync @timestamp)#20481
JohannesMahne wants to merge 3 commits into
wip-johannes-chargebackfrom
feature/chargeback-0.4.1-bulk-sync-fix

Conversation

@JohannesMahne

Copy link
Copy Markdown

Summary

Test plan

  • E2E on stack 9.2.x with billing_realized_pool_lookup count > 0
  • Usage ES|QL smoke (STATS … BY ds_namespace) returns rows
  • Replaces/supersedes push to feature/chargeback-0.4.1-bulk (branch protection blocked further pushes)

Made with Cursor

JohannesMahne and others added 3 commits August 3, 2026 17:17
… docs

Ship low-dependency patch on kibana ^9.2: parse data stream type/namespace
with Usage breakdown panels (no control-bar filters), ECS event.ingested on
lookup destinations, and install/reconciliation docs for #96/#66.

Co-authored-by: Cursor <cursoragent@cursor.com>
…imestamp

billing_realized_pool and billing_cluster_cost synced on event.ingested, which
is often unmapped on On-Prem Billing indices, leaving realized_pool empty and
Usage panels blank.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Aug 3, 2026

Copy link
Copy Markdown

💔 Build Failed

Failed CI Steps

History

@mergify

mergify Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Buildkite failed in :bash: Dev scripts unit tests because the release-commit test hardcodes 10-character short SHAs, but get_release_commit.sh returned 11-character abbreviations in CI. This is a test harness brittleness issue, not a failure in the chargeback package changes in this PR.

Remediation

  • Rebase this PR onto the latest main (or cherry-pick the recent dev-scripts test refactor) so the brittle hardcoded SHA assertions are replaced with dynamic expectations from a dummy repo.
  • Re-run Buildkite and confirm :bash: Dev scripts unit tests passes.
Investigation details

Root Cause

At the merge-base tested by Buildkite, the dev-scripts test runner contains hardcoded expected abbreviated SHAs in .buildkite/scripts/run_dev_scripts_tests.sh:

  • unquoted version assertion expects 43bb655db0
  • quoted version assertion expects 8b024204a8
  • beta-promotion assertion expects fd04de398f

dev/scripts/get_release_commit.sh emits the first token from git log --oneline (awk '{print $1}'), so SHA abbreviation width can vary by environment/config/repository state. In this CI run it returned one extra character for those cases, causing deterministic assertion mismatches.

This PR itself modifies only packages/chargeback/** files (no dev/scripts/** or .buildkite/scripts/** changes), so the failing job is not introduced by the PR diff.

Evidence

  • Build: https://buildkite.com/elastic/integrations/builds/47056
  • Job/step: :bash: Dev scripts unit tests
  • Key log excerpt:
    • FAIL: finds commit for package at packages/<p>/ (unquoted version) — expected '43bb655db0', got '43bb655db05'
    • FAIL: finds commit for package at packages/<p>/ (quoted version) — expected '8b024204a8', got '8b024204a84'
    • FAIL: finds commit for version promoted from beta — expected 'fd04de398f', got 'fd04de398f1'

Verification

  • Not run (read-only detective workflow).

Follow-up

If rebasing is not possible immediately, an alternative is to patch the test expectations to avoid fixed-width SHA literals (e.g., derive expected values dynamically as done in the newer dummy-repo test approach).


What is this? | From workflow: PR Buildkite Detective

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@JohannesMahne

Copy link
Copy Markdown
Author

UX follow-up: pies removed in favor of Workload Breakdown columns — see #20554 (includes this branch's sync fix).

@JohannesMahne

Copy link
Copy Markdown
Author

Superseded by #20554 (full 0.4.1 + sync fix + Workload Breakdown table columns).

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