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

behave: 1.2.5 -> 1.2.6 #36359

Merged
merged 5 commits into from Apr 4, 2018
Merged

behave: 1.2.5 -> 1.2.6 #36359

merged 5 commits into from Apr 4, 2018

Conversation

alunduil
Copy link
Contributor

@alunduil alunduil commented Mar 5, 2018

Motivation for this change

Simple package bump of behave. This also includes bumps of parse-type and parse to preserve
dependencies of behave.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

@alunduil alunduil requested a review from FRidh as a code owner March 5, 2018 23:10
@Mic92 Mic92 changed the title bump behave to version 1.2.6 behave: 1.2.5 -> 1.2.6 Mar 5, 2018
Copy link
Member

@Mic92 Mic92 left a comment

Choose a reason for hiding this comment

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

Also please change to commit messages to have the same format as the pull request title (that I changed).

@@ -6,21 +6,13 @@

buildPythonPackage rec {
pname = "parse_type";
version = "0.3.4";
version = "0.4.2";
Copy link
Member

Choose a reason for hiding this comment

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

Can you make this a separate commit?

@@ -3,22 +3,14 @@
}:
buildPythonPackage rec {
pname = "parse";
version = "1.6.6";
version = "1.8.2";
Copy link
Member

Choose a reason for hiding this comment

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

Can you make this a separate commit?

@alunduil
Copy link
Contributor Author

alunduil commented Mar 7, 2018

I cleaned up those commits and made sure each package was separate. Let me know if there is anything else that needs to be changed.

@Mic92
Copy link
Member

Mic92 commented Mar 8, 2018

@GrahamcOfBorg build python27Packages.parse python36Packages.parse-type python27Packages.pyparser python36Packages.parse python36Packages.pyparser python27Packages.behave papis python27Packages.parse-type

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘python3.6-construct-2.8.16’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/development/python-modules/construct/default.nix:22 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

......Collecting traceback2; python_version < "3.0" (from behave==1.2.6)
  Could not find a version that satisfies the requirement traceback2; python_version < "3.0" (from behave==1.2.6) (from versions: )
No matching distribution found for traceback2; python_version < "3.0" (from behave==1.2.6)
...builder for ‘/nix/store/w2avpply2xcnp9vnl3jab2cxidpvqbp1-behave-1.2.6.drv’ failed with exit code 1
.............. [ 71%]
.....................                                                    [ 82%]
tests/test_parse_util.py .................................               [100%]

========================== 192 passed in 1.93 seconds ==========================
error: build of ‘/nix/store/s0zy03sjw77rvi4yhlfv18xxbzalklkx-papis-0.5.3.drv’, ‘/nix/store/w2avpply2xcnp9vnl3jab2cxidpvqbp1-behave-1.2.6.drv’ failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

tests/test_cardinality_field.py ..........................               [ 43%]
builder for '/nix/store/2fzc6pdvbgcbjrblrqd9aklh023rvgif-behave-1.2.6.drv' failed with exit code 1
tests/test_cfparse.py .........                                          [ 47%]
tests/test_parse_decorator.py .....                                      [ 50%]
tests/test_parse_type_parse.py ......................................... [ 71%]
.....................                                                    [ 82%]
tests/test_parse_util.py .................................               [100%]

========================== 192 passed in 2.59 seconds ==========================
�[31;1merror:�[0m build of '/nix/store/2fzc6pdvbgcbjrblrqd9aklh023rvgif-behave-1.2.6.drv', '/nix/store/vxl6yq830jxwxv658s00fgiz1p0w8mnn-papis-0.5.3.drv' failed

@Mic92
Copy link
Member

Mic92 commented Mar 8, 2018

Looks like traceback2 is missing for python2 or so?

@alunduil
Copy link
Contributor Author

alunduil commented Mar 8, 2018

Since behave is designed to be a standalone executable, I've disabled py27. This should resolve the build issues that came up. Let me know if there is anything else.

name = "${pname}-${version}";

disabled = pythonAtLeast "3.6";
disabled = isPy27;
Copy link
Member

Choose a reason for hiding this comment

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

So this is not supposed to be executed with the python version one wants to run the tests with? https://github.com/behave/behave

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct and I'll add python27 back in. Thanks for pointing out a bad solution.

On a slightly tangential note, how much longer will python27 be the default python installation and available on NixOS?

@alunduil
Copy link
Contributor Author

alunduil commented Mar 9, 2018

I've fixed the unacceptable build error and have verified that python27 does build correctly now.

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@alunduil regarding python3 #18185

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

@GrahamcOfBorg build python27Packages.parse python36Packages.parse-type python27Packages.pyparser python36Packages.parse python36Packages.pyparser python27Packages.behave papis python27Packages.parse-type

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘python3.6-construct-2.8.16’ in /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/development/python-modules/construct/default.nix:22 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Partial log (click to expand)

test_cpu_info_match_parser (tests.test_regex.TestRegexParser)
Test parsing /proc/cpuinfo without kwargs ... ok
test_normal (tests.test_format.TestFormatParser) ... ok

----------------------------------------------------------------------
Ran 17 tests in 0.006s

OK
cannot build derivation ‘/nix/store/s0zy03sjw77rvi4yhlfv18xxbzalklkx-papis-0.5.3.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/s0zy03sjw77rvi4yhlfv18xxbzalklkx-papis-0.5.3.drv’ failed

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

Was this bibtexparser broken before?

$ nix-shell -p papis
...
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/bwriter.py -> build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/bparser.py -> build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/bibdatabase.py -> build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/__init__.py -> build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/latexenc.py -> build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/customization.py -> build/bdist.linux-x86_64/wheel/bibtexparser
copying build/lib/bibtexparser/bibtexexpression.py -> build/bdist.linux-x86_64/wheel/bibtexparser
running install_egg_info
running egg_info
writing bibtexparser.egg-info/PKG-INFO
writing dependency_links to bibtexparser.egg-info/dependency_links.txt
writing requirements to bibtexparser.egg-info/requires.txt
writing top-level names to bibtexparser.egg-info/top_level.txt
reading manifest file 'bibtexparser.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.md'
writing manifest file 'bibtexparser.egg-info/SOURCES.txt'
Copying bibtexparser.egg-info to build/bdist.linux-x86_64/wheel/bibtexparser-1.0.1-py3.6.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/bibtexparser-1.0.1.dist-info/WHEEL
creating '/build/bibtexparser-1.0.1/dist/bibtexparser-1.0.1-py3-none-any.whl' and adding '.' to it
adding 'bibtexparser/__init__.py'
adding 'bibtexparser/bibdatabase.py'
adding 'bibtexparser/bibtexexpression.py'
adding 'bibtexparser/bparser.py'
adding 'bibtexparser/bwriter.py'
adding 'bibtexparser/customization.py'
adding 'bibtexparser/latexenc.py'
adding 'bibtexparser-1.0.1.dist-info/DESCRIPTION.rst'
adding 'bibtexparser-1.0.1.dist-info/metadata.json'
adding 'bibtexparser-1.0.1.dist-info/top_level.txt'
adding 'bibtexparser-1.0.1.dist-info/WHEEL'
adding 'bibtexparser-1.0.1.dist-info/METADATA'
adding 'bibtexparser-1.0.1.dist-info/RECORD'
installing
/build/bibtexparser-1.0.1/dist /build/bibtexparser-1.0.1
Processing ./bibtexparser-1.0.1-py3-none-any.whl
Collecting pyparsing (from bibtexparser==1.0.1)
  Could not find a version that satisfies the requirement pyparsing (from bibtexparser==1.0.1) (from versions: )
No matching distribution found for pyparsing (from bibtexparser==1.0.1)
builder for '/nix/store/axil5yxwcvapd4nirvnb8bbajp8865lq-python3.6-bibtexparser-1.0.1.drv' failed with exit code 1
cannot build derivation '/nix/store/h0q3lz09kdjyc9mw8l6aj76ypb88m8gc-papis-0.5.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/h0q3lz09kdjyc9mw8l6aj76ypb88m8gc-papis-0.5.3.drv' failed

Looks like an easy fix given we already have pyparsing though.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

  Failing w/o Encoding-Hint in Steps File (case: python2)  ..........

Issue #606 -- Name option with special unicode chars    # issue.features/issue0606.feature
  Use special unicode chars in --name options  ........

85 features passed, 0 failed, 2 skipped
213 scenarios passed, 0 failed, 3 skipped
1079 steps passed, 0 failed, 24 skipped, 0 undefined
Took 2m31.101s
�[31;1merror:�[0m build of '/nix/store/vxl6yq830jxwxv658s00fgiz1p0w8mnn-papis-0.5.3.drv' failed

@alunduil
Copy link
Contributor Author

alunduil commented Mar 9, 2018

@Mic92 I don't think the bibtexparser issue was there before. Let me know if you'd like me to take a crack at fixing that in this branch.

@Mic92
Copy link
Member

Mic92 commented Mar 9, 2018

I would be glad, if you could take a look at it @alunduil

@alunduil
Copy link
Contributor Author

@Mic92 I've fixed the bibtexparser build issues (verified with a nix-build -A papis run locally). Let me know if the commit message is acceptable or if it should be changed to something else. Hopefully, the next run will show everything working as expected.

@alunduil
Copy link
Contributor Author

Finally got a moment to resolve the conflicts. Let me know if any of my choices should be different.

@Mic92 Mic92 merged commit 814288c into NixOS:master Apr 4, 2018
@Mic92
Copy link
Member

Mic92 commented Apr 4, 2018

Thanks!

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.

None yet

3 participants