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

pythonPackages.reportlab: remove test files that require network for the tests to pass #44244

Merged
merged 1 commit into from Jul 30, 2018

Conversation

kalbasit
Copy link
Member

@kalbasit kalbasit commented Jul 30, 2018

Motivation for this change

This PR removes the tests that require the network to pass.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

closes #44204

cc @FRidh @eadwu

@kalbasit kalbasit requested a review from FRidh as a code owner July 30, 2018 21:07
@@ -25,6 +25,9 @@ in buildPythonPackage rec {
postPatch = ''
rm tests/test_graphics_barcode.py
rm tests/test_graphics_render.py
rm tests/test_lib_utils.py
rm tests/test_platypus_breaking.py
rm tests/test_platypus_general.py
Copy link
Member

Choose a reason for hiding this comment

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

You should add comments explaining why which test is removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@@ -22,9 +22,13 @@ in buildPythonPackage rec {

buildInputs = [ ft pillow ];

# Remove all the test files that require access to the internet to pass.
Copy link
Member

Choose a reason for hiding this comment

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

Is that also the case for the two that were already disabled?

Copy link
Member Author

Choose a reason for hiding this comment

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

they were originally removed in 9558ab1 but I did some checking and they are failing the checkPhase executes LC_ALL="en_US.UTF-8" ${python.interpreter} tests/runAll.py but the tests upstream run from within the tests folder.

I'm going to do some testing and will rebase this and PTAL you.

rm tests/test_lib_utils.py
rm tests/test_platypus_general.py

# Remove the tests that require Vera fonts installed
Copy link
Member Author

Choose a reason for hiding this comment

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

@dotlambda I can probably figure out how to get Vera font for the test, (I tried adding pkgs.ttf-bitstream-vera to the checkInputs but it did not work).

@dotlambda PTAL.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think that's necessary. Thanks a lot for your work!

@dotlambda
Copy link
Member

@GrahamcOfBorg build reportlab

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: reportlab

Partial log (click to expand)

Cannot nix-instantiate `reportlab' because:
error: attribute 'reportlab' in selection path 'reportlab' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: reportlab

Partial log (click to expand)

Cannot nix-instantiate `reportlab' because:
error: attribute 'reportlab' in selection path 'reportlab' not found

@dotlambda dotlambda changed the title reportlab: remove test files that require network for the tests to pass pythonPackages.reportlab: remove test files that require network for the tests to pass Jul 30, 2018
@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.reportlab python3.pkgs.reportlab

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python2.pkgs.reportlab, python3.pkgs.reportlab

Partial log (click to expand)

Ran 252 tests in 227.626s

OK (skipped=2)
...........................................................................................................
----------------------------------------------------------------------
Ran 252 tests in 271.878s

OK (skipped=2)
/nix/store/k8imq2k4591cp872dvx224k4whmbcsjm-python2.7-reportlab-3.5.2
/nix/store/3lv73p8sglcg68ksx9mv03acd9g868i8-python3.6-reportlab-3.5.2

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python2.pkgs.reportlab, python3.pkgs.reportlab

Partial log (click to expand)

Ran 252 tests in 261.666s

OK (skipped=2)
........................................................................................................................................................................................................s..s................................................
----------------------------------------------------------------------
Ran 252 tests in 314.769s

OK (skipped=2)
/nix/store/ifcj0cs318h190jr7r856y5v0jy3rp0g-python2.7-reportlab-3.5.2
/nix/store/6ylnmdsv15gi7d1nnlxks8bc5d5ckhc0-python3.6-reportlab-3.5.2

@dotlambda dotlambda merged commit 138d3be into NixOS:master Jul 30, 2018
@kalbasit kalbasit deleted the fix-reportlab branch July 30, 2018 22:15
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.

reportlab is broken on current master
3 participants