Deal with elixir 1.19 warnings and test failures #1029
No reviewers
Labels
No labels
approved, awaiting change
broken setup
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma!1029
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Oneric/akkoma:elixir-1.19-warnings"
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?
Currently only deal with stuff in
lib/, but there’s still more to be updated intests/. Also haven’t checkedmix formatyet after the adjustments (or whether 1.18 and 1.19 agree on formatting)Most of it is just changes to the struct-update syntax (which now can only be used if the updated variable points at a guaranteed matching module), but some more notable changes:
I think I now understand what it was meant to do (strip the leading
#if any) but as it was written it just didn’t do anything except producing a confusing compiler warning. This now makes the normalisation actually work, but we’ll need to keep code to deal with both formats at all places around due to existing db entries not being normalised. At first glance it seems like such code is already in placecd780179f6d8427df3c2d8427df3c223085e61a2Now passes (1.19’s)
mix formatand tests are warning-clean too (as far as out own code is concerned at least; from our dependencies Pleroma’s BBCode parser continues producing a bunch of warnings)This did actually reveal a couple bugs
@floatingghost can you update the CI images to 1.19 (ideally OPT28) and 1.15 respectively, so this can actually run as intended?
23085e61a26b37f249496b37f24949baad95eaa5baad95eaa51fed47d0e0ci images 1.15-otp25 and 1.19-otp28 available on both arches, sorry for the delay