Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a mechanism to E2E telemetry #19946

Merged
merged 4 commits into from
Nov 29, 2022

Conversation

tmeasday
Copy link
Member

Issue: NA

What I did

  1. Allowed overriding the SB telemetry URL
  2. Enabled telemetry in all sandboxes, but set the URL to localhost:6007
  3. Built a collector for telemetry events
  4. Built a simple script to check the collected events are "correct"
  5. Built a first check for the build event (the only one we currently trigger in our CI process), which really just checks the very basics.

We should consider if/how we are going to test some other telemetry events, and whether we want to do it per-sandbox:

  • init
  • upgrade
  • dev [this one should be done with smoke testing soon).
  • error
  • error-metadata.

How to test

CI passes

@tmeasday tmeasday added telemetry build Internal-facing build tooling & test updates labels Nov 24, 2022
Copy link
Contributor

@kasperpeulen kasperpeulen left a comment

Choose a reason for hiding this comment

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

LGTM

);
}

const expectation = eventTypeExpectations[eventType as keyof typeof eventTypeExpectations];
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of this variable?

Copy link
Member Author

@tmeasday tmeasday Nov 24, 2022

Choose a reason for hiding this comment

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

Oh, my thought was that we might have some sort of event-specific checks that could be driven by this object. Alternatively we could make it a function that does it's own assertions on the mainEvent (that's probably better now I think about it).

@tmeasday
Copy link
Member Author

Will update later with some changes but for now this is doing something useful!

@tmeasday tmeasday merged commit 9ddc1cf into next Nov 29, 2022
@tmeasday tmeasday deleted the tom/sb-844-turn-on-telemetry-for-sandboxes-test-in branch November 29, 2022 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates telemetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants