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

test: fix timecop version to keep clock specs in tests #4521

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

daipom
Copy link
Contributor

@daipom daipom commented Jun 5, 2024

Which issue(s) this PR fixes:
None.

What this PR does / why we need it:
Fix the current situation where CI is failing entirely.

timecop 0.9.9 supports Process.clock_gettime.
This breaks specifications of process_extenstion of Fluentd and Fluent::Clock.

Fluent::Clock uses CLOCK_MONOTONIC_RAW if possible and it does not be affected.
However, CLOCK_MONOTONIC_RAW is not available on Windows, so the impact on tests on Windows is very significant.

For now, we should avoid this effect by fixing the version.

Docs Changes:
Not needed.

Release Note:
Not needed.

@daipom daipom added this to the v1.16.6 milestone Jun 5, 2024
@daipom daipom requested review from kenhys and ashie June 5, 2024 04:21
fluentd.gemspec Show resolved Hide resolved
timecop 0.9.9 supports `Process.clock_gettime`.
This breaks specifications of `process_extenstion` of Fluentd and
`Fluent::Clock`.

`Fluent::Clock` uses `CLOCK_MONOTONIC_RAW` if possible and it does not
be affected.
However, `CLOCK_MONOTONIC_RAW` is not available on Windows, so the
impact on tests on Windows is very significant.

For now, we should avoid this effect by fixing the version.

Signed-off-by: Daijiro Fukuda <[email protected]>
@daipom daipom force-pushed the test-fix-timecop-version-to-keep-clock-specs branch from a5b97e8 to 57f821b Compare June 6, 2024 05:23
@daipom
Copy link
Contributor Author

daipom commented Jun 6, 2024

@kenhys Can I merge this?

@kenhys
Copy link
Contributor

kenhys commented Jun 6, 2024

Let's rest of failures in another PR.

Copy link
Contributor

@kenhys kenhys left a comment

Choose a reason for hiding this comment

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

LGTM.

@kenhys kenhys merged commit ec6f307 into master Jun 6, 2024
13 of 16 checks passed
@kenhys kenhys deleted the test-fix-timecop-version-to-keep-clock-specs branch June 6, 2024 08:44
@daipom daipom modified the milestones: v1.16.6, v1.17.1 Aug 15, 2024
@daipom daipom added the backport to LTS We will backport this fix to the LTS branch label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport to LTS We will backport this fix to the LTS branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants