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

feat: improve metrics of next #12862

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

marc-vercel
Copy link

No description provided.

Copy link

changeset-bot bot commented Jan 15, 2025

🦋 Changeset detected

Latest commit: 3a5baf8

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

This PR includes changesets to release 8 packages
Name Type
@vercel/build-utils Minor
@vercel/next Minor
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/static-build Patch
@vercel-internals/types 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

fix: rename TimeTracking to Metrics

fix: remove the Ms suffix

fix: move the logic to a new file

fix: cleanup

fix: tests

fix: tests

fix: tests

fix: tests
Comment on lines 2356 to 2359
metrics: {
install: installExecutionTime,
build: buildExecutionTime,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

We should keep in mind future metrics or details we want to capture about builds when changing this interface. For example, we'll want to capture which package manager was used and how successful it was for the install step.

We could end up with something like:

metrics: {
  install: {
    duration: installExecutionTime,
    packageManager,
    isSatisfiedByBuildCache,
  }
}

Or we add that data elsewhere later.

I suggest that the interface here start with:

Suggested change
metrics: {
install: installExecutionTime,
build: buildExecutionTime,
},
metrics: {
install: {
duration: installExecutionTime
},
build: {
duration: buildExecutionTime
}
},

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the reply @EndangeredMassa! I will do that.

Also, I see that the test test-e2e (examples, 3, ubuntu-latest, Node v16) keeps failing, and it does not seem a flaky test. Do you know which may be the cause? Afaik I've not change anything from ionic-react and I'm struggling a bit to find the root cause.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry about that ionic-react failure, I was working on that. Started a rerun and it should succeed now!

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.

3 participants