Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AndrewJakubowicz
Copy link
Contributor

Context

There is an import rewriting error that can occasionally create a confusing situation for someone working on a PR. The confusing situation is that locally npm run test -w <package> passes, but then it fails in CI.

Most recently this issue blocked: #4013 (comment)

Features

Previous behavior:

The only logged error was: Unexpected dev request in prod mode: /packages/labs/task/development/deep-equals.js

New behavior:

A new log is added with:

❌ There may be a relative import in 'deep-equals_test.js' which is resolving to '/packages/labs/task/development/deep-equals.js'. Ensure the import is a bare module. Reproduce locally with: `MODE=prod npm run test:common -w @lit-internal/tests`

Testing

Low risk change. I tested locally by manually triggering the error.

@changeset-bot
Copy link

changeset-bot bot commented Jul 31, 2023

πŸ¦‹ Changeset detected

Latest commit: 1a6f172

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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
Contributor

github-actions bot commented Jul 31, 2023

πŸ“Š Tachometer Benchmark Results

Summary

nop-update

  • this-change, tip-of-tree, previous-release: unsure πŸ” -8% - +6% (-1.96ms - +1.54ms)
    this-change vs tip-of-tree

render

  • this-change: 99.05ms - 104.21ms
  • this-change, tip-of-tree, previous-release: slower ❌ 0% - 10% (0.07ms - 3.71ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -3% - +3% (-2.45ms - +2.24ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -2% - +3% (-1.02ms - +1.89ms)
    this-change vs tip-of-tree

update

  • this-change: 1045.01ms - 1083.03ms
  • this-change, tip-of-tree, previous-release: unsure πŸ” -4% - +6% (-4.26ms - +5.36ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -3% - +5% (-4.69ms - +8.20ms)
    this-change vs tip-of-tree
  • this-change, tip-of-tree, previous-release: unsure πŸ” -1% - +1% (-8.46ms - +13.88ms)
    this-change vs tip-of-tree

update-reflect

  • this-change: 1001.93ms - 1031.69ms
  • this-change, tip-of-tree, previous-release: unsure πŸ” -1% - +1% (-5.62ms - +13.27ms)
    this-change vs tip-of-tree

Results

this-change

render

VersionAvg timevs
99.05ms - 104.21ms-

update

VersionAvg timevs
1045.01ms - 1083.03ms-

update-reflect

VersionAvg timevs
1001.93ms - 1031.69ms-
this-change, tip-of-tree, previous-release

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
38.50ms - 41.27ms-slower ❌
0% - 10%
0.07ms - 3.71ms
unsure πŸ”
-3% - +6%
-1.32ms - +2.52ms
tip-of-tree
tip-of-tree
36.81ms - 39.18msfaster βœ”
0% - 9%
0.07ms - 3.71ms
-unsure πŸ”
-8% - +1%
-3.08ms - +0.49ms
previous-release
previous-release
37.96ms - 40.62msunsure πŸ”
-6% - +3%
-2.52ms - +1.32ms
unsure πŸ”
-1% - +8%
-0.49ms - +3.08ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
93.14ms - 99.36ms-unsure πŸ”
-4% - +6%
-4.26ms - +5.36ms
unsure πŸ”
-3% - +6%
-2.70ms - +5.74ms
tip-of-tree
tip-of-tree
92.03ms - 99.37msunsure πŸ”
-6% - +4%
-5.36ms - +4.26ms
-unsure πŸ”
-4% - +6%
-3.67ms - +5.62ms
previous-release
previous-release
91.87ms - 97.57msunsure πŸ”
-6% - +3%
-5.74ms - +2.70ms
unsure πŸ”
-6% - +4%
-5.62ms - +3.67ms
-

nop-update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
22.60ms - 24.07ms-unsure πŸ”
-8% - +6%
-1.96ms - +1.54ms
unsure πŸ”
-6% - +6%
-1.37ms - +1.29ms
tip-of-tree
tip-of-tree
21.96ms - 25.13msunsure πŸ”
-7% - +8%
-1.54ms - +1.96ms
-unsure πŸ”
-8% - +9%
-1.77ms - +2.10ms
previous-release
previous-release
22.27ms - 24.48msunsure πŸ”
-6% - +6%
-1.29ms - +1.37ms
unsure πŸ”
-9% - +7%
-2.10ms - +1.77ms
-
this-change, tip-of-tree, previous-release

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
69.08ms - 72.86ms-unsure πŸ”
-3% - +3%
-2.45ms - +2.24ms
unsure πŸ”
-4% - +3%
-2.53ms - +2.46ms
tip-of-tree
tip-of-tree
69.68ms - 72.47msunsure πŸ”
-3% - +3%
-2.24ms - +2.45ms
-unsure πŸ”
-3% - +3%
-2.08ms - +2.21ms
previous-release
previous-release
69.38ms - 72.64msunsure πŸ”
-3% - +4%
-2.46ms - +2.53ms
unsure πŸ”
-3% - +3%
-2.21ms - +2.08ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
152.53ms - 161.91ms-unsure πŸ”
-3% - +5%
-4.69ms - +8.20ms
unsure πŸ”
-4% - +4%
-6.55ms - +6.12ms
tip-of-tree
tip-of-tree
151.04ms - 159.88msunsure πŸ”
-5% - +3%
-8.20ms - +4.69ms
-unsure πŸ”
-5% - +3%
-8.10ms - +4.17ms
previous-release
previous-release
153.18ms - 161.69msunsure πŸ”
-4% - +4%
-6.12ms - +6.55ms
unsure πŸ”
-3% - +5%
-4.17ms - +8.10ms
-
this-change, tip-of-tree, previous-release

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
63.72ms - 65.86ms-unsure πŸ”
-2% - +3%
-1.02ms - +1.89ms
unsure πŸ”
-3% - +1%
-1.89ms - +0.98ms
tip-of-tree
tip-of-tree
63.37ms - 65.34msunsure πŸ”
-3% - +2%
-1.89ms - +1.02ms
-unsure πŸ”
-3% - +1%
-2.27ms - +0.48ms
previous-release
previous-release
64.29ms - 66.21msunsure πŸ”
-2% - +3%
-0.98ms - +1.89ms
unsure πŸ”
-1% - +4%
-0.48ms - +2.27ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
993.39ms - 1008.24ms-unsure πŸ”
-1% - +1%
-8.46ms - +13.88ms
unsure πŸ”
-0% - +2%
-2.63ms - +16.98ms
tip-of-tree
tip-of-tree
989.76ms - 1006.46msunsure πŸ”
-1% - +1%
-13.88ms - +8.46ms
-unsure πŸ”
-1% - +2%
-6.06ms - +14.99ms
previous-release
previous-release
987.24ms - 1000.05msunsure πŸ”
-2% - +0%
-16.98ms - +2.63ms
unsure πŸ”
-1% - +1%
-14.99ms - +6.06ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
999.25ms - 1013.81ms-unsure πŸ”
-1% - +1%
-5.62ms - +13.27ms
unsure πŸ”
-1% - +1%
-5.81ms - +13.56ms
tip-of-tree
tip-of-tree
996.69ms - 1008.72msunsure πŸ”
-1% - +1%
-13.27ms - +5.62ms
-unsure πŸ”
-1% - +1%
-8.72ms - +8.82ms
previous-release
previous-release
996.28ms - 1009.04msunsure πŸ”
-1% - +1%
-13.56ms - +5.81ms
unsure πŸ”
-1% - +1%
-8.82ms - +8.72ms
-

tachometer-reporter-action v2 for Benchmarks

Copy link
Member

@augustjk augustjk left a comment

Choose a reason for hiding this comment

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

Nice, thanks for adding this!

@AndrewJakubowicz AndrewJakubowicz merged commit 47b4891 into main Jul 31, 2023
@AndrewJakubowicz AndrewJakubowicz deleted the improve-error-message-web-test-runner branch July 31, 2023 21:24
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.

2 participants