Repository navigation
π¦οΈ(docker) keep the yarn cache out of the node images - #2992
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. WalkthroughDocker dependency-install steps now mount Yarnβs download cache as a locked BuildKit cache. Existing install commands and their frozen-lockfile and production options remain unchanged. The Unreleased changelog notes that the Yarn cache is kept out of Node images. Estimated code review effort: 2 (Simple) | ~8 minutes Suggested reviewers: Merge Risk:
|
b465909 to
a1723b8
Compare
a1723b8 to
63be438
Compare
yarn 1 keeps every downloaded tarball in /usr/local/share/.cache/yarn and nothing removed it, so each yarn install layer carried a second copy of the dependencies: 4.2 GB in the frontend-development image, close to 1 GB in the y-provider and yhub ones, and the y-provider production image shipped it too. The installs now use a BuildKit cache mount, as the backend image already does for uv: the cache stays out of the layers and is still reused between local builds. It is locked because compose builds the images in parallel and concurrent yarn 1 installs can corrupt a shared cache. frontend-development goes from 9.25 GB to 2.63 GB, y-provider-development from 2.28 GB to 753 MB, yhub-development from 2.19 GB to 814 MB and the y-provider production image from 812 MB to 463 MB. Signed-off-by: Manuel Raynaud <[email protected]>
63be438 to
256090e
Compare
Added - β¨(yhub) expose whether valkey accepts writes as a metric #3035 - β¨(yhub) size and bound the compute pool: threads, queue, heap per thread #3040 - β¨(frontend) paste a link to a doc on a text to make it an interlink #3004 - π§(backend) make NUM_PROXIES configurable for the throttles #3005 Changed - π¦οΈ(docker) keep the yarn cache out of the node images #2992 - π§(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872 - β‘οΈ(backend) probe the celery worker with heartbeat files, not inspect ping #2956 - π(frontend) redesign offline error page #2808 - π(frontend) allow asking for access from a sub-document page #2994 - ποΈ(backend) require an editor access on the tree to create a child document, a link definition alone is not enough anymore #3031 Fixed - π(ci) scan on the trivy label in a workflow of its own, adding a label hid the required docker checks #3064 - π(frontend) keep the column layout when uploading a file in a column #3010 - π(frontend) resume the analysis of an image nested in a column #3010 - π(frontend) stop the right panel from covering the doc header actions #3037 - β (frontend) fix act warnings in the tests and fail on them #2983 - ποΈ(backend) never lower an existing role when accepting a request #2982 - π(backend) delete the access requests a role given another way covers #2982 - ποΈ(backend) delete the stored access requests a role already covers #2982 - π(frontend) show an error when approving an access request fails #2982 - ποΈ(backend) refuse to change the email of an invitation #2986 - π(backend) count the ancestors in the rights on invitations #2986 - ποΈ(backend) only let owners update or delete an owner invitation #2986 - π(frontend) follow the abilities of an invitation in the share dialog #2986 - π(frontend) keep comments on inline nodes after a reload #2898 - π(frontend) let the checkboxes of the tree root modals be unchecked #3015 - ποΈ(backend) match emails in a single normalized form #3017 - π(backend) ask for access to the top parent doc from a sub-document #2994 - ποΈ(backend) require the owner role to move a document out of its tree #2978 - π(backend) speed up the reconciliation admin with user autocompletes #3013 - π(frontend) show right-to-left text from the right in the editor #2919 - π(yhub) report unready when valkey only accepts reads #3035 - π(yhub) restart when valkey turns read-only after a failover #3035 - π(frontend) hide the sub-doc creation entries without children_create #3031 - ποΈ(backend) duplicate a sub doc in its parent only with rights on it #2979 - π(frontend) add the copy of a sub doc to the tree only if it lands there #2979 - π(backend) name users without an email instead of returning a 500 #2943 - π(frontend) show an error page when the current user cannot be loaded #2943 - π(frontend) pick a mention with a click in the comments sidebar #3055 - π(backend) stop throttling the config endpoint #3005 - π(backend) throttle anonymous users per browser, not per IP address #3005 Signed-off-by: Manuel Raynaud <[email protected]>
Added - β¨(yhub) expose whether valkey accepts writes as a metric #3035 - β¨(yhub) size and bound the compute pool: threads, queue, heap per thread #3040 - β¨(frontend) paste a link to a doc on a text to make it an interlink #3004 - π§(backend) make NUM_PROXIES configurable for the throttles #3005 Changed - π¦οΈ(docker) keep the yarn cache out of the node images #2992 - π§(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872 - β‘οΈ(backend) probe the celery worker with heartbeat files, not inspect ping #2956 - π(frontend) redesign offline error page #2808 - π(frontend) allow asking for access from a sub-document page #2994 - ποΈ(backend) require an editor access on the tree to create a child document, a link definition alone is not enough anymore #3031 Fixed - π(ci) scan on the trivy label in a workflow of its own, adding a label hid the required docker checks #3064 - π(frontend) keep the column layout when uploading a file in a column #3010 - π(frontend) resume the analysis of an image nested in a column #3010 - π(frontend) stop the right panel from covering the doc header actions #3037 - β (frontend) fix act warnings in the tests and fail on them #2983 - ποΈ(backend) never lower an existing role when accepting a request #2982 - π(backend) delete the access requests a role given another way covers #2982 - ποΈ(backend) delete the stored access requests a role already covers #2982 - π(frontend) show an error when approving an access request fails #2982 - ποΈ(backend) refuse to change the email of an invitation #2986 - π(backend) count the ancestors in the rights on invitations #2986 - ποΈ(backend) only let owners update or delete an owner invitation #2986 - π(frontend) follow the abilities of an invitation in the share dialog #2986 - π(frontend) keep comments on inline nodes after a reload #2898 - π(frontend) let the checkboxes of the tree root modals be unchecked #3015 - ποΈ(backend) match emails in a single normalized form #3017 - π(backend) ask for access to the top parent doc from a sub-document #2994 - ποΈ(backend) require the owner role to move a document out of its tree #2978 - π(backend) speed up the reconciliation admin with user autocompletes #3013 - π(frontend) show right-to-left text from the right in the editor #2919 - π(yhub) report unready when valkey only accepts reads #3035 - π(yhub) restart when valkey turns read-only after a failover #3035 - π(frontend) hide the sub-doc creation entries without children_create #3031 - ποΈ(backend) duplicate a sub doc in its parent only with rights on it #2979 - π(frontend) add the copy of a sub doc to the tree only if it lands there #2979 - π(backend) name users without an email instead of returning a 500 #2943 - π(frontend) show an error page when the current user cannot be loaded #2943 - π(frontend) pick a mention with a click in the comments sidebar #3055 - π(backend) stop throttling the config endpoint #3005 - π(backend) throttle anonymous users per browser, not per IP address #3005 Signed-off-by: Manuel Raynaud <[email protected]>
Added - β¨(yhub) expose whether valkey accepts writes as a metric #3035 - β¨(yhub) size and bound the compute pool: threads, queue, heap per thread #3040 - β¨(frontend) paste a link to a doc on a text to make it an interlink #3004 - π§(backend) make NUM_PROXIES configurable for the throttles #3005 Changed - π¦οΈ(docker) keep the yarn cache out of the node images #2992 - π§(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872 - β‘οΈ(backend) probe the celery worker with heartbeat files, not inspect ping #2956 - π(frontend) redesign offline error page #2808 - π(frontend) allow asking for access from a sub-document page #2994 - ποΈ(backend) require an editor access on the tree to create a child document, a link definition alone is not enough anymore #3031 Fixed - π(ci) scan on the trivy label in a workflow of its own, adding a label hid the required docker checks #3064 - π(frontend) keep the column layout when uploading a file in a column #3010 - π(frontend) resume the analysis of an image nested in a column #3010 - π(frontend) stop the right panel from covering the doc header actions #3037 - β (frontend) fix act warnings in the tests and fail on them #2983 - ποΈ(backend) never lower an existing role when accepting a request #2982 - π(backend) delete the access requests a role given another way covers #2982 - ποΈ(backend) delete the stored access requests a role already covers #2982 - π(frontend) show an error when approving an access request fails #2982 - ποΈ(backend) refuse to change the email of an invitation #2986 - π(backend) count the ancestors in the rights on invitations #2986 - ποΈ(backend) only let owners update or delete an owner invitation #2986 - π(frontend) follow the abilities of an invitation in the share dialog #2986 - π(frontend) keep comments on inline nodes after a reload #2898 - π(frontend) let the checkboxes of the tree root modals be unchecked #3015 - ποΈ(backend) match emails in a single normalized form #3017 - π(backend) ask for access to the top parent doc from a sub-document #2994 - ποΈ(backend) require the owner role to move a document out of its tree #2978 - π(backend) speed up the reconciliation admin with user autocompletes #3013 - π(frontend) show right-to-left text from the right in the editor #2919 - π(yhub) report unready when valkey only accepts reads #3035 - π(yhub) restart when valkey turns read-only after a failover #3035 - π(frontend) hide the sub-doc creation entries without children_create #3031 - ποΈ(backend) duplicate a sub doc in its parent only with rights on it #2979 - π(frontend) add the copy of a sub doc to the tree only if it lands there #2979 - π(backend) name users without an email instead of returning a 500 #2943 - π(frontend) show an error page when the current user cannot be loaded #2943 - π(frontend) pick a mention with a click in the comments sidebar #3055 - π(backend) stop throttling the config endpoint #3005 - π(backend) throttle anonymous users per browser, not per IP address #3005 Signed-off-by: Manuel Raynaud <[email protected]>
Added - β¨(yhub) expose whether valkey accepts writes as a metric #3035 - β¨(yhub) size and bound the compute pool: threads, queue, heap per thread #3040 - β¨(frontend) paste a link to a doc on a text to make it an interlink #3004 - π§(backend) make NUM_PROXIES configurable for the throttles #3005 Changed - π¦οΈ(docker) keep the yarn cache out of the node images #2992 - π§(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872 - β‘οΈ(backend) probe the celery worker with heartbeat files, not inspect ping #2956 - π(frontend) redesign offline error page #2808 - π(frontend) allow asking for access from a sub-document page #2994 - ποΈ(backend) require an editor access on the tree to create a child document, a link definition alone is not enough anymore #3031 Fixed - π(ci) scan on the trivy label in a workflow of its own, adding a label hid the required docker checks #3064 - π(frontend) keep the column layout when uploading a file in a column #3010 - π(frontend) resume the analysis of an image nested in a column #3010 - π(frontend) stop the right panel from covering the doc header actions #3037 - β (frontend) fix act warnings in the tests and fail on them #2983 - ποΈ(backend) never lower an existing role when accepting a request #2982 - π(backend) delete the access requests a role given another way covers #2982 - ποΈ(backend) delete the stored access requests a role already covers #2982 - π(frontend) show an error when approving an access request fails #2982 - ποΈ(backend) refuse to change the email of an invitation #2986 - π(backend) count the ancestors in the rights on invitations #2986 - ποΈ(backend) only let owners update or delete an owner invitation #2986 - π(frontend) follow the abilities of an invitation in the share dialog #2986 - π(frontend) keep comments on inline nodes after a reload #2898 - π(frontend) let the checkboxes of the tree root modals be unchecked #3015 - ποΈ(backend) match emails in a single normalized form #3017 - π(backend) ask for access to the top parent doc from a sub-document #2994 - ποΈ(backend) require the owner role to move a document out of its tree #2978 - π(backend) speed up the reconciliation admin with user autocompletes #3013 - π(frontend) show right-to-left text from the right in the editor #2919 - π(yhub) report unready when valkey only accepts reads #3035 - π(yhub) restart when valkey turns read-only after a failover #3035 - π(frontend) hide the sub-doc creation entries without children_create #3031 - ποΈ(backend) duplicate a sub doc in its parent only with rights on it #2979 - π(frontend) add the copy of a sub doc to the tree only if it lands there #2979 - π(backend) name users without an email instead of returning a 500 #2943 - π(frontend) show an error page when the current user cannot be loaded #2943 - π(frontend) pick a mention with a click in the comments sidebar #3055 - π(backend) stop throttling the config endpoint #3005 - π(backend) throttle anonymous users per browser, not per IP address #3005 Signed-off-by: Manuel Raynaud <[email protected]>
Purpose
yarn 1 keeps every downloaded tarball in /usr/local/share/.cache/yarn and nothing removed it, so each yarn install layer carried a second copy of the dependencies: 4.2 GB in the frontend-development image, close to 1 GB in the y-provider and yhub ones, and the y-provider production image shipped it too.
The installs now use a BuildKit cache mount, as the backend image already does for uv: the cache stays out of the layers and is still reused between local builds. It is locked because compose builds the images in parallel and concurrent yarn 1 installs can corrupt a shared cache.
frontend-development goes from 9.25 GB to 2.63 GB, y-provider-development from 2.28 GB to 753 MB, yhub-development from 2.19 GB to 814 MB and the y-provider production image from 812 MB to 463 MB.
Proposal