Commit ed3a58a
feat(o11y): stamp testhubBuildUuid + buildProductMap on cypress build caps [SDK-7285]
Cypress is the only SDK line that stamps no TestHub capability at all: 0 of
16,629 sessions carry one across all 32 CLI versions. That leaves it with a
single route into Test Reporting & Analytics -- the BTCER session_hashed_id
fallback -- and that misses ~32.5% of its sessions, which are then counted
against ingestion stability with no build to attach to (2,917 sessions /
0.5882pp in the measured cohort, across 76 accounts).
caps() already runs after build start, so the uuid and the product map are both
in hand; getProductMap() is reused rather than reimplemented, and evaluating it
here reports the products still enabled after the accessibility/observability
gates rather than the ones requested.
Both keys are written unconditionally. The metric treats an absent key and an
empty string identically, so the empty string costs nothing and preserves the
distinction between a cap writer that ran with no build to name and no writer
running at all -- which for cypress is currently unobservable.
Verified end-to-end on production: the build-create POST carries
testhubBuildUuid=xcsouiygyettrxqdxyxmi18qnkyb6alfxqnj8x4z, matching the TestHub
build the run created.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 8731a23 commit ed3a58a
2 files changed
Lines changed: 75 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
565 | 630 | | |
566 | 631 | | |
567 | 632 | | |
| |||
0 commit comments