Skip to content

Nightly Dotty workflow of 2024-12-31 failed #22283

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

Closed
github-actions bot opened this issue Dec 31, 2024 · 1 comment
Closed

Nightly Dotty workflow of 2024-12-31 failed #22283

github-actions bot opened this issue Dec 31, 2024 · 1 comment

Comments

@github-actions
Copy link
Contributor

See https://github.com/scala/scala3/actions/runs/12554833599

@WojciechMazur
Copy link
Contributor

The single failing ZIO test is failing becouse of todays date - 31.12.2024, the 366th day of the year.
Test is trying to create a LocalDate using following code where expected.getDayOfYear is equal to current day of year.

          val afterTimeExpected = expected.withDayOfYear(expected.getDayOfYear + 1)
[info]     - recur at 01 hour of each day
[info]       Fiber failed.
[info]       An unchecked error was produced.
[info]       java.time.DateTimeException: Invalid value for DayOfYear (valid values 1 - 365/366): 367
[info]          at java.base/java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311)
[info]          at java.base/java.time.temporal.ChronoField.checkValidValue(ChronoField.java:717)
[info]          at java.base/java.time.LocalDate.ofYearDay(LocalDate.java:289)
[info]          at java.base/java.time.LocalDate.withDayOfYear(LocalDate.java:1143)
[info]          at java.base/java.time.LocalDateTime.withDayOfYear(LocalDateTime.java:1039)
[info]          at java.base/java.time.OffsetDateTime.withDayOfYear(OffsetDateTime.java:1045)
[info]          at zio.ScheduleSpec$.spec$$anonfun$49(ScheduleSpec.scala:380)

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

No branches or pull requests

1 participant