Skip to content

Commit

Permalink
update to astro 0.22.3, add --verbose flag, output in readme with --v…
Browse files Browse the repository at this point in the history
…erbose flag both inside and outside of docker build
  • Loading branch information
danramteke committed Dec 30, 2021
1 parent 20a7906 commit 184d0a9
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 55 deletions.
119 changes: 70 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,55 +19,76 @@ Link to a run on GitHub actions with the same failure. https://github.com/danram
### Output
```
$ docker build .
[+] Building 192.0s (13/14)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/nginx:latest 0.3s
=> [internal] load metadata for docker.io/library/node:17 0.3s
=> [internal] load build context 0.0s
=> => transferring context: 4.83kB 0.0s
=> [stage-1 1/2] FROM docker.io/library/nginx@sha256:366e9f1ddebdb844044c2fafd13b75271a9f6 0.0s
=> CACHED [builder 1/7] FROM docker.io/library/node:17@sha256:36aca218a5eb57cb23bc790a0305 0.0s
=> [builder 2/7] COPY package.json ./ 0.0s
=> [builder 3/7] COPY yarn.lock ./ 0.0s
=> [builder 4/7] RUN yarn install 25.4s
=> [builder 5/7] COPY src src 0.0s
=> [builder 6/7] COPY public public 0.1s
=> ERROR [builder 7/7] RUN yarn build 166.0s
------
> [builder 7/7] RUN yarn build:
#13 0.373 yarn run v1.22.17
#13 0.386 warning package.json: No license field
#13 0.400 $ astro build
#13 1.573 04:18 AM [config] Set "buildOptions.site" to generate correct canonical URLs and sitemap
#13 165.5
#13 165.5 <--- Last few GCs --->
#13 165.5
#13 165.5 [29:0x57fb160] 162442 ms: Scavenge 2006.2 (2077.1) -> 1998.6 (2077.1) MB, 7.9 / 0.0 ms (average mu = 0.251, current mu = 0.071) allocation failure
#13 165.5 [29:0x57fb160] 162531 ms: Scavenge 2010.2 (2077.1) -> 2002.3 (2081.1) MB, 7.4 / 0.0 ms (average mu = 0.251, current mu = 0.071) allocation failure
#13 165.5 [29:0x57fb160] 163720 ms: Mark-sweep 2014.2 (2081.1) -> 1989.6 (2084.9) MB, 1115.0 / 2.2 ms (average mu = 0.296, current mu = 0.338) allocation failure scavenge might not succeed
#13 165.5
#13 165.5
#13 165.5 <--- JS stacktrace --->
#13 165.5
#13 165.5 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
#13 165.5 1: 0xb2c2b0 node::Abort() [/usr/local/bin/node]
#13 165.5 2: 0xa4025c node::FatalError(char const*, char const*) [/usr/local/bin/node]
#13 165.5 3: 0xd1d11e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
#13 165.5 4: 0xd1d497 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
#13 165.5 5: 0xed68f5 [/usr/local/bin/node]
#13 165.5 6: 0xed73d6 [/usr/local/bin/node]
#13 165.5 7: 0xee704c [/usr/local/bin/node]
#13 165.5 8: 0xee7ac0 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
#13 165.5 9: 0xeeaa6e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
#13 165.5 10: 0xeac48a v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
#13 165.5 11: 0x122c8e8 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
#13 165.5 12: 0x162fb79 [/usr/local/bin/node]
#13 165.9 Aborted
#13 165.9 error Command failed with exit code 134.
#13 165.9 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[+] Building 165.5s (13/14)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/nginx:latest 0.2s
=> [internal] load metadata for docker.io/library/node:17 0.2s
=> CACHED [builder 1/7] FROM docker.io/library/node:17@sha256:36aca218a5eb57cb23bc790a030591382c7664c15a384e2ddc2075761ac7e701 0.0s
=> CACHED [stage-1 1/2] FROM docker.io/library/nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 173.77kB 0.0s
=> [builder 2/7] COPY package.json ./ 0.1s
=> [builder 3/7] COPY yarn.lock ./ 0.0s
=> [builder 4/7] RUN yarn install 24.9s
=> [builder 5/7] COPY src src 0.0s
=> [builder 6/7] COPY public public 0.0s
=> ERROR [builder 7/7] RUN yarn build 140.1s
------
> [builder 7/7] RUN yarn build:
#13 0.433 yarn run v1.22.17
#13 0.461 warning package.json: No license field
#13 0.487 $ astro build --verbose
#13 1.642 05:41 PM [config] Set "buildOptions.site" to generate correct canonical URLs and sitemap
#13 3.179 05:42 PM [build] Vite started 1.6s
#13 11.60 05:42 PM [build] ├── ✔ src/pages/index.astro → /index.html
#13 139.5
#13 139.5 <--- Last few GCs --->
#13 139.5
#13 139.5 [31:0x57891d0] 139012 ms: Scavenge 2024.4 (2083.4) -> 2019.7 (2083.9) MB, 7.2 / 0.0 ms (average mu = 0.491, current mu = 0.331) allocation failure
#13 139.5 [31:0x57891d0] 139066 ms: Scavenge 2025.2 (2083.9) -> 2022.2 (2086.1) MB, 6.6 / 0.0 ms (average mu = 0.491, current mu = 0.331) allocation failure
#13 139.5 [31:0x57891d0] 139116 ms: Scavenge 2027.6 (2086.1) -> 2024.6 (2104.6) MB, 12.1 / 0.0 ms (average mu = 0.491, current mu = 0.331) allocation failure
#13 139.5
#13 139.5
#13 139.5 <--- JS stacktrace --->
#13 139.5
#13 139.5 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
#13 139.6 1: 0xb2c2b0 node::Abort() [/usr/local/bin/node]
#13 139.6 2: 0xa4025c node::FatalError(char const*, char const*) [/usr/local/bin/node]
#13 139.6 3: 0xd1d11e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
#13 139.6 4: 0xd1d497 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
#13 139.6 5: 0xed68f5 [/usr/local/bin/node]
#13 139.6 6: 0xee7d3d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
#13 139.6 7: 0xeeaa6e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
#13 139.6 8: 0xeac48a v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
#13 139.6 9: 0x122c8e8 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
#13 139.6 10: 0x162fb79 [/usr/local/bin/node]
#13 140.0 Aborted
#13 140.0 error Command failed with exit code 134.
#13 140.0 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
executor failed running [/bin/sh -c yarn build]: exit code: 134
```

## Output outside of Docker

```
$ yarn build
yarn run v1.22.17
warning package.json: No license field
$ astro build --verbose
12:41 PM [config] Set "buildOptions.site" to generate correct canonical URLs and sitemap
12:41 PM [build] Vite started 328ms
12:41 PM [build] ├── ✔ src/pages/index.astro → /index.html
12:41 PM [build] ├── ✔ src/pages/post.md → /post/index.html
12:41 PM [build] All pages loaded 497ms
12:41 PM [build] Vite build finished 66ms
12:41 PM [build] Additional assets copied 0ms
12:41 PM [build] Sitemap built 0ms
12:41 PM
12:41 PM [build] 2 pages built in 0.89s (446ms/page)
12:41 PM [build] 🚀 Done
✨ Done in 1.81s.
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"dependencies": {
"astro": "^0.22.1"
"astro": "^0.22.3"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"build": "astro build --verbose",
"preview": "astro preview"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,10 @@ astring@^1.7.5:
resolved "https://registry.yarnpkg.com/astring/-/astring-1.8.1.tgz#a91c4afd4af3523e11f31242a3d5d9af62bb6cc6"
integrity sha512-Aj3mbwVzj7Vve4I/v2JYOPFkCGM2YS7OqQTNSxmUR+LECRpokuPgAYghePgr6SALDo5bD5DlfbSaYjOzGJZOLQ==

astro@^0.22.1:
version "0.22.1"
resolved "https://registry.yarnpkg.com/astro/-/astro-0.22.1.tgz#3c54bce0860ab3d08e4d508b3b16ff0c7f730d68"
integrity sha512-h8IMB34YS365E9/Wdw+W2zaP/HHzLkmCc0v+5pIjsrX5nhCN897obq4rJHkOyQ1xgpFYVoFllgdnOGIAk6H0/w==
astro@^0.22.3:
version "0.22.3"
resolved "https://registry.yarnpkg.com/astro/-/astro-0.22.3.tgz#fa1d420e3971b036e535962432e1d75e9bd7654c"
integrity sha512-MoMgEe4aSE9B0uQEqK9uxVI+cGckPZxTBL843USEJ6fgPRo/J0NwtBsz6GRQc+9/cjmYd+FLfRyXbzjuUzubYg==
dependencies:
"@astrojs/compiler" "^0.6.0"
"@astrojs/language-server" "^0.8.2"
Expand Down

0 comments on commit 184d0a9

Please sign in to comment.