Skip to content

Conversation

@BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented Jan 26, 2026

Motivation

There is some confusion around the check-schemas job. The job is failing and contributors assume they need to re-generate the types, which is not alway the right call. In some cases, they updated the submodule inadvertently, without the PR requiring rum-events-format changes. In another case, this job was failing not because of event-schemas but just because there was an unrelated formatting issue.

Changes

  • This PR adjusts the script to output to guide the contributor.

  • It also removes the yarn format -w call. Generated files should be already formatted correctly. There was an issue related to this, caused by json-schemas-to-typescript using prettier v2 whereas the SDK repo using v3. So this PR also upgrades json-schemas-to-typescript so it uses prettier v3.

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner January 26, 2026 15:36
Copy link
Collaborator

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

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

LGTM

@BenoitZugmeyer BenoitZugmeyer merged commit 1920b7c into main Jan 26, 2026
20 of 21 checks passed
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/improve-check-schemas branch January 26, 2026 16:16
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants