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

fix(integration): no spans in the future #3538

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

johanneswuerbach
Copy link
Contributor

Which problem is this PR solving?

I'm using the integration test framework to test my custom grpc plugin, which is working great, except that it can't really deal with traces hours in the future.

Traces in the future are happening if you run the tests before 16:00 UTC as on fixture loading only the date is replaced with the current day, but not the time.

If I run my tests after 17:00 UTC all tests pass as all spans are now in the past.

Short description of the changes

  • Adjusted the timeframe to be yesterday and the day before to ensure no spans are generated in the future.

Signed-off-by: Johannes Würbach <johannes.wuerbach@googlemail.com>
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #3538 (b4bc17f) into main (4d1fc06) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3538      +/-   ##
==========================================
- Coverage   96.50%   96.48%   -0.02%     
==========================================
  Files         263      263              
  Lines       15376    15376              
==========================================
- Hits        14839    14836       -3     
- Misses        454      456       +2     
- Partials       83       84       +1     
Impacted Files Coverage Δ
cmd/query/app/static_handler.go 95.80% <0.00%> (-1.80%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d1fc06...b4bc17f. Read the comment docs.

@yurishkuro yurishkuro merged commit 354ad7c into jaegertracing:main Feb 19, 2022
@johanneswuerbach johanneswuerbach deleted the no-future branch February 21, 2022 22:33
albertteoh pushed a commit to albertteoh/jaeger that referenced this pull request Jul 13, 2022
Signed-off-by: Johannes Würbach <johannes.wuerbach@googlemail.com>
Signed-off-by: Albert Teoh <see.kwang.teoh@gmail.com>
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.

2 participants