Skip to content

Cancel build of outdated federation artifact builds when new bundles are already built #971

@dr460nf1r3

Description

@dr460nf1r3

For which library do you have a feature request?

native-federation

Information

Ongoing builds should be stopped when new builds are already done. This prevents a) wasting resources, b) chained and unnecessary page reloads.

This is especially critical because of this unresolved issue, which is consequently ignored #559.

Consider the following log output:

 INFO  [Federation SSE] Event 'federation-rebuild-complete' broadcast to 1 clients
 INFO  [Federation SSE] Client disconnected. Active connections: 0
Initial chunk files   | Names     |  Raw size
main.js               | main      | 288 bytes | 

Lazy chunk files      | Names     |  Raw size
bootstrap-QDGD4Y4U.js | bootstrap | 621.94 kB | 

Application bundle generation complete. [5.890 seconds]

Page reload sent to client(s).

 INFO  Building federation artefacts
 INFO  [Federation SSE] Client connected. Active connections: 1
Initial chunk files   | Names     |  Raw size
main.js               | main      | 288 bytes | 

Lazy chunk files      | Names     |  Raw size
bootstrap-HXHSLSBS.js | bootstrap | 621.94 kB | 

Application bundle generation complete. [2.585 seconds]

Page reload sent to client(s).

 INFO  Building federation artefacts
Initial chunk files   | Names     |  Raw size
main.js               | main      | 288 bytes | 

Lazy chunk files      | Names     |  Raw size
bootstrap-QDGD4Y4U.js | bootstrap | 621.94 kB | 

Application bundle generation complete. [1.334 seconds]

Page reload sent to client(s).
 INFO  Building federation artefacts
Initial chunk files   | Names     |  Raw size
main.js               | main      | 288 bytes | 

Lazy chunk files      | Names     |  Raw size
bootstrap-HXHSLSBS.js | bootstrap | 621.94 kB | 

Application bundle generation complete. [34.011 seconds]

Page reload sent to client(s).
 INFO  Building federation artefacts
 INFO  Done!
 INFO  [Federation SSE] Event 'federation-rebuild-complete' broadcast to 1 clients
 INFO  [Federation SSE] Client disconnected. Active connections: 0
 INFO  Done!
 INFO  [Federation SSE] Client connected. Active connections: 1
 INFO  Done!
 INFO  [Federation SSE] Event 'federation-rebuild-complete' broadcast to 1 clients
 INFO  [Federation SSE] Client disconnected. Active connections: 0
 INFO  Done!
 INFO  [Federation SSE] Client connected. Active connections: 1
 INFO  Done!
 INFO  [Federation SSE] Event 'federation-rebuild-complete' broadcast to 1 clients
 INFO  [Federation SSE] Client disconnected. Active connections: 0
 INFO  [Federation SSE] Client connected. Active connections: 1

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions