[bug] pruner_test.exs fails on elixir < 1.14.0 #511

Closed
opened 2023-03-13 23:54:54 +00:00 by fedward · 4 comments

Your setup

From source

Extra details

FreeBSD 13.1

Version

2023.03

PostgreSQL version

14.6

What were you trying to do?

mix test

What did you expect to happen?

All tests complete successfully.

What actually happened?

On FreeBSD 13.1 the standard elixir package is 1.13.4. There are several individual tests in pruner_test.exs that use the function syntax DateTime.add(-31 * 24, :hour), but it looks like the :hour syntax didn't come into elixir until 1.14.0.

Replacing the elixir package with the elixir-devel package (1.14.2) allowed the tests to pass.

Logs

No response

Severity

I can manage

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup From source ### Extra details FreeBSD 13.1 ### Version 2023.03 ### PostgreSQL version 14.6 ### What were you trying to do? mix test ### What did you expect to happen? All tests complete successfully. ### What actually happened? On FreeBSD 13.1 the standard elixir package is 1.13.4. There are several individual tests in pruner_test.exs that use the function syntax DateTime.add(-31 * 24, :hour), but it looks like the :hour syntax didn't come into elixir until 1.14.0. Replacing the elixir package with the elixir-devel package (1.14.2) allowed the tests to pass. ### Logs _No response_ ### Severity I can manage ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
fedward added the
bug
label 2023-03-13 23:54:54 +00:00
Author

This is maybe a version requirement more than it's a bug, but I didn't see it documented anywhere that the new features required elixir >= 1.14. Maybe just note it in the release notes?

This is maybe a version requirement more than it's a bug, but I didn't see it documented anywhere that the new features required elixir >= 1.14. Maybe just note it in the release notes?
Contributor

related #477

related https://akkoma.dev/AkkomaGang/akkoma/issues/477
Contributor

Probably should close this and #477 since #512 updates the minimum Elixir version to 1.14 and has been merged.

Probably should close this and #477 since #512 updates the minimum Elixir version to 1.14 and has been merged.
Author

Closing because it's fixed, as described.

Closing because it's fixed, as described.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#511
No description provided.