Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatsby Build in GitHub Actions Sometimes Runs Forever #38989

Open
2 tasks done
Aibono1225 opened this issue May 27, 2024 · 1 comment
Open
2 tasks done

Gatsby Build in GitHub Actions Sometimes Runs Forever #38989

Aibono1225 opened this issue May 27, 2024 · 1 comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@Aibono1225
Copy link

Aibono1225 commented May 27, 2024

Preliminary Checks

Description

The Gatsby build on GitHub Actions sometimes get suck with no clear error message in the log. This makes it hard to find the problem. ☹️
Note: when the build fails, it usually works after rerunning the action.

image

Here's log detail:

Creating Rule: Do you know when to use Power Automate vs internal workflow engine (Model Driven Apps)?
	Redirect: do-you-know-when-to-use-power-automate-vs-internal-workflow-engine-model-driven-apps -> when-to-use-power-automate-vs-internal-workflow-engine
	Redirect: do-you-know-when-to-use-power-automate-vs-internal-workflow-engine-(model-driven-apps) -> when-to-use-power-automate-vs-internal-workflow-engine
Creating Rule: Do you know when to use React?
	Redirect: do-you-know-when-to-use-react -> when-to-use-react
Creating Rule: Do you know when to use Reporting Services?
	Redirect: do-you-know-when-to-use-reporting-services -> when-to-use-reporting-services
Creating Rule: Do you know when to use state management in Angular?
Creating Rule: Do you know when to use value objects?
	Redirect: do-you-know-when-to-use-value-objects -> when-to-use-value-objects
Creating Rule: Do you know when to use StringBuilder?
	Redirect: do-you-know-when-to-use-stringbuilder -> when-to-use-stringbuilder
Creating Rule: When you follow a rule do you know to refer to it (including the icon)?
	Redirect: when-you-follow-a-rule-do-you-know-to-refer-to-it-(including-the-icon) -> when-you-follow-a-rule-do-you-know-to-refer-to-it-including-the-icon
Creating Rule: Do you know when you use @ mentions in a PBI?
	Redirect: when-you-use-@-mentions-in-a-pbi -> when-you-use-mentions-in-a-pbi
	Redirect: do-you-know-when-you-use-mentions-in-a-pbi -> when-you-use-mentions-in-a-pbi
	Redirect: do-you-know-when-you-use-@-mentions-in-a-pbi -> when-you-use-mentions-in-a-pbi
Creating Rule: Do you know where bottlenecks can happen?
	Redirect: do-you-know-where-bottlenecks-can-happen -> where-bottlenecks-can-happen
Creating Rule: Do you know where the QR code scanner should be on a UI?
	Redirect: do-you-know-where-the-qr-code-scanner-should-be-on-a-ui -> where-qr-code-scanner-should-be-on-a-ui
Creating Rule: Do you know where to find images for your blog?
	Redirect: do-you-know-where-to-find-images-for-your-blog -> where-to-find-images
Creating Rule: Files - Do you know where to keep your files?
	Redirect: do-you-know-where-to-keep-your-files -> where-to-keep-your-files
	Redirect: do-you-know-where-to-keep-your-files-tfs-sharepoint -> where-to-keep-your-files
	Redirect: files-do-you-know-where-to-keep-your-files -> where-to-keep-your-files
Creating Rule: Do you know where to store your application's files?
	Redirect: do-you-know-where-to-store-your-applications-files -> where-to-store-your-applications-files
Creating Rule: Do you know where your goal posts are?
	Redirect: do-you-know-where-your-goal-posts-are -> where-your-goal-posts-are
Creating Rule: Do you know where to save reports?
	Redirect: do-you-know-where-to-save-reports -> where-to-save-power-bi-reports
Creating Rule: Do you know where to upload work related videos?
	Redirect: do-you-know-where-to-upload-work-related-videos -> where-to-upload-work-related-videos
Creating Rule: Do you ensure your client projects who don't use full Scrum, at least have a "Mini-Review"?
	Redirect: do-you-ensure-your-client-projects-who-dont-use-full-scrum-at-least-have-a-mini-review -> who-dont-use-full-scrum-should-have-a-mini-review
Creating Rule: Do your speakers know what they need to do at an event?
	Redirect: do-your-speakers-know-what-they-need-to-do-at-an-event -> who-is-in-charge-of-keeping-the-schedule
Creating Rule: Do you know which emojis to use in Scrum?
	Redirect: do-you-know-the-which-emojis-to-use-in-scrum -> which-emojis-to-use-in-scrum
	Redirect: do-you-know-which-emojis-to-use-in-scrum -> which-emojis-to-use-in-scrum
Creating Rule: Do you know the whole Scrum team is responsible for quality?
Creating Rule: Do you know why you choose .NET Core?
	Redirect: do-you-know-why-you-choose-net-core -> why-choose-dot-net-core
Creating Rule: Do you know why React is great?
	Redirect: do-you-know-why-react-is-great -> why-react-is-great
Creating Rule: TikTok - Do you know why a business should use TikTok?
Creating Rule: Do you understand why testing cannot be completely automated?
Creating Rule: Do you understand why testing is important?
Creating Rule: Do you know where you can find some nice icons?
	Redirect: do-you-know-where-you-can-find-some-nice-icons -> where-to-find-nice-icons
Creating Rule: Do you know why to use Entity Framework?
	Redirect: when-to-use-entity-framework -> why-to-use-entity-framework
Creating Rule: Do you know why to upgrade from AngularJS to Angular?
	Redirect: why-upgrade-to-angular-2 -> why-upgrade-to-latest-angular
	Redirect: do-you-know-why-to-upgrade-from-angularjs-to-angular -> why-upgrade-to-latest-angular
Creating Rule: Do you know why unit tests are important?
	Redirect: do-you-know-why-tests-are-important -> why-unit-tests-are-important
	Redirect: why-tests-are-important -> why-unit-tests-are-important
Creating Rule: Do you know why to upgrade from .NET Framework to the latest .NET?
Creating Rule: Do you know why to use Data Protection Manager (DPM)?
	Redirect: do-you-know-why-to-use-data-protection-manager-dpm -> why-use-data-protection-manager
	Redirect: do-you-know-why-to-use-data-protection-manager-(dpm) -> why-use-data-protection-manager
Creating Rule: Do you use Open Source software?
Creating Rule: Content - Do you know why you should have a blog for your company?
	Redirect: do-you-know-why-you-should-have-a-blog-for-your-company -> why-you-should-have-a-blog-for-your-company
Creating Rule: Do you know why to use Application Insights?
	Redirect: do-you-know-why-you-want-to-use-application-insights -> why-you-want-to-use-application-insights
Creating Rule: Google Business - Do you know why your business should be on Google Business?
Creating Rule: Do you know what makes Vue.js great?
Creating Rule: Do you use Windows Admin Center?
Creating Rule: Do you support URLs on Windows Forms applications?
Creating Rule: Do you use Windows Hello?
Creating Rule: Do you use Word Documents instead of Wiki Pages in SharePoint?
Creating Rule: PC - Do you check that Windows Security has 5 green ticks?
Creating Rule: Backlog - Do you always work in priority order, unless there’s a good reason not to?
	Redirect: do-you-always-work-in-priority-order-unless-there’s-a-good-reason-not-to -> work-in-priority-order
	Redirect: do-you-always-work-in-priority-order-unless-theres-a-good-reason-not-to -> work-in-priority-order
Creating Rule: Priorities - Do you complete work in order of importance?
	Redirect: do-you-complete-work-in-order-of-importance-(aka-priorities) -> work-in-order-of-importance-aka-priorities
	Redirect: priorities-do-you-complete-work-in-order-of-importance-aka-priorities -> work-in-order-of-importance-aka-priorities
	Redirect: priorities-do-you-complete-work-in-order-of-importance-(aka-priorities) -> work-in-order-of-importance-aka-priorities
	Redirect: do-you-complete-work-in-order-of-importance-aka-priorities -> work-in-order-of-importance-aka-priorities
Creating Rule: Do you work in vertical slices?
Creating Rule: Do you know how to name your CI workflows?
Creating Rule: Do you check the workstations are using the GPU?
Creating Rule: DRY - Do you wrap the same logic in a method instead of writing it repeatedly whenever it's used?
	Redirect: do-you-wrap-the-same-logic-in-a-method-instead-of-writing-it-again-and-again-whenever-its-used -> wrap-the-same-logic-in-a-method-instead-of-writing-it-again-and-again
Creating Rule: Do you know how to write a great Pull Request (PR)?
	Redirect: do-you-know-how-to-write-a-good-pull-request -> write-a-good-pull-request
Creating Rule: Do you know where to keep your design files?
	Redirect: do-you-know-the-best-source-control-for-designers -> where-to-keep-your-design-files
Creating Rule: Do you know how to write a follow-up email after an outbound call?
	Redirect: do-you-know-how-to-write-a-follow-up-email-after-an-outbound-call -> write-a-follow-up-email-after-an-outbound-call
Creating Rule: Do you know how to write an image prompt?
	Redirect: write-an-image-generation-prompt -> write-an-image-prompt
Creating Rule: Do you write end-to-end tests for critical happy-paths?
	Redirect: do-you-write-end-to-end-tests-for-critical-happy-paths -> write-end-to-end-tests-for-critical-happy-paths
Creating Rule: Do you write Integration Test for Dependencies - e.g. DLLs?
	Redirect: do-you-write-integration-test-for-dependencies-e-g-dlls -> write-integration-test-for-dependencies
Creating Rule: Do you write integration tests to validate your web links?
	Redirect: do-you-write-integration-tests-to-validate-your-web-links -> write-integration-tests-to-validate-your-web-links
Creating Rule: Do you write in the newsreader and eyewitness style?
	Redirect: web-content-like-wikipedia-instructional-style-do-you-write-in-the-newsreader-and-eyewitness-style -> write-in-eye-witness-style
	Redirect: web-content-do-you-write-in-the-newsreader-and-eye-witness-style -> write-in-eye-witness-style
Creating Rule: Practices - Do you write small components?
	Redirect: practices-do-you-write-small-components -> write-small-components
Creating Rule: Do you write your Angular 1.x directives in TypeScript?
	Redirect: do-you-write-your-angular-1-x-directives-in-typescript -> write-your-angular-1-x-directives-in-typescript
	Redirect: do-you-wrote-your-angular-1-x-directives-in-typescript -> write-your-angular-1-x-directives-in-typescript
Creating Rule: Xamarin - Do you know the stuff to install?
	Redirect: xamarin-do-you-know-the-stuff-to-install -> xamarin-the-stuff-to-install
Creating Rule: Do you use Environment.NewLine to make a new line in your string?
	Redirect: do-you-use-environment-newline-to-make-a-new-line-in-your-string -> use-environment-newline-to-make-a-new-line-in-your-string
Creating Rule: Does your home page banner show upcoming events?
Creating Rule: Do you add cards to your YouTube videos?
	Redirect: cards-and-ending-screens -> youtube-cards
	Redirect: do-you-add-cards-to-your-youtube-videos -> youtube-cards
Creating Rule: Do you assign yourself Zendesk tickets before working on them?
Creating Rule: Do you make the email readable by snipping and formatting the IM chat?
	Redirect: do-you-make-the-email-readable-by-snipping-and-formatting-the-im-chat -> you-make-the-email-readable-by-snipping-and-formatting-the-im-chat
Creating Rule: Do you know what Zigbee is and follow its design principles?
Creating Rule: Do you 'zz' old files rather than deleting them?
	Redirect: do-you-zz-old-files-rather-than-deleting-them -> zz-files
Creating Rule: Explaining - Do you zoom out then in?
success createPages - 3.492s
success createPagesStatefully - 0.068s
info Total nodes: 21000, SitePage nodes: 3592 (use --verbose for breakdown)
success Checking for changed pages - 0.001s
success Cleaning up stale page-data - 0.050s
success onPreExtractQueries - 0.000s
success extract queries from components - 3.281s
success write out redirect data - 0.013s
success onPostBootstrap - 0.008s
info bootstrap finished - 55.551s
success write out requires - 0.034s
warning 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
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
warning ./node_modules/gatsby-plugin-decap-cms/gatsby-browser.js
Critical dependency: the request of a dependency is an expression
success Building production JavaScript and CSS bundles - 33.888s
<w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'mini-css-extract-plugin /home/runner/work/SSW.Rules/SSW.Rules/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!/home/runner/work/SSW.Rules/SSW.Rules/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!/home/runner/work/SSW.Rules/SSW.Rules/src/style.css|0|Compilation/modules|/home/runner/work/SSW.Rules/SSW.Rules/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!/home/runner/work/SSW.Rules/SSW.Rules/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!/home/runner/work/SSW.Rules/SSW.Rules/src/style.css': No serializer registered for Warning
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 1 items } -> webpack/lib/ModuleWarning -> Error -> Warning
success Building HTML renderer - 19.529s
success Execute page configs - 0.346s
success Caching Webpack compilations - 0.000s
warning This query took more than 15s to run — which might indicate you're querying too much or have some unoptimized code:
File path: /home/runner/work/SSW.Rules/SSW.Rules/src/pages/archived.js
Error: The action 'Build' has timed out after 60 minutes.

Because there are no clear error messages, it's tough to fix the issue.

Reproduction Link

N/A

Steps to Reproduce

  1. Run Gatsby build in GitHub Action
  2. Check the Action log, (Sometimes) it gets stuck

Expected Result

The build should either succeed or show a clear error message

Actual Result

Sometimes, the Gatsby build gets stuck and runs forever until it times out without showing any error information

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
  Binaries:
    Node: 20.11.0 - ~\AppData\Local\Temp\xfs-d7e6e69c\node.CMD
    Yarn: 4.0.1 - ~\AppData\Local\Temp\xfs-d7e6e69c\yarn.CMD
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.10.11
  Browsers:
    Edge: Chromium (123.0.2420.97)
  npmPackages:
    gatsby: 5.13.4 => 5.13.4
    gatsby-custom-md: ^1.3.0 => 1.3.0
    gatsby-plugin-algolia: ^1.0.3 => 1.0.3
    gatsby-plugin-breadcrumb: ^12.3.2 => 12.3.2
    gatsby-plugin-decap-cms: ^4.0.4 => 4.0.4
    gatsby-plugin-disqus: ^1.2.6 => 1.2.6
    gatsby-plugin-fontawesome-css: ^1.2.0 => 1.2.0
    gatsby-plugin-google-gtag: ^5.13.1 => 5.13.1
    gatsby-plugin-google-tagmanager: ^5.13.1 => 5.13.1
    gatsby-plugin-meta-redirect: ^1.1.1 => 1.1.1
    gatsby-plugin-postcss: 6.13.1 => 6.13.1
    gatsby-plugin-react-helmet: ^6.13.1 => 6.13.1
    gatsby-plugin-sharp: ^5.13.1 => 5.13.1
    gatsby-plugin-sitemap: ^6.13.1 => 6.13.1
    gatsby-remark-autolink-headers: ^6.13.1 => 6.13.1
    gatsby-remark-copy-linked-files: ^6.13.1 => 6.13.1
    gatsby-remark-custom-blocks: ^3.15.0 => 3.15.0
    gatsby-remark-draw: ^1.0.16 => 1.0.16
    gatsby-remark-embed-video: ^3.2.1 => 3.2.1
    gatsby-remark-fenced-divs: ^1.0.3 => 1.0.3
    gatsby-remark-figure-caption: ^2.0.0 => 2.0.0
    gatsby-remark-images: ^7.13.1 => 7.13.1
    gatsby-remark-images-anywhere: ^1.3.1 => 1.3.1
    gatsby-remark-images-zoom: ^1.1.0 => 1.1.0
    gatsby-remark-relative-images-v2: ^0.1.5 => 0.1.5
    gatsby-remark-responsive-iframe: ^6.13.1 => 6.13.1
    gatsby-remark-vscode: ^3.3.1 => 3.3.1
    gatsby-source-filesystem: ^5.13.1 => 5.13.1
    gatsby-source-git: ^1.1.0 => 1.1.0
    gatsby-source-local-git: ^1.3.0 => 1.3.0
    gatsby-transformer-json: ^5.13.1 => 5.13.1
    gatsby-transformer-remark: 3.2.0 => 3.2.0
    gatsby-transformer-sharp: ^5.13.1 => 5.13.1

Config Flags

No response

@Aibono1225 Aibono1225 added the type: bug An issue or pull request relating to a bug in Gatsby label May 27, 2024
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 27, 2024
@bradystroud
Copy link

This one is really painful :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants