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

** (UndefinedFunctionError) function :second.day_rollover_relative_to_midnight_utc/0 is undefined #229

Closed
nelsonic opened this issue Jan 28, 2025 · 2 comments
Assignees
Labels
BLOCKED Core team's HIGHEST priority, blocking critical work priority-1 Highest priority issue. This is costing us money every minute that passes. T25m Time Estimate 25 Minutes tech-debt A feature/requirement implemented in a sub-optimal way & must be re-written technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

Build failing in the PR: #207

https://github.com/dwyl/who/actions/runs/13017035537/job/36308680461

Image
1) test default profile (AppWeb.AppLiveTest)
Error:      test/app_web/live/app_live_test.exs:11
     ** (UndefinedFunctionError) function :second.day_rollover_relative_to_midnight_utc/0 is undefined (module :second is not available)
     code: {:ok, _view, html} = live(conn, "/")
     stacktrace:
       :second.day_rollover_relative_to_midnight_utc()
       (elixir 1.14.3) lib/calendar.ex:344: Calendar.compatible_calendars?/2
       (elixir 1.14.3) lib/calendar/datetime.ex:1641: DateTime.convert/2
       (elixir 1.14.3) lib/calendar/datetime.ex:408: DateTime.from_unix!/3
       (app 1.7.0) lib/app/reqlog.ex:41: App.Reqlog.req_count_last_hour/0
       (app 1.7.0) lib/app_web/live/app_live.ex:20: AppWeb.AppLive.mount/3
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/utils.ex:348: anonymous fn/6 in Phoenix.LiveView.Utils.maybe_call_live_view_mount!/5
       (telemetry 1.3.0) /home/runner/work/who/who/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/static.ex:320: Phoenix.LiveView.Static.call_mount_and_handle_params!/5
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/static.ex:155: Phoenix.LiveView.Static.do_render/4
       (phoenix_live_view 1.0.2) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
       (phoenix 1.7.18) lib/phoenix/router.ex:484: Phoenix.Router.__call__/5
       (app 1.7.0) lib/app_web/endpoint.ex:1: AppWeb.Endpoint.plug_builder_call/2
       (app 1.7.0) lib/app_web/endpoint.ex:1: AppWeb.Endpoint.call/2
       (phoenix 1.7.18) lib/phoenix/test/conn_test.ex:225: Phoenix.ConnTest.dispatch/5
       test/app_web/live/app_live_test.exs:12: (test)
 ** (UndefinedFunctionError) function :second.day_rollover_relative_to_midnight_utc/0 is undefined

Hmm ... 🤔
Gotta investigate this tomorrow morning. 🌅
Right now, gotta go be a Dad for a bit. ❤

@nelsonic nelsonic added BLOCKED Core team's HIGHEST priority, blocking critical work priority-1 Highest priority issue. This is costing us money every minute that passes. T25m Time Estimate 25 Minutes tech-debt A feature/requirement implemented in a sub-optimal way & must be re-written technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Jan 28, 2025
@nelsonic nelsonic self-assigned this Jan 28, 2025
@github-project-automation github-project-automation bot moved this to More ToDo ThanCanEver Be Done in Nelson's List Jan 28, 2025
@nelsonic
Copy link
Member Author

Good morning internet! 👋
I think I know the answer to this one, without Googling ... 💭
I suspect it's because this project is using an older version of Elixir:

- name: Set up Elixir
uses: erlef/setup-beam@v1 # https://github.com/erlef/setup-beam
with:
elixir-version: '1.14.3' # Define the elixir version [required]
otp-version: '25.0' # Define the OTP version [required]

Going to try updating it to latest (v18.2) and see if that helps. 🧑‍💻

@nelsonic
Copy link
Member Author

Worked: ✅

https://github.com/dwyl/who/actions/runs/13026836063/job/36337355864#step:7:291

Image

Good hunch. 👌
Closing. 📕

@github-project-automation github-project-automation bot moved this from More ToDo ThanCanEver Be Done to Done in Nelson's List Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKED Core team's HIGHEST priority, blocking critical work priority-1 Highest priority issue. This is costing us money every minute that passes. T25m Time Estimate 25 Minutes tech-debt A feature/requirement implemented in a sub-optimal way & must be re-written technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
Status: Done
Status: Done
Development

No branches or pull requests

1 participant