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

Debug travis #1665

Merged
merged 2 commits into from
Jul 24, 2019
Merged

Debug travis #1665

merged 2 commits into from
Jul 24, 2019

Conversation

amarkpayne
Copy link
Member

Motivation or Problem

A bug (well, at least we hope it is a bug and not a new feature) in Travis Worker 6.2.1 means that these builds only run with 1 CPU instead of the expected two. This made us realize that we have a bug in one of our unit tests that does not check the number of CPUs properly (fixed by this PR). We also want to display CPU and memory information in the Travis build log so that we can debug errors like this in the future.

While this PR will not fix Travis builds completely for 6.2.1 (there is no work around for insufficient memory) it fixes everything that we can right now, and we have opened up issues with Travis.

Description of Changes

  • Reset module level rmgpy.rmg.main.maxproc back to the default of 1 at the end of individual tests
  • Print CPU and memory info in the Travis logs.

Testing

I have already tested that our bug fixes work in Travis Worker 6.2.1, so we just need this to build in Travis Worker 6.2.0 so that we can merge this PR.

@amarkpayne amarkpayne self-assigned this Jul 23, 2019
@amarkpayne amarkpayne added Before Py3 Should be merged before Python 3 transition Complexity: Low Type: Bug Type: Testing labels Jul 23, 2019
@codecov
Copy link

codecov bot commented Jul 23, 2019

Codecov Report

Merging #1665 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1665   +/-   ##
=======================================
  Coverage   41.68%   41.68%           
=======================================
  Files         176      176           
  Lines       29341    29341           
  Branches     6049     6049           
=======================================
  Hits        12232    12232           
  Misses      16239    16239           
  Partials      870      870

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 9b3d0cc...0541d3d. Read the comment docs.

@amarkpayne
Copy link
Member Author

See travis-ci/worker#604 for the issue we created with Travis on these problems

@mliu49
Copy link
Contributor

mliu49 commented Jul 24, 2019

You can rebase and I'll merge this.

@mliu49 mliu49 merged commit 6274d70 into master Jul 24, 2019
@mliu49 mliu49 deleted the debug_travis branch July 24, 2019 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Before Py3 Should be merged before Python 3 transition Complexity: Low Type: Bug Type: Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants