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

testsuite: fix a couple intermittent test failures #4247

Merged
merged 2 commits into from
Mar 30, 2022

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Mar 29, 2022

This PR fixes a couple minor test failures:

  • ping tests assume short hostname
  • timelimit test might fail due to inconsistent Python rounding

@grondo grondo modified the milestone: flux-core v0.38.0 Mar 29, 2022
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

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

LGTM! One funny typo in the rounding commit message though:
s/floatin-ping/floating-point/

@grondo
Copy link
Contributor Author

grondo commented Mar 29, 2022

Oh, typing too fast

@grondo
Copy link
Contributor Author

grondo commented Mar 29, 2022

Thanks! I fixed the typo and will set MWP

grondo added 2 commits March 29, 2022 23:39
Problem: A couple tests in `t0007-ping.t` assume short hostnames
by using $(hostname -s) as an expected value. This causes failures
when the domain is part of the hostname.

Change uses of $(hostname -s) to just $(hostname)

Fixes flux-framework#4109
Problem: t2900-job-timelimits.t has been seen to fail when flux-jobs
rounds the expiration of a job differently than is in the instance R.

Since we're not concerned with floating-point seconds for this particular
test, be sure to round/truncate the expiration values before comparison
by using the existing round() function.
@codecov
Copy link

codecov bot commented Mar 29, 2022

Codecov Report

Merging #4247 (beed92e) into master (c4d294c) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head beed92e differs from pull request most recent head e924dbc. Consider uploading reports for the commit e924dbc to get more accurate results

@@            Coverage Diff             @@
##           master    #4247      +/-   ##
==========================================
- Coverage   83.54%   83.53%   -0.02%     
==========================================
  Files         386      386              
  Lines       64651    64640      -11     
==========================================
- Hits        54012    53994      -18     
- Misses      10639    10646       +7     
Impacted Files Coverage Δ
src/cmd/top/top.c 76.71% <0.00%> (-4.80%) ⬇️
src/cmd/top/summary_pane.c 80.90% <0.00%> (-2.52%) ⬇️
src/broker/state_machine.c 81.42% <0.00%> (-1.07%) ⬇️
src/modules/cron/cron.c 82.47% <0.00%> (-0.45%) ⬇️
src/common/libsubprocess/local.c 78.41% <0.00%> (-0.31%) ⬇️
src/modules/job-info/guest_watch.c 76.75% <0.00%> (-0.28%) ⬇️
src/broker/overlay.c 86.72% <0.00%> (-0.11%) ⬇️
src/cmd/flux-module.c 84.25% <0.00%> (+0.29%) ⬆️
src/common/libsubprocess/subprocess.c 89.00% <0.00%> (+0.30%) ⬆️
src/common/libflux/message.c 93.55% <0.00%> (+0.46%) ⬆️
... and 3 more

@mergify mergify bot merged commit 88839a2 into flux-framework:master Mar 30, 2022
@grondo grondo deleted the issue#4109 branch March 30, 2022 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants