[Merged by Bors] - fix: allow build steps to access timezone - #28510
[Merged by Bors] - fix: allow build steps to access timezone#28510kim-em wants to merge 4 commits into
Conversation
…te linter The deprecated attribute linter was failing with timezone database errors: 'unable to locate share/zoneinfo in the local timezone database at /etc/localtime' This adds the szenius/set-timezone@v2.0 action to all build workflows to ensure proper timezone configuration in CI environments.
8fc33bb to
edfb409
Compare
PR summary 90c0e186fdImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
I'll add a test in a follow-up PR, but because this is a CI change it needs to go in first. |
|
✌️ kim-em can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
|
bors merge |
…e linter (#28510) ## Problem The deprecated attribute linter was failing with timezone database errors: ``` unable to locate share/zoneinfo in the local timezone database at /etc/localtime ``` This was happening because the linter uses `Std.Time.PlainDate.now` to compare dates, which requires timezone information. ## Solution Add the `szenius/set-timezone@v2.0` action to all build workflows to ensure proper timezone configuration in CI environments. ## Changes - Added timezone setup step to `.github/build.in.yml` - Regenerated all build workflow files (`build.yml`, `bors.yml`, `build_fork.yml`) - The timezone setup runs after cleanup and before jq setup This should fix the deprecated attribute linter failures in CI. Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com>
|
Build failed: |
|
It seems we are setting edit: I went ahead and changed this PR to that approach instead. |
|
Thank you! I had missed that this was a landrun issue. |
|
bors merge |
## Problem The deprecated attribute linter was failing with timezone database errors: ``` unable to locate share/zoneinfo in the local timezone database at /etc/localtime ``` This was happening because the linter uses `Std.Time.PlainDate.now` to compare dates, which requires timezone information. ## Solution Add `-ro /etc/timezone` to `landrun` shell options. ## Changes - Add timezone permissions to `shell` in `.github/build.in.yml` - Regenerated all build workflow files (`build.yml`, `bors.yml`, `build_fork.yml`) This should fix the deprecated attribute linter failures in CI. Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com> Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
## Problem The deprecated attribute linter was failing with timezone database errors: ``` unable to locate share/zoneinfo in the local timezone database at /etc/localtime ``` This was happening because the linter uses `Std.Time.PlainDate.now` to compare dates, which requires timezone information. ## Solution Add `-ro /etc/timezone` to `landrun` shell options. ## Changes - Add timezone permissions to `shell` in `.github/build.in.yml` - Regenerated all build workflow files (`build.yml`, `bors.yml`, `build_fork.yml`) This should fix the deprecated attribute linter failures in CI. Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com> Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
## Problem The deprecated attribute linter was failing with timezone database errors: ``` unable to locate share/zoneinfo in the local timezone database at /etc/localtime ``` This was happening because the linter uses `Std.Time.PlainDate.now` to compare dates, which requires timezone information. ## Solution Add `-ro /etc/timezone` to `landrun` shell options. ## Changes - Add timezone permissions to `shell` in `.github/build.in.yml` - Regenerated all build workflow files (`build.yml`, `bors.yml`, `build_fork.yml`) This should fix the deprecated attribute linter failures in CI. Co-authored-by: Kim Morrison <477956+kim-em@users.noreply.github.com> Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
Problem
The deprecated attribute linter was failing with timezone database errors:
This was happening because the linter uses
Std.Time.PlainDate.nowto compare dates, which requires timezone information.Solution
Add
-ro /etc/timezonetolandrunshell options.Changes
shellin.github/build.in.ymlbuild.yml,bors.yml,build_fork.yml)This should fix the deprecated attribute linter failures in CI.