Skip to content

Fix workflows#61

Merged
emancu merged 5 commits into
masterfrom
fix_workflows
Jan 15, 2026
Merged

Fix workflows#61
emancu merged 5 commits into
masterfrom
fix_workflows

Conversation

@emancu

@emancu emancu commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

Seems to be abandoned, so i need to update the workflows and since i am here.. dependencies.

@emancu emancu requested a review from krukonshedul January 10, 2026 18:26
@emancu emancu self-assigned this Jan 10, 2026
@emancu emancu force-pushed the fix_workflows branch 6 times, most recently from aebca1b to 06f79de Compare January 11, 2026 18:22
# In Elixir 1.14+, Timex.shift/2 upgrades datetime precision to microseconds.
# This caused datetimes like ~U[2023-01-01 10:00:00Z] to become ~U[2023-01-01 10:00:00.000000Z]
# which breaks Ecto validations and equality checks.
describe "date_and_offset_to_datetime/3 precision" do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It should not add anything new functionally, but I would add a test with the Daylight Saving Time change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will cover this in the other PR 👍

@Paritosh-Anand Paritosh-Anand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are lot of drifts in the pipeline as compared to other elixir packages ex. https://github.com/surgeventures/credo-checks/blob/master/.github/workflows/elixir-checks.yaml

My suggestion would be to update the pipeline and make it similar to credo-checks to standardize the pipeline.

@emancu emancu force-pushed the fix_workflows branch 6 times, most recently from 15eaf1c to d41560e Compare January 14, 2026 18:01
@emancu

emancu commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

Im disabling the stupid publish pipeline that it seems imposible to run, and not getting any help 🤷

@Paritosh-Anand

Paritosh-Anand commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Im disabling the stupid publish pipeline that it seems imposible to run, and not getting any help 🤷

🤔 But CI is failing on mix test unable to interact with postgres. Removing publish will not help!

@Paritosh-Anand Paritosh-Anand force-pushed the fix_workflows branch 4 times, most recently from 7a067f1 to 13b8980 Compare January 15, 2026 14:03
Comment thread mix.exs
@@ -5,7 +5,7 @@ defmodule Surgex.Mixfile do
[
app: :surgex,
version: "5.0.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pls remember to bump the version before merging.
Version 5.0.0 is already published

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe I dont want to release immediately.. 👍 So the pipeline should prevent this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I dont know what is this, i will revisit later and delete if possible

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

😵‍💫

@emancu emancu merged commit 5125b84 into master Jan 15, 2026
6 checks passed
@emancu emancu deleted the fix_workflows branch January 15, 2026 15:32
defp shift_datetime(datetime, offset) do
case Timex.shift(datetime, seconds: offset) do
%NaiveDateTime{} = datetime -> {:ok, datetime}
%NaiveDateTime{} = shifted -> {:ok, NaiveDateTime.truncate(shifted, :second)}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🤦 This was supposed to be #60

My bad

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.

3 participants