Skip to content

Conversation

@tcjr
Copy link
Contributor

@tcjr tcjr commented Mar 22, 2025

Related to #20816.

The removal of this deprecation means that the resolver's internal function layoutFor would always return null. It's only called in one place, so I removed the function and updated lookupComponentPair to use null in place of the return from layoutFor.

@tcjr tcjr changed the title Clean up DEPRECATE_COMPONENT_TEMPLATE_RESOLVING [CLEANUP] Remove DEPRECATE_COMPONENT_TEMPLATE_RESOLVING Mar 22, 2025
);
}

[`${testUnless(
Copy link
Member

Choose a reason for hiding this comment

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

@NullVoxPopuli can you confirm that these tests were not erroneously marked with the deprecation? At a glance it seems like they were coincidentally using the deprecated behavior but I'm not sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

These are testing lifecycle hooks -- so perhaps they could be adapted to a non-deprecated template.

We'd probably want to keep these tests around until we get rid of @ember/component (or move it out to a library somewhere)

Copy link
Member

Choose a reason for hiding this comment

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

Do you know how to adapt them to not use the deprecated feature? If you put an example here @tcjr may be able to resurrect those tests.

NullVoxPopuli and others added 7 commits March 25, 2025 11:33
* Port the sizes workflow from glimmer-vm

* Explicity set permission

* Adjust permissions

* Use pull_request_target for safety

* pull_requset_target => pull_request

* Try to not be vulnerable to basic attacks in GH Actions

* Don't upload the whole dist as an artifact

* Cache main on main

* Build on #main

* Rename

* Updates

* Concat the run id

* Fix path

* Fix paths

* paths
* AHHHHH

* Test empty commit

* Test empty commit

* Test empty commit

* Trigger Main CI

* Test empty commit

* Allow workflow_dispatch

* Test empty commit

* fix

* Test empty commit

* Fix run-id

* what

* what

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* Fix PR number saving

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* AHHHH

* ope

* All

* Shrink output

* Fix paths
* Diff dev assets

* Add diff to size action

* Fix diff

* Fix diff

* Update size

* Demo

* hm

* hm

* hm

* hm

* hm

* hm

* hm

* hm

* Revert "Demo"

This reverts commit c520b6f.
layoutName: 'components/x-parent',
}),

resolveableTemplate:
Copy link
Contributor

Choose a reason for hiding this comment

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

if we change this to template, and then unwrap the expectDeprecation thing, we should be good to go!

(keeping the tests, but also resolving the deprecation)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I restored the tests (unchanged) in this file, removing the testUnless deprecation wrapper.

I'm not sure how to fix the failing tests; I'm still working on that. Just changing resolveableTemplate to template was insufficient (different resolution errors).

tcjr and others added 2 commits March 28, 2025 09:22
* Removed tests targeting DEPRECATE_TEMPLATE_ACTION

* Remove code deprecated via DEPRECATE_TEMPLATE_ACTION

* Restored non-modifier bits of the action modifier source file

* Update packages/@ember/-internals/glimmer/lib/resolver.ts

* Update packages/@ember/-internals/glimmer/lib/resolver.ts

* Update packages/@ember/-internals/glimmer/lib/resolver.ts

* Update packages/@ember/-internals/glimmer/lib/resolver.ts

* Removed node test with action modifier

---------

Co-authored-by: Katie Gengler <katie@kmg.io>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2025

Development Assets

Diff

--- main/out.txt	2025-03-28 16:02:56.000000000 +0000
+++ pr/./pr-14199927699/out.txt	2025-04-01 15:39:40.000000000 +0000
@@ -1,6 +1,6 @@
  2.2M └─┬ .
 1015K   ├─┬ @ember
- 206K   │ ├─┬ -internals
+ 205K   │ ├─┬ -internals
   69K   │ │ ├─┬ views
   64K   │ │ │ └─┬ lib
   23K   │ │ │   ├── mixins
@@ -14,7 +14,7 @@
   26K   │ │ ├─┬ meta
   21K   │ │ │ └── lib
   11K   │ │ ├── owner
- 9.6K   │ │ ├── deprecations
+ 9.4K   │ │ ├── deprecations
  7.4K   │ │ ├── metal
  7.0K   │ │ ├── string
  5.1K   │ │ ├── glimmer

Details

This PRmain
Dev
 2.2M └─┬ .
1015K   ├─┬ @ember
 205K   │ ├─┬ -internals
  69K   │ │ ├─┬ views
  64K   │ │ │ └─┬ lib
  23K   │ │ │   ├── mixins
  22K   │ │ │   ├── system
  10K   │ │ │   ├── views
 4.3K   │ │ │   └── compat
  35K   │ │ ├─┬ runtime
  30K   │ │ │ └─┬ lib
  21K   │ │ │   ├── mixins
 5.7K   │ │ │   └── ext
  26K   │ │ ├─┬ meta
  21K   │ │ │ └── lib
  11K   │ │ ├── owner
 9.4K   │ │ ├── deprecations
 7.4K   │ │ ├── metal
 7.0K   │ │ ├── string
 5.1K   │ │ ├── glimmer
 4.9K   │ │ ├── utils
 4.9K   │ │ ├── routing
 4.5K   │ │ ├── error-handling
 4.5K   │ │ ├── utility-types
 4.2K   │ │ ├── container
 4.2K   │ │ ├── browser-environment
 4.1K   │ │ └── environment
 183K   │ ├─┬ routing
  28K   │ │ └── lib
 149K   │ ├─┬ object
  66K   │ │ └─┬ lib
  62K   │ │   └── computed
 114K   │ ├─┬ template-compiler
 109K   │ │ └─┬ lib
  20K   │ │   ├── plugins
 4.6K   │ │   ├── system
 4.1K   │ │   └── -internal
  66K   │ ├─┬ application
 5.6K   │ │ └── lib
  52K   │ ├─┬ debug
  21K   │ │ └── lib
  38K   │ ├─┬ array
 4.9K   │ │ └── lib
  31K   │ ├─┬ engine
 4.7K   │ │ └── lib
  27K   │ ├── runloop
  22K   │ ├─┬ utils
  18K   │ │ └── lib
  20K   │ ├── helper
  11K   │ ├── destroyable
 9.8K   │ ├── instrumentation
 9.4K   │ ├── controller
 7.4K   │ ├── service
 7.2K   │ ├── owner
 6.2K   │ ├── component
 5.6K   │ ├── canary-features
 5.5K   │ ├── modifier
 5.1K   │ ├── template-compilation
 5.0K   │ ├── enumerable
 5.0K   │ ├── test
 4.4K   │ ├── template
 4.4K   │ ├── renderer
 4.2K   │ ├── deprecated-features
 4.1K   │ ├── template-factory
 4.1K   │ └── version
 709K   ├── shared-chunks
 384K   ├─┬ @glimmer
 166K   │ ├── runtime
  60K   │ ├── opcode-compiler
  30K   │ ├── manager
  22K   │ ├── validator
  14K   │ ├── program
  12K   │ ├── reference
  11K   │ ├── destroyable
  10K   │ ├─┬ tracking
 4.4K   │ │ └── primitives
  10K   │ ├── util
 8.1K   │ ├── node
 7.3K   │ ├── global-context
 6.4K   │ ├── wire-format
 5.0K   │ ├── vm
 4.9K   │ ├── encoder
 4.6K   │ ├── owner
 4.1K   │ └── env
  60K   ├─┬ ember-testing
  56K   │ └─┬ lib
  14K   │   ├── test
  14K   │   ├── helpers
  10K   │   ├── ext
 6.5K   │   └── adapters
  31K   ├── backburner.js
  25K   ├── ember
  24K   ├── route-recognizer
  18K   ├─┬ @simple-dom
  14K   │ └── document
 9.2K   ├── dag-map
 4.3K   ├── rsvp
 4.3K   └── router_js
 2.2M └─┬ .
1015K   ├─┬ @ember
 206K   │ ├─┬ -internals
  69K   │ │ ├─┬ views
  64K   │ │ │ └─┬ lib
  23K   │ │ │   ├── mixins
  22K   │ │ │   ├── system
  10K   │ │ │   ├── views
 4.3K   │ │ │   └── compat
  35K   │ │ ├─┬ runtime
  30K   │ │ │ └─┬ lib
  21K   │ │ │   ├── mixins
 5.7K   │ │ │   └── ext
  26K   │ │ ├─┬ meta
  21K   │ │ │ └── lib
  11K   │ │ ├── owner
 9.6K   │ │ ├── deprecations
 7.4K   │ │ ├── metal
 7.0K   │ │ ├── string
 5.1K   │ │ ├── glimmer
 4.9K   │ │ ├── utils
 4.9K   │ │ ├── routing
 4.5K   │ │ ├── error-handling
 4.5K   │ │ ├── utility-types
 4.2K   │ │ ├── container
 4.2K   │ │ ├── browser-environment
 4.1K   │ │ └── environment
 183K   │ ├─┬ routing
  28K   │ │ └── lib
 149K   │ ├─┬ object
  66K   │ │ └─┬ lib
  62K   │ │   └── computed
 114K   │ ├─┬ template-compiler
 109K   │ │ └─┬ lib
  20K   │ │   ├── plugins
 4.6K   │ │   ├── system
 4.1K   │ │   └── -internal
  66K   │ ├─┬ application
 5.6K   │ │ └── lib
  52K   │ ├─┬ debug
  21K   │ │ └── lib
  38K   │ ├─┬ array
 4.9K   │ │ └── lib
  31K   │ ├─┬ engine
 4.7K   │ │ └── lib
  27K   │ ├── runloop
  22K   │ ├─┬ utils
  18K   │ │ └── lib
  20K   │ ├── helper
  11K   │ ├── destroyable
 9.8K   │ ├── instrumentation
 9.4K   │ ├── controller
 7.4K   │ ├── service
 7.2K   │ ├── owner
 6.2K   │ ├── component
 5.6K   │ ├── canary-features
 5.5K   │ ├── modifier
 5.1K   │ ├── template-compilation
 5.0K   │ ├── enumerable
 5.0K   │ ├── test
 4.4K   │ ├── template
 4.4K   │ ├── renderer
 4.2K   │ ├── deprecated-features
 4.1K   │ ├── template-factory
 4.1K   │ └── version
 709K   ├── shared-chunks
 384K   ├─┬ @glimmer
 166K   │ ├── runtime
  60K   │ ├── opcode-compiler
  30K   │ ├── manager
  22K   │ ├── validator
  14K   │ ├── program
  12K   │ ├── reference
  11K   │ ├── destroyable
  10K   │ ├─┬ tracking
 4.4K   │ │ └── primitives
  10K   │ ├── util
 8.1K   │ ├── node
 7.3K   │ ├── global-context
 6.4K   │ ├── wire-format
 5.0K   │ ├── vm
 4.9K   │ ├── encoder
 4.6K   │ ├── owner
 4.1K   │ └── env
  60K   ├─┬ ember-testing
  56K   │ └─┬ lib
  14K   │   ├── test
  14K   │   ├── helpers
  10K   │   ├── ext
 6.5K   │   └── adapters
  31K   ├── backburner.js
  25K   ├── ember
  24K   ├── route-recognizer
  18K   ├─┬ @simple-dom
  14K   │ └── document
 9.2K   ├── dag-map
 4.3K   ├── rsvp
 4.3K   └── router_js

@kategengler
Copy link
Member

@NullVoxPopuli Why would this PR increase the size of shared-chunks by 19K?

@NullVoxPopuli
Copy link
Contributor

it might not be rebased -- like main could have some other deprecation removed that is still present in this branch?

@kategengler
Copy link
Member

@NullVoxPopuli ah I see -- wonder if we should gate the size comment on the PR being up-to-date?

@NullVoxPopuli
Copy link
Contributor

Since Ci/Tests run with an ephemeral "what would be if the PR were merged" branch, is there a way we can get that ref and use that?

@kategengler
Copy link
Member

Since Ci/Tests run with an ephemeral "what would be if the PR were merged" branch, is there a way we can get that ref and use that?

hm, github.ref should already be that on pull_request...

@kategengler
Copy link
Member

@tcjr I think something has gone wrong here -- it is showing files as new that already exist 🤔

@tcjr
Copy link
Contributor Author

tcjr commented Apr 1, 2025

@tcjr I think something has gone wrong here -- it is showing files as new that already exist 🤔
Fouled up this branch. Gonna make a clean PR.

@tcjr tcjr closed this Apr 1, 2025
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