Skip to content

bug: [May cause rapid depletion of GitHub Action quotas] If the navigation.redirect property in the _dir.yml file points to a folder that lacks an index.md file, the npm run generate process may build for over 6 hours without completing. #180

Description

@Rwagsu

Environment

System:
OS: Windows 11 10.0.26220
CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
Memory: 784.54 MB / 7.36 GB
Binaries:
Node: 22.18.0 - C:\Program Files\nodejs\node.EXE
npm: 11.5.2 - C:\Program Files\nodejs\npm.CMD
pnpm: 10.17.0 - C:\Users\stars\AppData\Local\pnpm\pnpm.CMD
Browsers:
Edge: Chromium (140.0.3485.40)
Firefox Developer Edition: 144.0 - C:\Program Files\Firefox Developer Edition\firefox.exe

Describe the bug

Yesterday I deleted an index.md file but forgot to update the navigation.redirect property in _dir.yml. After committing the changes, I went to sleep. This commit ended up building for a full 6 hours in GitHub Actions before GitHub forcibly terminated it.

This is a critical point to note—it rapidly depletes your free GitHub Actions quota.

The build got stuck during pnpm run generate and ran for 6 hours.

See the case here:
https://github.com/Rwagsu/RwagsuOwO/actions/runs/18228189600

In this commit, I renamed index.md to home.md, but I forgot to update the navigation.redirect property in _dir.yml.

  1. Ensure your folder contains _dir.yml and index.md, with the navigation.redirect property in _dir.yml pointing to index.md.

  2. Run pnpm run generate to trigger the build.

  3. It should generate quickly.

  4. Rename index.md to another name (e.g., home.md).

  5. It fails to generate even after 10 minutes (or even 6 hours).

Translated with DeepL.com (free version)

Reproduction

https://github.com/Rwagsu/RwagsuOwO

Rwagsu/RwagsuOwO@01348e3

Additional context

No response

Logs

The log is too long:

https://github.com/Rwagsu/RwagsuOwO/actions/runs/18228189600

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions