Skip to content

build: add job that ensures view engine AOT compatibility #19531

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

Conversation

devversion
Copy link
Member

Surprisingly with the switch to Ivy, we lost our infrastructure
that ensures View Engine AOT compatibility. View Engine compiler
is sometimes slighlty stricter in AOT as its pre-compiled factories
are in external classes. This requires variables to be "public" when
they are referenced in a template. In Ivy, these properties could
actually be protected or private too.

We already run tests against View Engine, but not in AOT. This is
because View Engine compiler does not process un-exported test classes.
In the future, with Ivy-only, we can run tests in AOT mode.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 3, 2020
@devversion
Copy link
Member Author

This is blocked on #19516. Once this PR lands, we could merge this.

@devversion devversion added blocked This issue is blocked by some external factor, such as a prerequisite PR merge safe target: patch This PR is targeted for the next patch release labels Jun 3, 2020
@devversion devversion marked this pull request as ready for review June 3, 2020 19:46
@devversion devversion requested a review from a team as a code owner June 3, 2020 19:46
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added the lgtm label Jun 3, 2020
Surprisingly with the switch to Ivy, we lost our infrastructure
that ensures View Engine AOT compatibility. View Engine compiler
is sometimes slighlty stricter in AOT as its pre-compiled factories
are in external classes. This requires variables to be "public" when
they are referenced in a template. In Ivy, these properties could
actually be `protected` or `private` too.

We already run tests against View Engine, but not in AOT. This is
because View Engine compiler does not process un-exported test classes.
In the future, with Ivy-only, we can run tests in AOT mode.
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed blocked This issue is blocked by some external factor, such as a prerequisite PR labels Jun 5, 2020
@devversion devversion force-pushed the build/add-job-to-ensure-view-engine-aot-compat branch from 78b39f4 to 379e0a6 Compare June 5, 2020 20:49
@devversion
Copy link
Member Author

Rebased. This is now ready to land so that we don't regress with View Engine AOT compatibility.

@devversion devversion added the P2 The issue is important to a large percentage of users, with a workaround label Jun 5, 2020
@andrewseguin andrewseguin merged commit 100cdd2 into angular:master Jun 9, 2020
andrewseguin pushed a commit that referenced this pull request Jun 9, 2020
Surprisingly with the switch to Ivy, we lost our infrastructure
that ensures View Engine AOT compatibility. View Engine compiler
is sometimes slighlty stricter in AOT as its pre-compiled factories
are in external classes. This requires variables to be "public" when
they are referenced in a template. In Ivy, these properties could
actually be `protected` or `private` too.

We already run tests against View Engine, but not in AOT. This is
because View Engine compiler does not process un-exported test classes.
In the future, with Ivy-only, we can run tests in AOT mode.
@angular-automatic-lock-bot
Copy link

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 Jul 10, 2020
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 PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants