huggingface / cookbook

Open-source AI cookbook
https://huggingface.co/learn/cookbook
Apache License 2.0
1.69k stars 241 forks source link

Cookbook Publish CI Stuck: Fails to Complete HTML Conversion and Release Recent Changes #222

Open onuralpszr opened 4 weeks ago

onuralpszr commented 4 weeks ago

Hello :wave:

I've noticed that after recent pull requests, particularly those involving Korean character changes, the HTML conversion process occasionally gets stuck and doesn't finish. Sometimes, it completes, but in the latest changes, my run was also canceled and stuck. I've observed this pattern more than once in the CI logs as well.

Could someone help investigate this issue? Thank you!

Example CI url : https://github.com/huggingface/cookbook/actions/runs/11543431177/job/32127813838

CI Log


Run source .venv/bin/activate
doc_folder has been set to cookbook/notebooks/
Generating docs for language en
Building docs for cookbook ../cookbook/notebooks//en ../build_dir/cookbook/main/en

Building the MDX files:   0%|          | 0/94 [00:00<?, ?it/s]
Building the MDX files:  36%|███▌      | 34/94 [00:00<00:00, 282.23it/s]
Building the MDX files:  78%|███████▊  | 73/94 [00:00<00:00, 297.26it/s]
Building the MDX files: 100%|██████████| 94/94 [00:00<00:00, 2[35](https://github.com/huggingface/cookbook/actions/runs/11543431177/job/32127813838#step:18:36).37it/s]

postcss-empty: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

warn - The `@variants` directive has been deprecated in Tailwind CSS v3.0.
warn - Use `@layer utilities` or `@layer components` instead.
warn - https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer
8:05:48 PM [vite-plugin-svelte] /tmp/tmpg9[41](https://github.com/huggingface/cookbook/actions/runs/11543431177/job/32127813838#step:18:42)gw6s/kit/src/lib/Dropdown.svelte:11:11 Dropdown has unused export property 'selectedValue'. If it is for external reference only, please consider using `export const selectedValue`
 9: export let menuClassNames = "";
10: export let noBtnClass = void 0;
11: export let selectedValue = void 0;
               ^
12: export let useDeprecatedJS = true;
13: export let withBtnCaret = false;

8:05:59 PM [vite-plugin-svelte] /tmp/tmpg941gw6s/kit/src/lib/Dropdown.svelte:11:11 Dropdown has unused export property 'selectedValue'. If it is for external reference only, please consider using `export const selectedValue`
 9: export let menuClassNames = "";
10: export let noBtnClass = void 0;
11: export let selectedValue = void 0;
               ^
12: export let useDeprecatedJS = true;
13: export let withBtnCaret = false;

(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
Installing node dependencies
Building HTML files. This will take a while :-)
Generating docs for language zh-CN
Building docs for cookbook ../cookbook/notebooks//zh-CN ../build_dir/cookbook/main/zh-CN

Building the MDX files:   0%|          | 0/51 [00:00<?, ?it/s]
Building the MDX files: 100%|██████████| 51/51 [00:00<00:00, 796.46it/s]

postcss-empty: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

warn - The `@variants` directive has been deprecated in Tailwind CSS v3.0.
warn - Use `@layer utilities` or `@layer components` instead.
warn - https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer
8:06:14 PM [vite-plugin-svelte] /tmp/tmpelbj3klt/kit/src/lib/Dropdown.svelte:11:11 Dropdown has unused export property 'selectedValue'. If it is for external reference only, please consider using `export const selectedValue`
 9: export let menuClassNames = "";
10: export let noBtnClass = void 0;
11: export let selectedValue = void 0;
               ^
12: export let useDeprecatedJS = true;
13: export let withBtnCaret = false;

8:06:19 PM [vite-plugin-svelte] /tmp/tmpelbj3klt/kit/src/lib/Dropdown.svelte:11:11 Dropdown has unused export property 'selectedValue'. If it is for external reference only, please consider using `export const selectedValue`
 9: export let menuClassNames = "";
10: export let noBtnClass = void 0;
11: export let selectedValue = void 0;
               ^
12: export let useDeprecatedJS = true;
13: export let withBtnCaret = false;
Installing node dependencies
Building HTML files. This will take a while :-)
Generating docs for language ko
Building docs for cookbook ../cookbook/notebooks//ko ../build_dir/cookbook/main/ko

Building the MDX files:   0%|          | 0/10 [00:00<?, ?it/s]
Building the MDX files:  80%|████████  | 8/10 [00:00<00:00, 10.14it/s]
Building the MDX files: 100%|██████████| 10/10 [00:00<00:00, 12.50it/s]

postcss-empty: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

warn - The `@variants` directive has been deprecated in Tailwind CSS v3.0.
warn - Use `@layer utilities` or `@layer components` instead.
warn - https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer
8:06:[43](https://github.com/huggingface/cookbook/actions/runs/11543431177/job/32127813838#step:18:44) PM [vite-plugin-svelte] /tmp/tmpxp0epw_k/kit/src/lib/Dropdown.svelte:11:11 Dropdown has unused export property 'selectedValue'. If it is for external reference only, please consider using `export const selectedValue`
 9: export let menuClassNames = "";
10: export let noBtnClass = void 0;
11: export let selectedValue = void 0;
               ^
12: export let useDeprecatedJS = true;
13: export let withBtnCaret = false;

8:06:[52](https://github.com/huggingface/cookbook/actions/runs/11543431177/job/32127813838#step:18:53) PM [vite-plugin-svelte] /tmp/tmpxp0epw_k/kit/src/lib/Dropdown.svelte:11:11 Dropdown has unused export property 'selectedValue'. If it is for external reference only, please consider using `export const selectedValue`
 9: export let menuClassNames = "";
10: export let noBtnClass = void 0;
11: export let selectedValue = void 0;
               ^
12: export let useDeprecatedJS = true;
13: export let withBtnCaret = false;
Error: The operation was canceled.

cc @merveenoyan @stevhliu

stevhliu commented 4 weeks ago

I'm not entirely sure what the issue could be here! Pinging @mishig25 who probably has a better idea 🙂

onuralpszr commented 3 weeks ago

Friendly reminder ping @mishig25 for help please :)