Skip to content

chore: extend respect event#2818

Merged
DmitryAnansky merged 5 commits into
mainfrom
chore/extend-respect-event
May 18, 2026
Merged

chore: extend respect event#2818
DmitryAnansky merged 5 commits into
mainfrom
chore/extend-respect-event

Conversation

@DmitryAnansky
Copy link
Copy Markdown
Contributor

@DmitryAnansky DmitryAnansky commented May 15, 2026

What/Why/How?

  • Updated config package version.
  • Extended respect event with additional fields.
  • Updated redocly-otel package version.

Reference

https://github.com/Redocly/redocly/pull/23264

Testing

Screenshots (optional)

Check yourself

  • This PR follows the contributing guide
  • All new/updated code is covered by tests
  • Core code changed? - Tested with other Redocly products (internal contributions only)
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update has been considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

Note

Medium Risk
Expands telemetry payload collection for Arazzo specs and upgrades telemetry/config dependencies, which could affect event shape/analytics and needs validation for data/compatibility, but does not change core linting behavior.

Overview
Extends CLI telemetry for Arazzo (spec_version === 'arazzo1') by collecting and sending two new event fields: respect_source_description_types (from sourceDescriptions[].type) and respect_criterion_object_types (derived from all criteria locations, including reusable component actions).

Refactors collectXSecurityAuthTypes to use Set-based de-duplication and updates wrapper/tests accordingly, then bumps dependencies (@redocly/config to 0.48.2 in core and @redocly/cli-otel to 0.3.1 in CLI) with an updated config schema snapshot (adds banner startAt/endAt).

Reviewed by Cursor Bugbot for commit af0c350. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 15, 2026

🦋 Changeset detected

Latest commit: af0c350

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/openapi-core Patch
@redocly/cli Patch
@redocly/respect-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

CLI Version Mean Time ± Std Dev (s) Relative Performance (Lower is Faster)
cli-latest 1.842s ± 0.018s ▓ 1.00x (Fastest)
cli-next 1.846s ± 0.023s ▓ 1.00x

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 80.74% (🎯 80%) 7253 / 8983
🔵 Statements 80.1% (🎯 80%) 7537 / 9409
🔵 Functions 83.83% (🎯 83%) 1452 / 1732
🔵 Branches 72.3% (🎯 72%) 4913 / 6795
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/cli/src/wrapper.ts 73.8% 44.11% 100% 73.17% 50, 68, 72-75, 93-100
packages/cli/src/utils/telemetry.ts 92.48% 73.5% 94.44% 93.12% 58, 63, 249, 285, 298-299, 343, 374, 379
Generated in workflow #9863 for commit af0c350 by the Vitest Coverage Report Action

@DmitryAnansky DmitryAnansky marked this pull request as ready for review May 15, 2026 15:54
@DmitryAnansky DmitryAnansky requested review from a team as code owners May 15, 2026 15:54
Comment thread packages/cli/src/utils/telemetry.ts Outdated
Comment thread packages/cli/src/utils/telemetry.ts Outdated
@DmitryAnansky DmitryAnansky force-pushed the chore/extend-respect-event branch 3 times, most recently from 301ab84 to 3e89663 Compare May 18, 2026 09:15
@DmitryAnansky DmitryAnansky force-pushed the chore/extend-respect-event branch from 3e89663 to 364ba09 Compare May 18, 2026 14:39
@DmitryAnansky DmitryAnansky requested a review from a team as a code owner May 18, 2026 14:46
@DmitryAnansky DmitryAnansky self-assigned this May 18, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2f20fb0. Configure here.

Comment thread packages/cli/src/utils/telemetry.ts
@DmitryAnansky DmitryAnansky added the snapshot Create experimental release PR label May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📦 A new experimental 🧪 version v0.0.0-snapshot.1779116318 of Redocly CLI has been published for testing.

Install with NPM:

npm install @redocly/cli@0.0.0-snapshot.1779116318
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1779116318
# or
npm install @redocly/respect-core@0.0.0-snapshot.1779116318

⚠️ Note: This is a development build and may contain unstable features.

@DmitryAnansky DmitryAnansky merged commit 84b0d9e into main May 18, 2026
47 of 49 checks passed
@DmitryAnansky DmitryAnansky deleted the chore/extend-respect-event branch May 18, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot Create experimental release PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants