Skip to content

test(ivy): mark jit_summaries_integration_spec as obsolete in Ivy - #28027

Closed
alxhub wants to merge 1 commit into
angular:masterfrom
alxhub:fw-838-summaries
Closed

alxhub wants to merge 1 commit into
angular:masterfrom
alxhub:fw-838-summaries

Conversation

@alxhub

@alxhub alxhub commented Jan 9, 2019

Copy link
Copy Markdown
Member

These tests validate the ability of the View Engine TestBed to consume
summary metadata, a mechanism which allows the TestBed to use
AOT-compiled components & directives in tests. It achieves this through
two operations which are independently obsolete in Ivy:

  1. It injects CompileMetadataResolver, a View Engine specific compiler
    internal class which extracts global analysis metadata from classes,
    and uses it to construct summary metadata. This happens in a
    beforeEach() block which calls createSummaries().

  2. It uses TestBed.initTestEnvironment to pass summary metadata to the
    TestBed itself. Any such metadata is ignored in Ivy.

Operation #1 makes it impossible to run these tests under Ivy, as the
CompileMetadataResolver is not available with an Ivy compiler.

Ivy itself does not rely on summary data, and the R3TestBed can depend
directly on AOT compiled components without it. Thus, the spirit of thes
tests is obsolete in an Ivy world.

FW-838 #resolve

@alxhub
alxhub requested a review from a team January 9, 2019 21:45
@alxhub
alxhub requested a review from kara January 9, 2019 21:45
@alxhub alxhub added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Jan 9, 2019

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kara kara added the comp: ivy label Jan 9, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Jan 9, 2019
@mary-poppins

Copy link
Copy Markdown

@AndrewKushnir AndrewKushnir added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Jan 9, 2019

@AndrewKushnir AndrewKushnir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The obsoleteInIvy(...) && describe(...) construction is incorrect (thus it enables all tests and triggering error in test-ivy-aot). We should execute them like this: obsoleteInIvy(...).describe(...).

@kara

kara commented Jan 9, 2019

Copy link
Copy Markdown
Contributor

@AndrewKushnir Good catch!

These tests validate the ability of the View Engine TestBed to consume
summary metadata, a mechanism which allows the TestBed to use
AOT-compiled components & directives in tests. It achieves this through
two operations which are independently obsolete in Ivy:

1. It injects CompileMetadataResolver, a View Engine specific compiler
   internal class which extracts global analysis metadata from classes,
   and uses it to construct summary metadata. This happens in a
   beforeEach() block which calls createSummaries().

2. It uses TestBed.initTestEnvironment to pass summary metadata to the
   TestBed itself. Any such metadata is ignored in Ivy.

Operation #1 makes it impossible to run these tests under Ivy, as the
CompileMetadataResolver is not available with an Ivy compiler.

Ivy itself does not rely on summary data, and the R3TestBed can depend
directly on AOT compiled components without it. Thus, the spirit of thes
tests is obsolete in an Ivy world.

FW-838 #resolve
@alxhub

alxhub commented Jan 9, 2019

Copy link
Copy Markdown
Member Author

@AndrewKushnir thanks, fixed!

@alxhub alxhub added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jan 9, 2019
@mary-poppins

Copy link
Copy Markdown

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants