Skip to content
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

Bump elixir/erlang and dependencies & add timezone to airports #22

Merged
merged 48 commits into from
Jul 23, 2024

Conversation

dgigafox
Copy link
Contributor

Changes:

  • Bump elixir from 1.16 to 1.17 and erlang from 26.2 to 27.0
  • Add timezone data accessible through the timezone_id field of the Airport struct which can be updated using mix airports.update. The source of timezone data is tz_world
  • Bump other mix dependencies

dependabot bot and others added 30 commits April 1, 2022 15:04
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [dialyxir](https://github.com/jeremyjh/dialyxir) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/jeremyjh/dialyxir/releases)
- [Changelog](https://github.com/jeremyjh/dialyxir/blob/master/CHANGELOG.md)
- [Commits](jeremyjh/dialyxir@1.1.0...1.2.0)

---
updated-dependencies:
- dependency-name: dialyxir
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…checkout-3

Bump actions/checkout from 2 to 3
Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.14.6 to 0.16.1.
- [Release notes](https://github.com/parroty/excoveralls/releases)
- [Changelog](https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md)
- [Commits](parroty/excoveralls@v0.14.6...v0.16.1)

---
updated-dependencies:
- dependency-name: excoveralls
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.29.4 to 0.30.6.
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](elixir-lang/ex_doc@v0.29.4...v0.30.6)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…/checkout-4

Bump actions/checkout from 3 to 4
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.31.0 to 0.31.1.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](elixir-lang/ex_doc@v0.31.0...v0.31.1)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
alexfilippovw and others added 11 commits June 6, 2024 21:05
feat(WEB-7334): Add API for getting timezone based on IATA code
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.34.1 to 0.34.2.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](elixir-lang/ex_doc@v0.34.1...v0.34.2)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [castore](https://github.com/elixir-mint/castore) from 1.0.7 to 1.0.8.
- [Commits](elixir-mint/castore@v1.0.7...v1.0.8)

---
updated-dependencies:
- dependency-name: castore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bump elixir from 1.16 to 1.17 and erlang from 26.2 to 27.0
Copy link
Member

@sjoulbak sjoulbak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @dgigafox 👋 Thanks for your contribution! I ran mix airports.update locally and liked the progress indicator. I did not had any changes, so its looking good 👌 A nice addition for in the future would be to first update priv/airports.csv in the same command 😄

I left a few comments, could you take a look at those?

mix.exs Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@@ -16,6 +17,7 @@ defmodule Airports.Airport do
:local_code,
:home_link,
:wikipedia_link,
:keywords
:keywords,
:timezone_id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a changelog entry at 1.0.0 for this addition?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing

def run do
source_path()
|> File.stream!()
|> AirportsParser.parse_stream(skip_headers: true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a changelog entry for this addition as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this branch up-to-date with its base branch? I added pull_request to the github action workflow, so it will run here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a problem with github action on push and pull request as it doubles the job and I'm getting this error:

** (ExCoveralls.ReportUploadError) Failed to upload the report to 'https://coveralls.io/' (reason: status_code = 422, body = {"message":"Can't add a job to a build that is already closed. Build 4a906ff5af85935d69cae47d180084dacce7e615-PR-43 is closed. See docs.coveralls.io/parallel-builds","error":true}).

image

@samhamilton could you take a look at this one too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is caused by the following change: d23b5b9

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dgigafox I pushed a new change to the branch. Hopefully that will fix it. Can you make this branch up-to-date with its base branch again?

@dgigafox
Copy link
Contributor Author

@sjoulbak change requests are pushed. Please take a look again. Thanks!

Btw, about

A nice addition for in the future would be to first update priv/airports.csv in the same command 😄

Agree on this. Will take a look at that

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7d1162caeb87b3db1b9c366b6a9261d5ccfd5a7c-PR-22

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 4 of 31 (12.9%) changed or added relevant lines in 3 files are covered.
  • 13 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+3.3%) to 5.155%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/airports/loader.ex 0 4 0.0%
lib/mix/tasks/update.ex 0 23 0.0%
Files with Coverage Reduction New Missed Lines %
deps/nimble_csv/lib/nimble_csv.ex 13 0.0%
Totals Coverage Status
Change from base Build d23b5b9ca5e36ef8c3bc8bbb7504f7af4bd08b82: 3.3%
Covered Lines: 5
Relevant Lines: 97

💛 - Coveralls

@dgigafox
Copy link
Contributor Author

@sjoulbak error on workflow appeared again because I think this is both a pull request and a pull to master.

@sjoulbak
Copy link
Member

@dgigafox Its fine by me if you remove excoveralls from the workflow for now, but keep it in the code base so we can run it locally. Currently we're not covering a lot for this package

@dgigafox
Copy link
Contributor Author

dgigafox commented Jul 23, 2024

@dgigafox Its fine by me if you remove excoveralls from the workflow for now, but keep it in the code base so we can run it locally. Currently we're not covering a lot for this package

@sjoulbak We replaced the coveralls with a simple mix test. All green now

Copy link
Member

@sjoulbak sjoulbak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@sjoulbak sjoulbak merged commit 80bdc8a into nerds-and-company:master Jul 23, 2024
11 checks passed
@sjoulbak
Copy link
Member

@dgigafox and @samhamilton Thanks both for all of your effort! 🎉 I've released 1.0.0 🎉

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

Successfully merging this pull request may close these issues.

5 participants