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

Failure when testing sage_conf version #31825

Closed
vbraun opened this issue May 13, 2021 · 16 comments
Closed

Failure when testing sage_conf version #31825

vbraun opened this issue May 13, 2021 · 16 comments

Comments

@vbraun
Copy link
Member

vbraun commented May 13, 2021

I don't know why its important that sage_conf version is 'none', but it sometimes fails with the actual version number after doing some incremental builds:

sage -t --long --warn-long 46.6 --random-seed=0 src/sage/misc/package.py
**********************************************************************
File "src/sage/misc/package.py", line 359, in sage.misc.package.installed_packages
Failed example:
    installed_packages()['sage_conf']  # optional - build
Expected:
    'none'
Got:
    '9.3'
**********************************************************************

Depends on #30913

CC: @jhpalmieri @dimpase @slel

Component: build

Author: Matthias Koeppe

Branch: fea1f4e

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/31825

@vbraun vbraun added this to the sage-9.4 milestone May 13, 2021
@mkoeppe
Copy link
Contributor

mkoeppe commented May 13, 2021

comment:1

This test is changed in #29013.

@mkoeppe
Copy link
Contributor

mkoeppe commented May 13, 2021

Dependencies: #29013

@mkoeppe mkoeppe removed this from the sage-9.4 milestone May 13, 2021
@vbraun
Copy link
Member Author

vbraun commented May 24, 2021

comment:2

Wrong ticket? the test doesn't appear to be changed in #29013 & failure persists with it

@mkoeppe
Copy link
Contributor

mkoeppe commented May 24, 2021

Changed dependencies from #29013 to #30913

@mkoeppe
Copy link
Contributor

mkoeppe commented May 24, 2021

comment:3

Sorry for the confusion. The version for sage_conf was introduced in #30913, and the fix of the doctest appears in #31577. I am going to cherry-pick from there.

@mkoeppe mkoeppe added this to the sage-9.4 milestone May 24, 2021
@mkoeppe
Copy link
Contributor

mkoeppe commented May 24, 2021

@mkoeppe
Copy link
Contributor

mkoeppe commented May 24, 2021

Last 10 new commits:

66c2987build/pkgs/{sage_sws2rst,sage_docbuild}/install-requires.txt: New
7f8ec6cbuild/pkgs/sagelib/src/tox.ini: Add factor sitepackages
0283da5build/make/Makefile.in: Add wheel, setuptools_wheel to PYTHON_TOOLCHAIN to make sure that PEP 517 packages have a complete build system
f720722build/pkgs/sagelib/src/tox.ini: Add factor nobuildisolation
c451b31src/setup.cfg.m4 (install_requires): Add sage_conf
6700223Merge tag '9.3.rc0' into t/30913/sagelib__add_setup_cfg__install_requires_
04da2c6build/pkgs/ipywidgets: Patch out declaring install-requires of nbformat and jupyterlab-widgets
5b75105Merge #30913
e8540a9src/sage/misc/package.py: sage_conf now has a version
fea1f4esrc/sage/misc/package.py: Better doctest for installed_packages

@mkoeppe
Copy link
Contributor

mkoeppe commented May 24, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor

mkoeppe commented May 24, 2021

Commit: fea1f4e

@dimpase
Copy link
Member

dimpase commented May 27, 2021

Reviewer: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented May 27, 2021

comment:7

lgtm

@mkoeppe
Copy link
Contributor

mkoeppe commented May 27, 2021

comment:8

Thanks!

@vbraun
Copy link
Member Author

vbraun commented Jun 6, 2021

Changed branch from u/mkoeppe/failure_when_testing_sage_conf_version to fea1f4e

@fchapoton
Copy link
Contributor

comment:10

now we have

sage -t --long --random-seed=0 src/sage/misc/package.py
**********************************************************************
File "src/sage/misc/package.py", line 359, in sage.misc.package.installed_packages
Failed example:
    installed_packages()['sage_conf'] == sage.env.SAGE_VERSION # optional - build
Expected:
    True
Got:
    False
**********************************************************************
1 item had failures:
   1 of   4 in sage.misc.package.installed_packages
    [52 tests, 1 failure, 3.07 s]
----------------------------------------------------------------------
sage -t --long --random-seed=0 src/sage/misc/package.py  # 1 doctest failed

@fchapoton
Copy link
Contributor

Changed commit from fea1f4e to none

@vbraun
Copy link
Member Author

vbraun commented Jun 7, 2021

comment:11

I think thats whenever you do an incremental build over a Sage version release. Followup at #31928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants