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 tests #937

Merged
merged 5 commits into from
Feb 8, 2021
Merged

Fix tests #937

merged 5 commits into from
Feb 8, 2021

Conversation

lbolla
Copy link
Contributor

@lbolla lbolla commented Feb 6, 2021

Fixes #933

Fix tests failing on Travis.
Most of the tests were failing because of expired PGP keys. I've downloaded the most recent ones from Debian (and elsewhere), updated the fixtures and fixed some more tests.

The patchset is already large as it is. In following PRs I'd like to:

  • test against newer versions of Go
  • add support for Python3 (and maybe drop Python2?)
  • test against Bionic/Focal instead of Xenial

Otherwise, it's possible that certain network configuration defining
*.localhost cause the tests to fail.
Even if a simple git hash.
PGP tests relied on expired gpg keys: upgrade with newer Debian keys from
https://ftp-master.debian.org/keys.html.
Download new fixtures files from http://ftp.debian.org/debian/dists/buster/
@lbolla
Copy link
Contributor Author

lbolla commented Feb 6, 2021

Interesting, normal Travis tests pass but the ones triggered by a PR do not.
I'll look into why.

@codecov
Copy link

codecov bot commented Feb 8, 2021

Codecov Report

Merging #937 (b6a562e) into master (24a0271) will decrease coverage by 2.38%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #937      +/-   ##
==========================================
- Coverage   63.79%   61.41%   -2.39%     
==========================================
  Files          54       54              
  Lines        6674     5911     -763     
==========================================
- Hits         4258     3630     -628     
+ Misses       1890     1757     -133     
+ Partials      526      524       -2     
Impacted Files Coverage Δ
database/goleveldb/transaction.go 64.70% <0.00%> (-8.03%) ⬇️
database/goleveldb/storage.go 73.52% <0.00%> (-5.30%) ⬇️
deb/snapshot.go 66.50% <0.00%> (-4.87%) ⬇️
utils/config.go 60.00% <0.00%> (-4.71%) ⬇️
deb/uploaders.go 66.66% <0.00%> (-4.45%) ⬇️
pgp/internal.go 47.57% <0.00%> (-4.38%) ⬇️
database/goleveldb/database.go 72.72% <0.00%> (-4.20%) ⬇️
deb/local.go 76.41% <0.00%> (-3.90%) ⬇️
pgp/openpgp.go 47.61% <0.00%> (-3.86%) ⬇️
deb/checksum_collection.go 76.19% <0.00%> (-3.81%) ⬇️
... and 44 more

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 24a0271...b6a562e. Read the comment docs.

@lbolla
Copy link
Contributor Author

lbolla commented Feb 8, 2021

Simply re-running the failing Travis job above made it pass. So, the problem must be some race condition or otherwise aleatory condition. I think it makes sense to merge this patch and tackle this other problem in another PR.

@lbolla lbolla merged commit c43d31f into master Feb 8, 2021
@neolynx neolynx deleted the fix-tests branch July 3, 2024 10:22
This pull request was closed.
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.

build failing
2 participants