Skip to content

test(aio): fix running docs examples against local builds - #18520

Merged
vicb merged 1 commit into
angular:masterfrom
gkalpak:test-aio-fix-e2e-local
Aug 9, 2017
Merged

vicb merged 1 commit into
angular:masterfrom
gkalpak:test-aio-fix-e2e-local

Conversation

@gkalpak

@gkalpak gkalpak commented Aug 4, 2017 •

Copy link
Copy Markdown
Member

This commit also updates the version of @angular/cli used for docs examples.

The previous (transient) dependency @ngtools/webpack was not compatible with @angular/compiler-cli@>=5 and was breaking when running against the local builds (currently at 5.0.0-beta.2).

The version of @ngtools/webpack used by the latest @angular/cli version is compatible with @angular/compiler-cli@5.

@gkalpak gkalpak added comp: aio area: build & ci Related the build and CI infrastructure of the project state: WIP type: bug/fix labels Aug 4, 2017
@gkalpak

gkalpak commented Aug 4, 2017

Copy link
Copy Markdown
Member Author

BTW, once this is fixed, one can run the docs examples with the local builds with:

# Build the @angular packages
cd angular
npm install && ./builds.sh

# Install the examples' boilerplate (including dependencies)
cd aio
yarn && yarn boilerplate:add -- --local

# Build and serve an example locally
cd content/examples/<example-name>
npm start

@mary-poppins

Copy link
Copy Markdown

You can preview 22c699b at https://pr18520-22c699b.ngbuilds.io/.

@gkalpak gkalpak added action: review The PR is still awaiting reviews from at least one requested reviewer and removed state: WIP labels Aug 4, 2017
@mary-poppins

Copy link
Copy Markdown

You can preview 77458ed at https://pr18520-77458ed.ngbuilds.io/.

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.

Did someone move the tsc-wrapped folder?

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.

Ahah!
619e625

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.

Why this change?
Does it not work on Windows?
The idea of symlinking meant that you didn't need to keep running add-boilerplate all the time, while working on the source.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I can't try on Windows, but it didn't work on Ubuntu either. I was getting errors from files in dist/packages-dist/... that it couldn't find @angular/core for example. Seems like the double symlinking (packages-dist --> shared/node_modules --> /node_modules) threw it off.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe we could get by, by copying the symlinks (instead of re-symlinking) from shared/node_modules/@angular if in local mode.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, that wouldn't actually work, because we symlink to the shared/node_modules/ directory as a whole 😞

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So, I confirmed the symlinking fails on Travis too, so it was not a local issue in my Ubuntu VM.
Sticking with copying (and having to re-add the boilerplate if you re-build Angular packages).

Comment thread aio/tools/examples/run-example-e2e.js Outdated

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.

Good spot.

@gkalpak
gkalpak force-pushed the test-aio-fix-e2e-local branch from 77458ed to da6f003 Compare August 4, 2017 08:59
@mary-poppins

Copy link
Copy Markdown

You can preview da6f003 at https://pr18520-da6f003.ngbuilds.io/.

@gkalpak
gkalpak force-pushed the test-aio-fix-e2e-local branch from da6f003 to 74e5e6f Compare August 4, 2017 09:45
@mary-poppins

Copy link
Copy Markdown

You can preview 74e5e6f at https://pr18520-74e5e6f.ngbuilds.io/.

@gkalpak
gkalpak force-pushed the test-aio-fix-e2e-local branch from 74e5e6f to 48c9cd3 Compare August 4, 2017 10:39
This commit also updates the version of `@angular/cli` used for docs examples.
The previous (transient) dependency `@ngtools/webpack` was not compatible with
`@angular/compiler-cli@>=5` and was breaking when running against the local
builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by
the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
@gkalpak

gkalpak commented Aug 4, 2017

Copy link
Copy Markdown
Member Author

Updated the example-boilerplate.js tests and ensured they are run on CI.

@gkalpak gkalpak changed the title test(aio): fix running against local builds test(aio): fix running docs examples against local builds Aug 4, 2017
@gkalpak
gkalpak force-pushed the test-aio-fix-e2e-local branch from 48c9cd3 to 74bc809 Compare August 4, 2017 10:42
@mary-poppins

Copy link
Copy Markdown

You can preview 48c9cd3 at https://pr18520-48c9cd3.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 74bc809 at https://pr18520-74bc809.ngbuilds.io/.

@gkalpak gkalpak added target: patch This PR is targeted for the next patch release target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Aug 9, 2017
@IgorMinar IgorMinar added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 9, 2017
@vicb
vicb merged commit 7f2037f into angular:master Aug 9, 2017
vicb pushed a commit that referenced this pull request Aug 9, 2017
This commit also updates the version of `@angular/cli` used for docs examples.
The previous (transient) dependency `@ngtools/webpack` was not compatible with
`@angular/compiler-cli@>=5` and was breaking when running against the local
builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by
the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
gkalpak added a commit to gkalpak/angular that referenced this pull request Aug 9, 2017
PR angular#18520 was accidentally merged into 4.3.x, which uses a different
location for building `tsc-wrapped`. This commit reverts the changes
from angular#18520 that were not compatible with 4.3.x.
@gkalpak
gkalpak deleted the test-aio-fix-e2e-local branch August 10, 2017 01:04
vicb pushed a commit that referenced this pull request Aug 10, 2017
PR #18520 was accidentally merged into 4.3.x, which uses a different
location for building `tsc-wrapped`. This commit reverts the changes
from #18520 that were not compatible with 4.3.x.
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
)

This commit also updates the version of `@angular/cli` used for docs examples.
The previous (transient) dependency `@ngtools/webpack` was not compatible with
`@angular/compiler-cli@>=5` and was breaking when running against the local
builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by
the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 26, 2017
)

This commit also updates the version of `@angular/cli` used for docs examples.
The previous (transient) dependency `@ngtools/webpack` was not compatible with
`@angular/compiler-cli@>=5` and was breaking when running against the local
builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by
the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
)

This commit also updates the version of `@angular/cli` used for docs examples.
The previous (transient) dependency `@ngtools/webpack` was not compatible with
`@angular/compiler-cli@>=5` and was breaking when running against the local
builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by
the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
@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 12, 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 area: build & ci Related the build and CI infrastructure of the project cla: yes target: major This PR is targeted for the next major release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants