Skip to content

ci: timeouts on every job; PSScriptAnalyzer once per folder - #44

Merged
eizedev merged 1 commit into
mainfrom
ci/job-timeouts
Nov 6, 2026
Merged

eizedev merged 1 commit into
mainfrom
ci/job-timeouts

Conversation

@eizedev

@eizedev eizedev commented Nov 6, 2026

Copy link
Copy Markdown
Owner
  • Every job in ci.yml, docs.yml and release.yml has timeout-minutes, so a hang fails after minutes instead of running into GitHub's 6 hour limit. Values: 10 for the quick jobs, 15 for build, powershell, browser, docs build and publish, 25 for the release's prepare (tests, all builds and the checks). The publish job's wait for approval in psgallery is not part of its timeout.
  • PSScriptAnalyzer runs once per folder (-Recurse) instead of once per file. The per-file loop is where the job failed with "You cannot have more than one dynamic module in each dynamic assembly" and then hung. I could not reproduce the error, so I cannot prove this change avoids it; the timeout limits the damage either way. Findings under node_modules, public or output are filtered out as before.
  • AGENTS.md: the local PSScriptAnalyzer command matches CI.

Fixes #39

Test plan

  • actionlint on all three workflows
  • The per-folder call locally: 0 findings on the repository; with a probe file containing Write-Host and an unused variable it reports both
  • CI of this pull request green

Places checked: AGENTS.md (updated), CONTRIBUTING.md and README (no PSScriptAnalyzer command).

🤖 Generated with Claude Code

@eizedev
eizedev merged commit 0ce30e9 into main Nov 6, 2026
9 checks passed
@eizedev
eizedev deleted the ci/job-timeouts branch November 6, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: powershell job hung after a PSScriptAnalyzer runtime error; jobs have no timeout

1 participant