FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add potential failing test for #110 by Techn1x · Pull Request #115 · universal-ember/reactiveweb · GitHub

test: add potential failing test for #110 - #115

Draft
Techn1x wants to merge 6 commits into
universal-ember:mainfrom
Techn1x:potential-failing-test
Draft

test: add potential failing test for #110#115
Techn1x wants to merge 6 commits into
universal-ember:mainfrom
Techn1x:potential-failing-test

Conversation

Techn1x commented Sep 13, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

aimed to be a failing test for #110

vercel Bot commented Sep 13, 2024

Copy link
Copy Markdown

@Techn1x is attempting to deploy a commit to the universal-ember Team on Vercel.

A member of the Team first needs to authorize it.

Comment on lines +276 to +279
<template>
<div {{logText this.testCase.endResult}} />
<out>{{this.testCase.endResult}}</out>
<button type="button" {{on "click" this.setTestCase}}></button>

Techn1x Sep 16, 2024
edited
Loading

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The secret sauce to get the test to fail was using the value in a modifier before using it for something else.

This test passes when either;

  • you comment out the div with the modifier, or
  • the value is referenced before the modifier (eg adding {{log this.testCase.endResult}} to the line before the div, or
  • you use < ember 5.5ember 5.6

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This test passes when either;

  • or, my production builds seem to behave OK. I can't verify this here in the test though.

Copy link
Copy Markdown
Contributor

so I pulled this down, only to realize that it needs rebased!

can you rebase? thanks!!
(and thanks for the repro!)

Techn1x force-pushed the potential-failing-test branch from ce5469d to 5525e17 Compare September 17, 2024 00:45

Techn1x commented Sep 17, 2024

Copy link
Copy Markdown
Contributor Author

Whoops! I was operating out of an old fork.

Rebased.

Feel free to modify / undraft this work how you see fit. I called the test "failing case" for lack of a better name, given I'm not sure what the core problem is that it's testing for

Copy link
Copy Markdown
Contributor

5.5 is ok, but 5.6 isn't -- this matches my expectations of ember-source, because 5.6 had the VM update

Copy link
Copy Markdown
Contributor

I'm still investigating, but my worry is that this is related to either of these two PRs:

Techn1x commented Sep 18, 2024

Copy link
Copy Markdown
Contributor Author

Would either of those PRs be expected to exhibit different behaviour between test / prod builds?

Copy link
Copy Markdown
Contributor

I wouldn't expect a difference in behavior, no -- but that doesn't mean something accidentally didn't happen! 🙈

Techn1x commented Mar 3, 2025
edited
Loading

Copy link
Copy Markdown
Contributor Author

@NullVoxPopuli hello! just revisiting this after bumping into it again.

I'm onto Ember 6.2 now too ✨

Does wycats response here shed some light on this issue at all? It went a bit over my head to be honest 😅
glimmerjs/glimmer-vm#1629 (comment)

Let me know if I can help at all.

The workaround of "add a log statement before using the tracked function in template" is totally fine for my codebase, especially since it works fine in prod builds regardless. Though unfortunate for others who may not be in the know on this, and be confused when things are being weird

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL