Skip to content
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

build(angular): update angular to version 12 #20042

Closed
wants to merge 7 commits into from

Conversation

jordanpowell88
Copy link
Contributor

User facing changelog

Updated Angular version from 11 to 12

Additional details

  • We are currently unable to serve the current Angular app because the Typescript 4.2.4 is not supported in Angular version 11.

How has the user experience changed?

This should not effect the user experience as Angular CT has not been deployed yet

PR Tasks

  • [na] Have tests been added/updated?
  • [na] Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [na] Has a PR for user-facing changes been opened in cypress-documentation?
  • [na] Have API changes been updated in the type definitions?
  • [na] Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 3, 2022

Thanks for taking the time to open a PR!

@jordanpowell88 jordanpowell88 changed the base branch from develop to master February 3, 2022 19:46
@jordanpowell88 jordanpowell88 self-assigned this Feb 3, 2022
@jordanpowell88 jordanpowell88 added the npm: @cypress/angular @cypress/angular package issues label Feb 3, 2022
@cypress
Copy link

cypress bot commented Feb 3, 2022



Test summary

19167 6 218 0Flakiness 9


Run details

Project cypress
Status Failed
Commit 16a7cd7
Started Feb 10, 2022 4:24 PM
Ended Feb 10, 2022 4:36 PM
Duration 11:44 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Failures

Run group: 5x-driver-firefox (Linux, Firefox )
cypress/integration/e2e/e2e_cookies_spec.js Failed
1 e2e cookies spec > __Host- prefix > errors when __Host- cookie and path
Run group: 5x-driver-chrome (Linux, Chrome )
cypress/integration/e2e/e2e_cookies_spec.js Failed
1 e2e cookies spec > __Host- prefix > errors when __Host- cookie and secure:false
2 e2e cookies spec > __Secure- prefix > errors when __Secure- cookie secure:false
Run group: 5x-driver-chrome:beta (Linux, Chrome beta )
cypress/integration/e2e/e2e_cookies_spec.js Failed
1 e2e cookies spec > __Host- prefix > can set __Host- cookie
2 e2e cookies spec > __Host- prefix > errors when __Host- cookie and secure:false
3 e2e cookies spec > __Secure- prefix > can set __Secure- cookie

Flakiness

cypress/integration/e2e/e2e_cookies_spec.js Flakiness
1 e2e cookies spec > __Secure- prefix > errors when __Secure- cookie secure:false
2 e2e cookies spec > __Host- prefix > can set __Host- cookie
3 e2e cookies spec > __Secure- prefix > can set __Secure- cookie
4 e2e cookies spec > __Host- prefix > can set __Host- cookie
5 e2e cookies spec > __Secure- prefix > errors when __Secure- cookie secure:false
This comment includes only the first 5 flaky tests. See all 9 flaky tests in the Cypress Dashboard.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@@ -1,5 +1,4 @@
import { Component, OnInit } from '@angular/core'
import '@angular/material/prebuilt-themes/indigo-pink.css'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This import does not work this way in Angular. And was throwing a linting error

admah
admah previously approved these changes Feb 4, 2022
Copy link
Contributor

@admah admah left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@jordanpowell88 jordanpowell88 changed the title build(angular): Update angular to version 12 build(angular): update angular to version 12 Feb 10, 2022
@@ -1,134 +0,0 @@
const wp = require('@cypress/webpack-preprocessor')
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'm not sure why this file is in here as I don't see it being used anywhere

import * as path from 'path'
import { AngularWebpackPlugin } from '@ngtools/webpack'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need a way to use Webpack 5 now after updating to Angular v 12. This plugin has over 2 million weekly downloads and is essentially built to be an "Webpack 5.x plugin for the Angular Ahead-of-Time compiler"

Copy link
Contributor

Choose a reason for hiding this comment

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

It sounds like this will be a blocker for merging, right? What's the urgency like for Angular 12.x support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I am actively working on this locally. Once I find a solution locally, I will attempt to add these changes here. I will say that when we release Angular CT we need to support the most recent version of Angular which is actually 13. There is a large number of Angular users who use the most recent versions. Currently we are unable to upgrade this app here to 13 though as Angular requires a minimum Node version of 16.10 and we are using 16.5. My plan was to get to 12 and then create a separate PR to get to 13 because of that

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, great. Do you mind setting this to draft until it's read for a re-review?

@jordanpowell88 jordanpowell88 marked this pull request as draft February 17, 2022 14:22
@lmiller1990 lmiller1990 removed their request for review March 28, 2022 02:23
@jordanpowell88 jordanpowell88 deleted the update-angular-to-12 branch May 10, 2022 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm: @cypress/angular @cypress/angular package issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants