From 49fc3e98e076b0c674c684b90ff5c345d621fcc1 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Thu, 4 Jun 2026 18:23:14 +0200 Subject: [PATCH 1/3] everyone can use their own .tool-versions --- .gitignore | 3 +++ .tool-versions | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 .tool-versions diff --git a/.gitignore b/.gitignore index 6923f88..93dd773 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ deep_merge-*.tar # Temporary files for e.g. tests. /tmp/ + +# let's let people use the versions they want +.tool-versions \ No newline at end of file diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index 510eaf4..0000000 --- a/.tool-versions +++ /dev/null @@ -1,2 +0,0 @@ -elixir 1.15.7-otp-26 -erlang 26.1.2 From bd825d8dbda6431cd48ce3681c88dfb07414cb24 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Thu, 4 Jun 2026 18:23:58 +0200 Subject: [PATCH 2/3] Update all them deps --- mix.lock | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mix.lock b/mix.lock index 36cba2e..5d34dae 100644 --- a/mix.lock +++ b/mix.lock @@ -1,17 +1,17 @@ %{ - "bunt": {:hex, :bunt, "0.2.1", "e2d4792f7bc0ced7583ab54922808919518d0e57ee162901a16a1b6664ef3b14", [:mix], [], "hexpm", "a330bfb4245239787b15005e66ae6845c9cd524a288f0d141c148b02603777a5"}, - "credo": {:hex, :credo, "1.7.1", "6e26bbcc9e22eefbff7e43188e69924e78818e2fe6282487d0703652bc20fd62", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "e9871c6095a4c0381c89b6aa98bc6260a8ba6addccf7f6a53da8849c748a58a2"}, - "dialyxir": {:hex, :dialyxir, "1.4.2", "764a6e8e7a354f0ba95d58418178d486065ead1f69ad89782817c296d0d746a5", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "516603d8067b2fd585319e4b13d3674ad4f314a5902ba8130cd97dc902ce6bbd"}, + "bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"}, + "credo": {:hex, :credo, "1.7.18", "5c5596bf7aedf9c8c227f13272ac499fe8eae6237bd326f2f07dfc173786f042", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "a189d164685fd945809e862fe76a7420c4398fa288d76257662aecb909d6b3e5"}, + "dialyxir": {:hex, :dialyxir, "1.4.7", "dda948fcee52962e4b6c5b4b16b2d8fa7d50d8645bbae8b8685c3f9ecb7f5f4d", [:mix], [{:erlex, ">= 0.2.8", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "b34527202e6eb8cee198efec110996c25c5898f43a4094df157f8d28f27d9efe"}, "earmark": {:hex, :earmark, "1.4.46", "8c7287bd3137e99d26ae4643e5b7ef2129a260e3dcf41f251750cb4563c8fb81", [:mix], [], "hexpm", "798d86db3d79964e759ddc0c077d5eb254968ed426399fbf5a62de2b5ff8910a"}, - "earmark_parser": {:hex, :earmark_parser, "1.4.37", "2ad73550e27c8946648b06905a57e4d454e4d7229c2dafa72a0348c99d8be5f7", [:mix], [], "hexpm", "6b19783f2802f039806f375610faa22da130b8edc21209d0bff47918bb48360e"}, - "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, - "ex_doc": {:hex, :ex_doc, "0.30.9", "d691453495c47434c0f2052b08dd91cc32bc4e1a218f86884563448ee2502dd2", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "d7aaaf21e95dc5cddabf89063327e96867d00013963eadf2c6ad135506a8bc10"}, - "excoveralls": {:hex, :excoveralls, "0.18.0", "b92497e69465dc51bc37a6422226ee690ab437e4c06877e836f1c18daeb35da9", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1109bb911f3cb583401760be49c02cbbd16aed66ea9509fc5479335d284da60b"}, - "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, - "inch_ex": {:hex, :inch_ex, "2.0.0", "24268a9284a1751f2ceda569cd978e1fa394c977c45c331bb52a405de544f4de", [:mix], [{:bunt, "~> 0.2", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "96d0ec5ecac8cf63142d02f16b7ab7152cf0f0f1a185a80161b758383c9399a8"}, - "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, - "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, - "makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"}, + "erlex": {:hex, :erlex, "0.2.9", "7debbbaa9f4f368b8cd648983e0f1d7963028508e9c59e9d4ed504e94ef52a55", [:mix], [], "hexpm", "8cfffc0ec7159e6d73de2ab28a588064de80f88b2798d5cbe4482cbbc200178b"}, + "ex_doc": {:hex, :ex_doc, "0.40.3", "4a972ffe64bc07dc605af487e98fc19b72a4185f55ca031b94c0552d6071c1d9", [:mix], [{:earmark_parser, "~> 1.4.44", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "2756e357742fecd9749b489b85d67c9ce99c465f2e75728d9e6dc8d704b973de"}, + "excoveralls": {:hex, :excoveralls, "0.18.5", "e229d0a65982613332ec30f07940038fe451a2e5b29bce2a5022165f0c9b157e", [:mix], [{:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "523fe8a15603f86d64852aab2abe8ddbd78e68579c8525ae765facc5eae01562"}, + "file_system": {:hex, :file_system, "1.1.1", "31864f4685b0148f25bd3fbef2b1228457c0c89024ad67f7a81a3ffbc0bbad3a", [:mix], [], "hexpm", "7a15ff97dfe526aeefb090a7a9d3d03aa907e100e262a0f8f7746b78f8f87a5d"}, + "inch_ex": {:hex, :inch_ex, "2.1.0", "0a6349fa71b89a96851da6bc4dcba304f74e23b66353fe47a939722b0a2ea539", [:mix], [{:bunt, "~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "bf6fbaac4dca8cbe95db58a213608c41f2d3fe404cc608b961ffb11c60190111"}, + "jason": {:hex, :jason, "1.4.5", "2e3a008590b0b8d7388c20293e9dcc9cf3e5d642fd2a114e4cbbb52e595d940a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0 or ~> 3.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "b0c823996102bcd0239b3c2444eb00409b72f6a140c1950bc8b457d836b30684"}, + "makeup": {:hex, :makeup, "1.2.1", "e90ac1c65589ef354378def3ba19d401e739ee7ee06fb47f94c687016e3713d1", [:mix], [{:nimble_parsec, "~> 1.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "d36484867b0bae0fea568d10131197a4c2e47056a6fbe84922bf6ba71c8d17ce"}, + "makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"}, + "makeup_erlang": {:hex, :makeup_erlang, "1.1.0", "835f7e60792e08824cda445639555d7bf1bbbddb1b60b306e33cb6f6db24dc74", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "1cd6780fb1dd1a03979abaed0fe82712b0625118fd5257d3ebbf73f960c73c3c"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"}, } From beeb27aad5cb40cd130a7a0216db56258024172f Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Thu, 4 Jun 2026 19:00:53 +0200 Subject: [PATCH 3/3] get test run configuration from benchee suite, drop macos and windows though --- .github/workflows/main.yml | 129 ++++++++++++------------------------- 1 file changed, 40 insertions(+), 89 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c9db87..7d6e01c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,42 +8,44 @@ on: [pull_request, push] jobs: linux: name: Test on Ubuntu (Elixir ${{ matrix.elixir_version }}, OTP ${{ matrix.otp_version }}) - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: - # Thoroughly check the most recent versions - elixir_version: ['1.13.4', '1.14.5', '1.15.7', '1.16.0-rc.0'] - otp_version: ['23.3', '24.3', '25.3', '26.1'] - # Spot check older versions + # Run tests at least once for every supported elixir or erlang version # - # Goal is to have old versions (elixir and erlang) have basically one test each. - # That should be enough to affirm that they are working ok. + # Since all the code is running at least once with each version, that should cover enough. + # Like, what are the chances a bug would happen on 1.18@26 but not on 1.17@26 or 1.18@27? + # And if it does, it's more likely an elixir bug than a benchee bug. We'll see. + # We've been using enough of githubs CI resources and our own wait time :) + # + # https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp + # + # We're also further limited by the support the setup-beam action offers: + # https://github.com/erlef/setup-beam?tab=readme-ov-file#compatibility-between-operating-system-and-erlangotp include: - - elixir_version: '1.7.4' - otp_version: '20.3' - - elixir_version: '1.8.2' - otp_version: '20.3' - - elixir_version: '1.9.4' - otp_version: '21.3' - - elixir_version: '1.10.4' - otp_version: '21.3' - - elixir_version: '1.11.4' - otp_version: '22.3' - - elixir_version: '1.12.3' - otp_version: '23.3' - - elixir_version: '1.13.4' - otp_version: '22.3' - exclude: - - elixir_version: '1.15.7' - otp_version: '23.3' - - elixir_version: '1.16.0-rc.0' - otp_version: '23.3' - - elixir_version: '1.13.4' - otp_version: '26.1' - - elixir_version: '1.14.5' - otp_version: '26.1' - + - elixir_version: '1.11' + otp_version: '24.3' + - elixir_version: '1.12' + otp_version: '24.3' + - elixir_version: '1.13' + otp_version: '25.3' + - elixir_version: '1.14' + otp_version: '25.3' + - elixir_version: '1.15' + otp_version: '26.2' + - elixir_version: '1.16' + otp_version: '26.2' + - elixir_version: '1.17' + otp_version: '27.3' + - elixir_version: '1.18' + otp_version: '27.3' + - elixir_version: '1.19' + otp_version: '28.3' + - elixir_version: '1.20.0' + otp_version: '29.0' + type_check: true + lint: true steps: - name: Checkout @@ -65,75 +67,24 @@ jobs: with: path: tools/plts key: erlef-${{ runner.os }}-dialyzer-${{ matrix.elixir_version }}-${{ matrix.otp_version }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - if: contains(matrix.elixir_version, '1.15') + if: ${{ matrix.type_check }} - run: mix deps.get - run: MIX_ENV=test mix compile --warnings-as-errors - run: mix credo - if: contains(matrix.elixir_version, '1.15') + if: ${{ matrix.lint }} - name: Check if formatted - if: contains(matrix.elixir_version, '1.15') + if: ${{ matrix.lint }} run: mix format --check-formatted - name: Actual Tests # this will let warnings slip through but I don't wanna replicate all that magic # right now run: MIX_ENV=test mix coveralls.github || mix test --failed # Apparently the one with `!` can't go without the fancy expression syntax - if: ${{ !contains(matrix.elixir_version, '1.15') }} + if: ${{ !matrix.lint }} + # warnings as errors is a form of linting! - name: Actual Tests WITH warnings as errors run: MIX_ENV=test mix coveralls.github --warnings-as-errors || mix test --failed - if: contains(matrix.elixir_version, '1.15') + if: ${{ matrix.lint }} - name: Dialyzer run: mix dialyzer --halt-exit-status - if: contains(matrix.elixir_version, '1.15') - - macos: - name: Test on MacOS - runs-on: macos-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - # no versioning on brew but getting asdf or something was a bigger headache - - name: Install Elixir - run: brew install elixir - - name: Restore deps and _build - uses: actions/cache@v3 - with: - path: | - deps - _build - key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - - run: mix local.hex --force - - run: mix deps.get - - run: mix local.rebar --force - - run: MIX_ENV=test mix compile --warnings-as-errors - - run: mix test || mix test --failed - - windows: - name: Test on Windows - runs-on: windows-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Restore chocolatey - uses: actions/cache@v3 - with: - path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey - key: ${{ runner.os }}-chocolatey-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-chocolatey- - - name: Install Elixir - run: | - choco install elixir --version=1.14.2 --no-progress - set MIX_ENV=test - echo "C:\ProgramData\chocolatey\lib\Elixir\bin;C:\ProgramData\chocolatey\bin;C:\ProgramData\chocolatey\lib\Elixir\tools\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - - name: Build - run: | - echo "$PATH" - mix local.hex --force - mix deps.get - mix local.rebar --force - mix compile --warnings-as-errors - - name: Test - run: mix test || mix test --failed + if: ${{ matrix.type_check }}