Skip to content

tests: Fix flaky tealdbg unit test#5768

Merged
gmalouf merged 1 commit intoalgorand:masterfrom
jasonpaulos:tealdbg-flaky-test
Oct 4, 2023
Merged

tests: Fix flaky tealdbg unit test#5768
gmalouf merged 1 commit intoalgorand:masterfrom
jasonpaulos:tealdbg-flaky-test

Conversation

@jasonpaulos
Copy link
Copy Markdown
Contributor

@jasonpaulos jasonpaulos commented Oct 2, 2023

Summary

Our arm64 nightly build shows a test failure of TestServerLocal and several others from the package cmd/tealdbg: https://app.circleci.com/pipelines/github/algorand/go-algorand/16882/workflows/78daf42e-bd47-4f33-8ac2-b210eaf0b2bb/jobs/256093/tests

I can't say why the others failed (in fact I'm suspicious this is a reporting error), but the failure from TestServerLocal indicates that it couldn't find a free port to use for its server. I've fixed this by using port 0, which should assign it any randomly-chosen available port.

Test Plan

Test-only fix

@jasonpaulos jasonpaulos added Enhancement test Improves testing of existing code labels Oct 2, 2023
@jasonpaulos jasonpaulos self-assigned this Oct 2, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 2, 2023

Codecov Report

Merging #5768 (c3f67bf) into master (79fb8fe) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5768      +/-   ##
==========================================
- Coverage   55.50%   55.45%   -0.05%     
==========================================
  Files         473      473              
  Lines       66684    66684              
==========================================
- Hits        37010    36977      -33     
- Misses      27156    27188      +32     
- Partials     2518     2519       +1     

see 16 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jasonpaulos jasonpaulos marked this pull request as ready for review October 3, 2023 19:58
@gmalouf gmalouf merged commit 4a381cb into algorand:master Oct 4, 2023
@jasonpaulos jasonpaulos deleted the tealdbg-flaky-test branch October 4, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement test Improves testing of existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants