Skip to content

ci(docs-infra): build examples with Ivy - #28463

Closed
brandonroberts wants to merge 1 commit into
angular:masterfrom
brandonroberts:docs-examples-ivy
Closed

brandonroberts wants to merge 1 commit into
angular:masterfrom
brandonroberts:docs-examples-ivy

Conversation

@brandonroberts

@brandonroberts brandonroberts commented Jan 31, 2019 •

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This builds and runs the E2E tests for the AIO examples using ivy.

Known Issues:

  • Examples using angular-in-memory-web-api won't build. Most likely due to non-APF. Should a mix be supported?

@brandonroberts
brandonroberts requested review from a team January 31, 2019 05:39
@ngbot ngbot Bot added this to the needsTriage milestone Jan 31, 2019
@mary-poppins

Copy link
Copy Markdown

You can preview 473dff2 at https://pr28463-473dff2.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview ed56d95 at https://pr28463-ed56d95.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 9a72f1e at https://pr28463-9a72f1e.ngbuilds.io/.

@brandonroberts

brandonroberts commented Feb 1, 2019 •

Copy link
Copy Markdown
Contributor Author

Failing example E2E tests as of https://circleci.com/gh/angular/angular/182858:

  • /home/circleci/ng/aio/content/examples/ajs-quick-reference/ (multiple decorators, movie list route not rendering)
  • /home/circleci/ng/aio/content/examples/component-interaction/ (version value goes undefined)
  • /home/circleci/ng/aio/content/examples/lazy-loading-ngmodules/
  • /home/circleci/ng/aio/content/examples/ngmodules/
  • /home/circleci/ng/aio/content/examples/component-styles/ (failed content projection)
  • /home/circleci/ng/aio/content/examples/forms/
  • /home/circleci/ng/aio/content/examples/i18n/ (goog is undefined)
  • /home/circleci/ng/aio/content/examples/router/
  • /home/circleci/ng/aio/content/examples/upgrade-phonecat-2-hybrid (aot build fails)
  • /home/circleci/ng/aio/content/examples/ngmodule-faq/

Failing example E2E test using angular-in-memory-web-api (due to TODO):

  • /home/circleci/ng/aio/content/examples/dependency-injection/ (aot incompatible)
  • /home/circleci/ng/aio/content/examples/styleguide/
  • /home/circleci/ng/aio/content/examples/toh-pt6/
  • /home/circleci/ng/aio/content/examples/dependency-injection-in-action/

@mary-poppins

Copy link
Copy Markdown

You can preview f37351a at https://pr28463-f37351a.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview d43b0b2 at https://pr28463-d43b0b2.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 4bdecd1 at https://pr28463-4bdecd1.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 6e59f45 at https://pr28463-6e59f45.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 0e89204 at https://pr28463-0e89204.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 2378682 at https://pr28463-2378682.ngbuilds.io/.

@brandonroberts

brandonroberts commented Feb 4, 2019 •

Copy link
Copy Markdown
Contributor Author

Remaining E2E failures as of https://circleci.com/gh/angular/angular/186135

Runtime failures:

  • /home/circleci/ng/aio/content/examples/ajs-quick-reference/ (movie list route not rendering)
  • /home/circleci/ng/aio/content/examples/component-interaction/ (version value goes undefined when clicking Major button after clicking Minor button twice)
  • /home/circleci/ng/aio/content/examples/component-styles/ (failed content projection and applied styles)
  • /home/circleci/ng/aio/content/examples/i18n/
app.component.html:3 ERROR Error: Unable to find context associated with [object HTMLButtonElement]
    at loadLContext (core.js:5480)
    at loadLContextFromNode (core.js:5539)
    at getListeners (core.js:5567)
    at DebugElement__POST_R3__.get [as listeners] (core.js:22279)
    at DebugRenderer2.push.../../../tools/examples/shared/node_modules/@angular/core/fesm5/core.js.DebugRenderer2.listen (core.js:25045)
    at listenToElementOutputs (core.js:23002)
    at createViewNodes (core.js:23913)
    at callViewAction (core.js:24262)
    at execComponentViewsAction (core.js:24181)
    at createViewNodes (core.js:23974)

Build failures:

@ocombe

ocombe commented Feb 5, 2019

Copy link
Copy Markdown
Contributor

You can't run i18n code with ivy until this is resolved: https://angular-team.atlassian.net/browse/FW-1026
We need to polyfill the runtime service for now.

@mary-poppins

Copy link
Copy Markdown

You can preview ea55d46 at https://pr28463-ea55d46.ngbuilds.io/.

@brandonroberts
brandonroberts force-pushed the docs-examples-ivy branch 2 times, most recently from 39936aa to 2d02433 Compare February 5, 2019 19:10
@brandonroberts
brandonroberts force-pushed the docs-examples-ivy branch 3 times, most recently from 0739323 to 0517871 Compare February 8, 2019 18:02
@mary-poppins

Copy link
Copy Markdown

You can preview 98d3926 at https://pr28463-98d3926.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 0739323 at https://pr28463-0739323.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 0517871 at https://pr28463-0517871.ngbuilds.io/.

@brandonroberts brandonroberts added the target: major This PR is targeted for the next major release label Feb 8, 2019
@mary-poppins

Copy link
Copy Markdown

You can preview f514575 at https://pr28463-f514575.ngbuilds.io/.

@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

@IgorMinar IgorMinar 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.

thanks!

@IgorMinar IgorMinar 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 Feb 9, 2019
@brandonroberts

Copy link
Copy Markdown
Contributor Author

Caretaker note: #28592 should land before this one as it may need a rebase.

@mhevery mhevery closed this in 99e3a04 Feb 11, 2019
Comment thread .circleci/config.yml
- test_docs_examples
# Get the artifacts to publish from the build-npm-packages job
- test_docs_examples_ivy
# Get the artifacts to publish from the build-packages-dist job

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ooops!

}

if (ivy) {
shelljs.exec(`yarn --cwd ${SHARED_PATH} ivy-ngcc`);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, so this means that once you run examples with ivy, they will silently stay that way until you re-install node_modules/.
Let's hope people don't need to do this locally 😁


if (argv.ivy) {
log.push('');
log.push('Suites ignored due to breakage with Ivy:');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❤️

gkalpak pushed a commit to gkalpak/angular that referenced this pull request Feb 13, 2019
gkalpak pushed a commit to gkalpak/angular that referenced this pull request Feb 14, 2019
mhevery pushed a commit that referenced this pull request Feb 14, 2019
* ci(docs-infra): run docs examples tests in production mode (#28592)

PR Close #28592

* docs: remove quickstart example and copy tsconfig.1.json into TS config guide (#28592)

This example has long been replaced by the cli-quickstart, but was never deleted.

PR Close #28592

* docs: enable E2E test for setup example (#28592)

This guide is not being shown publicly, and its test is currently being ignored.
Instead of deleting this test and guide, it may be repurposed in the future for a local development guide.

PR Close #28592

* docs: ignore progression filenames from compilation (#28592)

PR Close #28592

* docs: remove unused StringSafeDatePipe from AngularJS Quick Ref example (#28592)

PR Close #28592

* docs: make parent finder functions compatible with AoT (#28592)

PR Close #28592

* docs: make toggleImage arguments optional in AngularJS quick reference (#28592)

PR Close #28592

* docs: add insert remove component to AppModule for animations example (#28592)

PR Close #28592

* docs: ignore component for app compilation for displaying data example (#28592)

PR Close #28592

* docs: ignore files from app compilation for ngmodule-faq example (#28592)

PR Close #28592

* docs: ignore initial components for app compilation in router example (#28592)

PR Close #28592

* docs: remove unused files in styleguide example (#28592)

PR Close #28592

* docs: make method arguments optional in template syntax example (#28592)

PR Close #28592

* docs: add more files to be ignored during app compilation (#28592)

PR Close #28592

* docs: run component-interaction and DI in JiT mode (#28592)

PR Close #28592

* docs: re-enable E2E tests for Http guide (#28592)

PR Close #28592

* ci(docs-infra): test docs examples with Ivy (#28463)

PR Close #28463

* fix(docs-infra): add progression files to exclude list for docs examples (#28650)

Also disables Http guide under Ivy tests with documented error

PR Close #28650

* fix(docs-infra): fix filtering in run-example-e2e.js (#28663)

PR Close #28663

* test(ivy): enable more docs examples e2e tests (#28688)

PR Close #28688
@kara kara added the comp: ivy label Feb 25, 2019
@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 effort2: days feature Label used to distinguish feature request from other issues risk: low target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants