mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1853] Sphinx build failing on act but succeeding on actions #901
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#901
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @liopeer on GitHub (Jun 10, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1853
Bug report info
Command used with act
Describe issue
Sphinx build fails at "make html" from the workflow below. It seems to be a timezone related issue that arises from the interaction of the Python packages babel & zoneinfo.
It is important to mention again, that it runs fine when pushing to Github, but unfortunately not in act.
Find the error below:
| Traceback (most recent call last):
| File "/usr/local/bin/sphinx-build", line 5, in
| from sphinx.cmd.build import main
| File "/usr/local/lib/python3.10/dist-packages/sphinx/cmd/build.py", line 20, in
| from sphinx.application import Sphinx
| File "/usr/local/lib/python3.10/dist-packages/sphinx/application.py", line 25, in
| from sphinx.config import Config
| File "/usr/local/lib/python3.10/dist-packages/sphinx/config.py", line 14, in
| from sphinx.util.i18n import format_date
| File "/usr/local/lib/python3.10/dist-packages/sphinx/util/i18n.py", line 12, in
| import babel.dates
| File "/usr/local/lib/python3.10/dist-packages/babel/dates.py", line 34, in
| from babel import localtime
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/init.py", line 41, in
| LOCALTZ = get_localzone()
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/init.py", line 37, in get_localzone
| return _get_localzone()
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/_unix.py", line 49, in _get_localzone
| tzinfo = _get_tzinfo(zone_name)
| File "/usr/local/lib/python3.10/dist-packages/babel/localtime/_helpers.py", line 21, in _get_tzinfo
| return zoneinfo.ZoneInfo(tzenv)
| File "/usr/lib/python3.10/zoneinfo/_tzpath.py", line 67, in find_tzfile
| _validate_tzfile_path(key)
| File "/usr/lib/python3.10/zoneinfo/_tzpath.py", line 81, in _validate_tzfile_path
| raise ValueError(
| ValueError: ZoneInfo keys may not be absolute paths, got: /UTC
| make: *** [Makefile:20: html] Error 1
[Push Docs Build/docs] ❌ Failure - Main Build docs
[Push Docs Build/docs] exitcode '2': failure
[Push Docs Build/docs] 🏁 Job failed
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@peytondmurray commented on GitHub (Jul 5, 2023):
@liopeer I ran into this issue today. There's definitely a problem with how the timezone is being retrieved by
babel, but you can get around it by settingTZ=UTCto short circuit the problem during the sphinx build:@github-actions[bot] commented on GitHub (Jan 2, 2024):
Issue is stale and will be closed in 14 days unless there is new activity