Skip to content

feat: upgrade to v15 #2230

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

Merged
merged 9 commits into from
Aug 7, 2023
Merged

feat: upgrade to v15 #2230

merged 9 commits into from
Aug 7, 2023

Conversation

anandtiwary
Copy link
Contributor

@anandtiwary anandtiwary commented May 30, 2023

Description

Please include a summary of the change, motivation and context.

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #2230 (ca36b32) into main (a0e9f99) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2230      +/-   ##
==========================================
- Coverage   82.69%   82.69%   -0.01%     
==========================================
  Files         916      916              
  Lines       20421    20418       -3     
  Branches     3214     3214              
==========================================
- Hits        16888    16885       -3     
  Misses       3405     3405              
  Partials      128      128              
Files Changed Coverage Δ
...ects/components/src/checkbox/checkbox.component.ts 93.33% <ø> (ø)
projects/components/src/popover/popover.module.ts 100.00% <ø> (ø)
...ects/components/src/radio/radio-group.component.ts 72.72% <ø> (ø)
...nents/src/toggle-switch/toggle-switch.component.ts 87.50% <ø> (ø)
...rojects/components/src/checkbox/checkbox.module.ts 100.00% <100.00%> (ø)
projects/components/src/input/input.module.ts 100.00% <100.00%> (ø)
.../components/src/load-async/load-async.directive.ts 100.00% <100.00%> (ø)
...ponents/src/notification/notification.component.ts 80.95% <100.00%> (ø)
...components/src/notification/notification.module.ts 100.00% <100.00%> (ø)
...omponents/src/notification/notification.service.ts 89.65% <100.00%> (ø)
... and 10 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@anandtiwary anandtiwary marked this pull request as ready for review June 1, 2023 07:10
@anandtiwary anandtiwary requested a review from a team as a code owner June 1, 2023 07:10
@github-actions

This comment has been minimized.

@adisreyaj
Copy link
Contributor

adisreyaj commented Jun 1, 2023

Why not upgrade to v16 in the same flow?

@anandtiwary
Copy link
Contributor Author

That would require us to upgrade hyperdash-angular first. We may also have to migrate to material MDC.

@github-actions

This comment has been minimized.

@@ -20,6 +20,7 @@ import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/c
</ng-container>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.ShadowDom,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

@anandtiwary anandtiwary Jun 22, 2023

Choose a reason for hiding this comment

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

because it uses keyframes.

In v15, the Angular compiler prefixes @keyframes in CSS with the component's scope. 
This means that any TypeScript code that relies on keyframes names no longer works in v15. 
Update any such instances to: define keyframes programmatically, 
use global stylesheets, or change the component's view encapsulation. 
[Read further](https://angular.io/guide/update-to-version-15#v15-bc-03)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Exac
Copy link
Contributor

Exac commented Jun 21, 2023

My dev server unexpectedly quits when I run this. I ran

git checkout ng-15
git submodule update && npm i
npm run start

It took a few minutes to generate the bundle after running npm run start, and then crashed with the following in the console (on node v16.19.0):

src_app_settings_label-management_label-management-routing_module_ts.js                                 | label-management-label-management-routing-module                                                      |   3.56 kB | 
src_app_settings_reports_reports-routing_module_ts.js                                                   | reports-reports-routing-module                                                                        |   2.36 kB | 

Build at: 2023-06-21T05:15:56.459Z - Hash: 1b0cd4adf123258c - Time: 264997ms

Error: src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card-detail/emails-distribution/api-fraud-emails-distribution.component.ts (ApiFraudEmailsDistributionComponent template):13:90 - error TS2554: Expected 0-2 arguments, but got 3.

13               domainData.emailDomainAttributes.firstSeenTimestamp | htDisplayTimeAgo: '':this.domainAgeDateCoercer
                                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card-detail/emails-distribution/api-fraud-emails-distribution.component.ts:10:13
     10   template: `
                    ~
     11     <div class="emails-distribution">
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
     48     </div>
        ~~~~~~~~~~
     49   `,
        ~~~
    Error occurs in the template of component ApiFraudEmailsDistributionComponent.


Error: src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card.component.ts (DetectionCardComponent template):187:92 - error TS2554: Expected 0-2 arguments, but got 3.

187                 domainInfo.emailDomainAttributes.firstSeenTimestamp | htDisplayTimeAgo: '':this.domainAgeDateCoercer
                                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card.component.ts:21:13
     21   template: `
                    ~
     22     <div class="detection-card" *ngIf="this.fraudIncident">
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
    228     </div>
        ~~~~~~~~~~
    229   `
        ~~~
    Error occurs in the template of component DetectionCardComponent.


Error: src/app/api-protection/api-fraud/api-fraud-page/components/email-domain-display/email-domain-display.component.ts (EmailDomainDisplayComponent template):32:77 - error TS2554: Expected 0-2 arguments, but got 3.

32               {{ this.attributes?.firstSeenTimestamp | htDisplayTimeAgo: '':this.domainAgeDateCoercer }}</span
                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/api-protection/api-fraud/api-fraud-page/components/email-domain-display/email-domain-display.component.ts:11:13
     11   template: `
                    ~
     12     <div
        ~~~~~~~~
    ... 
     48     </div>
        ~~~~~~~~~~
     49   `,
        ~~~
    Error occurs in the template of component EmailDomainDisplayComponent.




** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✖ Failed to compile.
⠋ Generating browser application bundles...
<--- Last few GCs --->

[64789:0x148008000]   287808 ms: Mark-sweep 3989.1 (4132.6) -> 3974.3 (4133.9) MB, 1830.0 / 0.0 ms  (average mu = 0.105, current mu = 0.032) allocation failure scavenge might not succeed
[64789:0x148008000]   292285 ms: Mark-sweep 3991.6 (4135.0) -> 3970.8 (4135.4) MB, 3821.8 / 0.0 ms  (average mu = 0.134, current mu = 0.146) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1025b31dc node::Abort() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 2: 0x1025b33cc node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 3: 0x1026f6040 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 4: 0x1026f6000 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 5: 0x10287952c v8::internal::Heap::GarbageCollectionReasonToString(v8::internal::GarbageCollectionReason) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 6: 0x10287cb3c v8::internal::Heap::CollectSharedGarbage(v8::internal::GarbageCollectionReason) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 7: 0x102879cf4 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 8: 0x10287761c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 9: 0x102883394 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
10: 0x102883428 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
11: 0x1028562bc v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
12: 0x102b8e480 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
13: 0x102ea192c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
14: 0x102e350e8 Builtins_StringSubstring [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
15: 0x10849ec2c 
16: 0x1076bb720 
17: 0x10a436244 
18: 0x1084e1300 
19: 0x102ec1898 Builtins_ArrayReduce [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
20: 0x1084dc9d0 
21: 0x1085787d4 
22: 0x10857321c 
23: 0x102ee9a18 Builtins_PromiseFulfillReactionJob [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
24: 0x102e56f94 Builtins_RunMicrotasks [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
25: 0x102e33284 Builtins_JSRunMicrotasksEntry [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
26: 0x102805ccc v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
27: 0x102806100 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
28: 0x1028061ec v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
29: 0x102828e28 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
30: 0x1028296bc v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
31: 0x102e37c94 Builtins_CallApiCallback [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
32: 0x10864babc 
33: 0x102e333ac Builtins_JSEntryTrampoline [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
34: 0x102e33044 Builtins_JSEntry [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
35: 0x102805d04 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
36: 0x102805398 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
37: 0x102712a24 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
38: 0x102500d00 node::InternalCallbackScope::Close() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
39: 0x1025007c4 node::InternalCallbackScope::~InternalCallbackScope() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
40: 0x10255bf2c node::Environment::RunTimers(uv_timer_s*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
41: 0x102e14484 uv__run_timers [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
42: 0x102e174c4 uv_run [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
43: 0x1025016d4 node::SpinEventLoop(node::Environment*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
44: 0x1025ed138 node::NodeMainInstance::Run(int*, node::Environment*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
45: 0x1025ece18 node::NodeMainInstance::Run() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
46: 0x102584994 node::Start(int, char**) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
47: 0x18b997f28 start [/usr/lib/dyld]
[1]    64788 abort      npm run start
➜  traceable-ui git:(ng-15) git status
On branch ng-15
Your branch is up to date with 'origin/ng-15'.

nothing to commit, working tree clean
➜  traceable-ui git:(ng-15) 

@anandtiwary
Copy link
Contributor Author

My dev server unexpectedly quits when I run this. I ran

git checkout ng-15
git submodule update && npm i
npm run start

It took a few minutes to generate the bundle after running npm run start, and then crashed with the following in the console (on node v16.19.0):

src_app_settings_label-management_label-management-routing_module_ts.js                                 | label-management-label-management-routing-module                                                      |   3.56 kB | 
src_app_settings_reports_reports-routing_module_ts.js                                                   | reports-reports-routing-module                                                                        |   2.36 kB | 

Build at: 2023-06-21T05:15:56.459Z - Hash: 1b0cd4adf123258c - Time: 264997ms

Error: src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card-detail/emails-distribution/api-fraud-emails-distribution.component.ts (ApiFraudEmailsDistributionComponent template):13:90 - error TS2554: Expected 0-2 arguments, but got 3.

13               domainData.emailDomainAttributes.firstSeenTimestamp | htDisplayTimeAgo: '':this.domainAgeDateCoercer
                                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card-detail/emails-distribution/api-fraud-emails-distribution.component.ts:10:13
     10   template: `
                    ~
     11     <div class="emails-distribution">
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
     48     </div>
        ~~~~~~~~~~
     49   `,
        ~~~
    Error occurs in the template of component ApiFraudEmailsDistributionComponent.


Error: src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card.component.ts (DetectionCardComponent template):187:92 - error TS2554: Expected 0-2 arguments, but got 3.

187                 domainInfo.emailDomainAttributes.firstSeenTimestamp | htDisplayTimeAgo: '':this.domainAgeDateCoercer
                                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/api-protection/api-fraud/api-fraud-page/cards/detection-card/detection-card.component.ts:21:13
     21   template: `
                    ~
     22     <div class="detection-card" *ngIf="this.fraudIncident">
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... 
    228     </div>
        ~~~~~~~~~~
    229   `
        ~~~
    Error occurs in the template of component DetectionCardComponent.


Error: src/app/api-protection/api-fraud/api-fraud-page/components/email-domain-display/email-domain-display.component.ts (EmailDomainDisplayComponent template):32:77 - error TS2554: Expected 0-2 arguments, but got 3.

32               {{ this.attributes?.firstSeenTimestamp | htDisplayTimeAgo: '':this.domainAgeDateCoercer }}</span
                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/api-protection/api-fraud/api-fraud-page/components/email-domain-display/email-domain-display.component.ts:11:13
     11   template: `
                    ~
     12     <div
        ~~~~~~~~
    ... 
     48     </div>
        ~~~~~~~~~~
     49   `,
        ~~~
    Error occurs in the template of component EmailDomainDisplayComponent.




** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✖ Failed to compile.
⠋ Generating browser application bundles...
<--- Last few GCs --->

[64789:0x148008000]   287808 ms: Mark-sweep 3989.1 (4132.6) -> 3974.3 (4133.9) MB, 1830.0 / 0.0 ms  (average mu = 0.105, current mu = 0.032) allocation failure scavenge might not succeed
[64789:0x148008000]   292285 ms: Mark-sweep 3991.6 (4135.0) -> 3970.8 (4135.4) MB, 3821.8 / 0.0 ms  (average mu = 0.134, current mu = 0.146) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1025b31dc node::Abort() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 2: 0x1025b33cc node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 3: 0x1026f6040 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 4: 0x1026f6000 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 5: 0x10287952c v8::internal::Heap::GarbageCollectionReasonToString(v8::internal::GarbageCollectionReason) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 6: 0x10287cb3c v8::internal::Heap::CollectSharedGarbage(v8::internal::GarbageCollectionReason) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 7: 0x102879cf4 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 8: 0x10287761c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 9: 0x102883394 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
10: 0x102883428 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
11: 0x1028562bc v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
12: 0x102b8e480 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
13: 0x102ea192c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
14: 0x102e350e8 Builtins_StringSubstring [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
15: 0x10849ec2c 
16: 0x1076bb720 
17: 0x10a436244 
18: 0x1084e1300 
19: 0x102ec1898 Builtins_ArrayReduce [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
20: 0x1084dc9d0 
21: 0x1085787d4 
22: 0x10857321c 
23: 0x102ee9a18 Builtins_PromiseFulfillReactionJob [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
24: 0x102e56f94 Builtins_RunMicrotasks [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
25: 0x102e33284 Builtins_JSRunMicrotasksEntry [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
26: 0x102805ccc v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
27: 0x102806100 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
28: 0x1028061ec v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
29: 0x102828e28 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
30: 0x1028296bc v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
31: 0x102e37c94 Builtins_CallApiCallback [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
32: 0x10864babc 
33: 0x102e333ac Builtins_JSEntryTrampoline [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
34: 0x102e33044 Builtins_JSEntry [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
35: 0x102805d04 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
36: 0x102805398 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
37: 0x102712a24 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
38: 0x102500d00 node::InternalCallbackScope::Close() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
39: 0x1025007c4 node::InternalCallbackScope::~InternalCallbackScope() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
40: 0x10255bf2c node::Environment::RunTimers(uv_timer_s*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
41: 0x102e14484 uv__run_timers [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
42: 0x102e174c4 uv_run [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
43: 0x1025016d4 node::SpinEventLoop(node::Environment*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
44: 0x1025ed138 node::NodeMainInstance::Run(int*, node::Environment*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
45: 0x1025ece18 node::NodeMainInstance::Run() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
46: 0x102584994 node::Start(int, char**) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
47: 0x18b997f28 start [/usr/lib/dyld]
[1]    64788 abort      npm run start
➜  traceable-ui git:(ng-15) git status
On branch ng-15
Your branch is up to date with 'origin/ng-15'.

nothing to commit, working tree clean
➜  traceable-ui git:(ng-15) 

Weird. Is anyone else facing this issue?

@anandtiwary anandtiwary requested a review from a team June 21, 2023 05:44
@Exac
Copy link
Contributor

Exac commented Jun 21, 2023

Weird. Is anyone else facing this issue?

Okay, so this is the result of running git submodule update instead of checking out the ng-15 branch in bother traceable-ui and ht-ui.

@Exac
Copy link
Contributor

Exac commented Jun 21, 2023

For anyone else getting an OOM error, increase the memory limit in package.json to 8192.

Here was my error:

src_app_settings_label-management_label-management-routing_module_ts.js                                 | label-management-label-management-routing-module                                                      |   3.56 kB | 
src_app_settings_reports_reports-routing_module_ts.js                                                   | reports-reports-routing-module                                                                        |   2.36 kB | 

Build at: 2023-06-21T05:50:05.843Z - Hash: 202c975fccccaa83 - Time: 188939ms

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✔ Compiled successfully.
⠧ Generating browser application bundles (phase: building)...
<--- Last few GCs --->

[72787:0x140008000]   243904 ms: Scavenge 3976.0 (4127.9) -> 3962.1 (4127.9) MB, 6.0 / 0.0 ms  (average mu = 0.214, current mu = 0.076) allocation failure 
[72787:0x140008000]   245550 ms: Mark-sweep 3976.8 (4128.6) -> 3961.3 (4129.6) MB, 1570.1 / 0.0 ms  (average mu = 0.163, current mu = 0.108) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1025571dc node::Abort() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 2: 0x1025573cc node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 3: 0x10269a040 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 4: 0x10269a000 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 5: 0x10281d52c v8::internal::Heap::GarbageCollectionReasonToString(v8::internal::GarbageCollectionReason) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 6: 0x102820b3c v8::internal::Heap::CollectSharedGarbage(v8::internal::GarbageCollectionReason) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 7: 0x10281dcf4 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 8: 0x10281b61c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
 9: 0x102827394 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
10: 0x102827428 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
11: 0x1027fa2bc v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
12: 0x102b32480 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
13: 0x102e4592c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
14: 0x108b37664 
15: 0x1097164dc 
16: 0x107b8e9a8 
17: 0x107b63eb0 
18: 0x108a257a4 
19: 0x108ab0788 
20: 0x107ec8198 
21: 0x1085aef18 
22: 0x1085ae4e4 
23: 0x109c8d8c0 
24: 0x108b09ef8 
25: 0x1085aeac4 
26: 0x109c8d8c0 
27: 0x108b09ef8 
28: 0x1085aeac4 
29: 0x108fa3438 
30: 0x1076274b4 
31: 0x108572550 
32: 0x1099d0e98 
33: 0x1084cf9e0 
34: 0x1085729e4 
35: 0x1099d0e98 
36: 0x109d8d078 
37: 0x107ceb490 
38: 0x109d8d078 
39: 0x107db59dc 
40: 0x1085725cc 
41: 0x1099d0e98 
42: 0x1084cfd18 
43: 0x1085729e4 
44: 0x10805efb4 
45: 0x108571ac0 
46: 0x1099d0e98 
47: 0x109d8d19c 
48: 0x107cee070 
49: 0x1085727f0 
50: 0x1099d0e98 
51: 0x108a2ba30 
52: 0x1095e51c4 
53: 0x1084c85a0 
54: 0x107b62b20 
55: 0x10917a278 
56: 0x109c5546c 
57: 0x109d4a460 
58: 0x107fd384c 
59: 0x102e08bb4 Builtins_AsyncFunctionAwaitResolveClosure [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
60: 0x102e8da18 Builtins_PromiseFulfillReactionJob [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
61: 0x102dfaf94 Builtins_RunMicrotasks [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
62: 0x102dd7284 Builtins_JSRunMicrotasksEntry [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
63: 0x1027a9ccc v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
64: 0x1027aa100 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
65: 0x1027aa1ec v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
66: 0x1027cce28 v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
67: 0x1027cd6bc v8::internal::MicrotaskQueue::PerformCheckpoint(v8::Isolate*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
68: 0x102ddbc94 Builtins_CallApiCallback [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
69: 0x108bae320 
70: 0x102dd73ac Builtins_JSEntryTrampoline [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
71: 0x102dd7044 Builtins_JSEntry [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
72: 0x1027a9d04 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
73: 0x1027a9398 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
74: 0x1026b6a24 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
75: 0x1024a4d00 node::InternalCallbackScope::Close() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
76: 0x1024a4fc8 node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
77: 0x1024a52b0 node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
78: 0x1024feab0 node::Environment::CheckImmediate(uv_check_s*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
79: 0x102dc1850 uv__run_check [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
80: 0x102dbb5ac uv_run [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
81: 0x1024a56d4 node::SpinEventLoop(node::Environment*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
82: 0x102591138 node::NodeMainInstance::Run(int*, node::Environment*) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
83: 0x102590e18 node::NodeMainInstance::Run() [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
84: 0x102528994 node::Start(int, char**) [/Users/thomas/.nvm/versions/node/v16.19.0/bin/node]
85: 0x18b997f28 start [/usr/lib/dyld]
[1]    72781 abort      npm run start
➜  traceable-ui git:(ng-15) ✗ 

@Exac Exac requested a review from a team June 21, 2023 07:40
@Exac Exac self-requested a review July 7, 2023 07:38
jake-bassett
jake-bassett previously approved these changes Jul 7, 2023
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Contributor

@itssharmasandeep itssharmasandeep left a comment

Choose a reason for hiding this comment

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

LGTM

@anandtiwary anandtiwary merged commit 22428f3 into main Aug 7, 2023
@anandtiwary anandtiwary deleted the ng-15 branch August 7, 2023 06:58
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Unit Test Results

       4 files  ±0     309 suites  ±0   46m 53s ⏱️ + 1m 52s
1 120 tests ±0  1 120 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
1 130 runs  ±0  1 130 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 22428f3. ± Comparison against base commit a0e9f99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants