You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2023/02/21 02:24:52 UTC
[buildstream] branch tristan/python3.11-bst1 updated (ba39bb7dc -> 2e4d271fb)
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a change to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
discard ba39bb7dc Bump tested grpcio to 1.51.1
discard fa24136d3 Update pinned ruamel.yaml.clib to 0.2.7
discard eeac5663c Enable python 3.11 test
discard 6c6ccdc63 .github: Run tests in fedora 37 as well
new 2f7f22a6d .github: Run tests in fedora 37 as well
new 98b112530 Enable python 3.11 test
new 2e5d2c17e Update pinned ruamel.yaml.clib to 0.2.7
new 1be5deae4 Bump tested grpcio to 1.51.1
new 2e4d271fb Try to invoke BuildStream as external program to avoid hangs
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (ba39bb7dc)
\
N -- N -- N refs/heads/tristan/python3.11-bst1 (2e4d271fb)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
tests/testutils/runcli.py | 106 +++++++++-------------------------------------
1 file changed, 20 insertions(+), 86 deletions(-)
[buildstream] 04/05: Bump tested grpcio to 1.51.1
Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 1be5deae4addfb4d974d4cd9935f0c42e7aa95a6
Author: Seppo Yli-Olli <se...@gmail.com>
AuthorDate: Sat Nov 12 16:20:06 2022 +0200
Bump tested grpcio to 1.51.1
This is first upstream release that advertises Python 3.11 support
---
requirements/requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements/requirements.txt b/requirements/requirements.txt
index 39de8fb81..c9a8f0a1b 100644
--- a/requirements/requirements.txt
+++ b/requirements/requirements.txt
@@ -1,5 +1,5 @@
click==8.1.3
-grpcio==1.48.0
+grpcio==1.51.1
Jinja2==3.1.2
pluginbase==1.0.1
protobuf==4.21.4
[buildstream] 01/05: .github: Run tests in fedora 37 as well
Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 2f7f22a6dba57bff36093f4b4b9b0f4c804416dc
Author: Javier Jardón <jj...@gnome.org>
AuthorDate: Sun Sep 18 21:21:24 2022 +0100
.github: Run tests in fedora 37 as well
And remove soon to be deprecated fedora 35
---
.github/common.env | 2 +-
.github/compose/ci.docker-compose.yml | 10 +++++-----
.github/run-ci.sh | 2 +-
.github/workflows/ci.yml | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/.github/common.env b/.github/common.env
index e8f0776f4..1b19378f9 100644
--- a/.github/common.env
+++ b/.github/common.env
@@ -1,5 +1,5 @@
# Shared common variables
-CI_IMAGE_VERSION=master-533491591
+CI_IMAGE_VERSION=master-643533272
CI_TOXENV_MAIN=py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover
CI_TOXENV_ALL="${CI_TOXENV_MAIN}"
diff --git a/.github/compose/ci.docker-compose.yml b/.github/compose/ci.docker-compose.yml
index 05a704b67..0f693e6eb 100644
--- a/.github/compose/ci.docker-compose.yml
+++ b/.github/compose/ci.docker-compose.yml
@@ -1,7 +1,7 @@
version: '3.4'
x-tests-template: &tests-template
- image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:35-${CI_IMAGE_VERSION:-latest}
+ image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:36-${CI_IMAGE_VERSION:-latest}
command: tox -vvvvv -- --color=yes --integration
environment:
TOXENV: ${CI_TOXENV_ALL}
@@ -22,14 +22,14 @@ x-tests-template: &tests-template
services:
- fedora-35:
- <<: *tests-template
- image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:35-${CI_IMAGE_VERSION:-latest}
-
fedora-36:
<<: *tests-template
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:36-${CI_IMAGE_VERSION:-latest}
+ fedora-37:
+ <<: *tests-template
+ image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:37-${CI_IMAGE_VERSION:-latest}
+
debian-10:
<<: *tests-template
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:10-${CI_IMAGE_VERSION:-latest}
diff --git a/.github/run-ci.sh b/.github/run-ci.sh
index e923b9d2a..b19f8ad32 100755
--- a/.github/run-ci.sh
+++ b/.github/run-ci.sh
@@ -67,8 +67,8 @@ set -e
if [ -z "${test_names}" ]; then
runTest "lint"
runTest "debian-10"
- runTest "fedora-35"
runTest "fedora-36"
+ runTest "fedora-37"
else
for test_name in "${test_names}"; do
runTest "${test_name}"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 79ea923b6..c6118d30f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -26,8 +26,8 @@ jobs:
# "../compose/ci.docker-compose.yml"
test-name:
- debian-10
- - fedora-35
- fedora-36
+ - fedora-37
- lint
steps:
[buildstream] 02/05: Enable python 3.11 test
Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 98b112530658e54cab8e461fdd99f7656a5ccbd7
Author: Javier Jardón <jj...@gnome.org>
AuthorDate: Sun Sep 18 23:04:06 2022 +0100
Enable python 3.11 test
This is the python version in fedora 37
---
.github/common.env | 2 +-
buildstream/plugins/sources/pip.py | 1 +
tox.ini | 20 ++++++++++----------
3 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/.github/common.env b/.github/common.env
index 1b19378f9..f5db87b93 100644
--- a/.github/common.env
+++ b/.github/common.env
@@ -1,5 +1,5 @@
# Shared common variables
CI_IMAGE_VERSION=master-643533272
-CI_TOXENV_MAIN=py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover
+CI_TOXENV_MAIN=py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover,py311-nocover
CI_TOXENV_ALL="${CI_TOXENV_MAIN}"
diff --git a/buildstream/plugins/sources/pip.py b/buildstream/plugins/sources/pip.py
index 6ea8476e0..381f24a72 100644
--- a/buildstream/plugins/sources/pip.py
+++ b/buildstream/plugins/sources/pip.py
@@ -93,6 +93,7 @@ _PYTHON_VERSIONS = [
'python3.8',
'python3.9',
'python3.10',
+ 'python3.11',
]
# List of allowed extensions taken from
diff --git a/tox.ini b/tox.ini
index a5d14a209..f388ce4a5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,7 +2,7 @@
# Tox global configuration
#
[tox]
-envlist = py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover
+envlist = py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover,py311-nocover
skip_missing_interpreters = true
#
@@ -13,16 +13,16 @@ skip_missing_interpreters = true
[testenv]
commands =
# Running with coverage reporting enabled
- py{36,37,38,39,310}-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs}
- py{36,37,38,39,310}-!nocover: mkdir -p .coverage-reports
- py{36,37,38,39,310}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
+ py{36,37,38,39,310,311}-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs}
+ py{36,37,38,39,310,311}-!nocover: mkdir -p .coverage-reports
+ py{36,37,38,39,310,311}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
# Running with coverage reporting disabled
- py{36,37,38,39,310}-nocover: pytest --basetemp {envtmpdir} {posargs}
+ py{36,37,38,39,310,311}-nocover: pytest --basetemp {envtmpdir} {posargs}
deps =
- py{36,37,38,39,310}: -rrequirements/requirements.txt
- py{36,37,38,39,310}: -rrequirements/dev-requirements.txt
- py{36,37,38,39,310}: -rrequirements/plugin-requirements.txt
+ py{36,37,38,39,310,311}: -rrequirements/requirements.txt
+ py{36,37,38,39,310,311}: -rrequirements/dev-requirements.txt
+ py{36,37,38,39,310,311}: -rrequirements/plugin-requirements.txt
# Only require coverage and pytest-cov when using it
!nocover: -rrequirements/cov-requirements.txt
@@ -35,9 +35,9 @@ passenv =
# These keys are not inherited by any other sections
#
setenv =
- py{36,37,38,39,310}: COVERAGE_FILE = {envtmpdir}/.coverage
+ py{36,37,38,39,310,311}: COVERAGE_FILE = {envtmpdir}/.coverage
whitelist_externals =
- py{36,37,38,39,310}:
+ py{36,37,38,39,310,311}:
mv
mkdir
[buildstream] 05/05: Try to invoke BuildStream as external program to avoid hangs
Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 2e4d271fbc4bad20aefaa24e9adea05aac1edec0
Author: Seppo Yli-Olli <se...@gmail.com>
AuthorDate: Tue Dec 13 23:21:06 2022 +0200
Try to invoke BuildStream as external program to avoid hangs
---
tests/testutils/runcli.py | 106 +++++++++-------------------------------------
1 file changed, 20 insertions(+), 86 deletions(-)
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py
index 29a2ec1e9..d1ac3db54 100644
--- a/tests/testutils/runcli.py
+++ b/tests/testutils/runcli.py
@@ -31,41 +31,18 @@ class Result():
def __init__(self,
exit_code=None,
- exception=None,
- exc_info=None,
output=None,
stderr=None):
self.exit_code = exit_code
- self.exc = exception
- self.exc_info = exc_info
+ self.exc = None
+ self.exc_info = None
self.output = output
self.stderr = stderr
self.unhandled_exception = False
- # The last exception/error state is stored at exception
- # creation time in BstError(), but this breaks down with
- # recoverable errors where code blocks ignore some errors
- # and fallback to alternative branches.
- #
- # For this reason, we just ignore the exception and errors
- # in the case that the exit code reported is 0 (success).
- #
- if self.exit_code != 0:
-
- # Check if buildstream failed to handle an
- # exception, topevel CLI exit should always
- # be a SystemExit exception.
- #
- if not isinstance(exception, SystemExit):
- self.unhandled_exception = True
-
- self.exception = get_last_exception()
- self.task_error_domain, \
- self.task_error_reason = get_last_task_error()
- else:
- self.exception = None
- self.task_error_domain = None
- self.task_error_reason = None
+ self.exception = None
+ self.task_error_domain = None
+ self.task_error_reason = None
# assert_success()
#
@@ -263,21 +240,21 @@ class Cli():
bst_args += args
- if cwd is not None:
- stack.enter_context(chdir(cwd))
-
- if env is not None:
- stack.enter_context(environment(env))
-
- # Ensure we have a working stdout - required to work
- # around a bug that appears to cause AIX to close
- # sys.__stdout__ after setup.py
- try:
- sys.__stdout__.fileno()
- except ValueError:
- sys.__stdout__ = open('/dev/stdout', 'w')
-
- result = self.invoke(bst_cli, bst_args)
+ cmd = ["bst"] + bst_args
+ process = subprocess.Popen(
+ cmd,
+ env=env,
+ cwd=cwd,
+ stdin=subprocess.DEVNULL,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ )
+ out, err = process.communicate()
+ result = Result(
+ exit_code=process.poll(),
+ output=out,
+ stderr=err
+ )
# Some informative stdout we can observe when anything fails
if self.verbose:
@@ -294,49 +271,6 @@ class Cli():
return result
- def invoke(self, cli, args=None, color=False, **extra):
- exc_info = None
- exception = None
- exit_code = 0
-
- # Temporarily redirect sys.stdin to /dev/null to ensure that
- # Popen doesn't attempt to read pytest's dummy stdin.
- old_stdin = sys.stdin
- with open(os.devnull) as devnull:
- sys.stdin = devnull
- capture = MultiCapture(out=FDCapture(1), err=FDCapture(2), in_=None)
- capture.start_capturing()
-
- try:
- cli.main(args=args or (), prog_name=cli.name, **extra)
- except SystemExit as e:
- if e.code != 0:
- exception = e
-
- exc_info = sys.exc_info()
-
- exit_code = e.code
- if not isinstance(exit_code, int):
- sys.stdout.write('Program exit code was not an integer: ')
- sys.stdout.write(str(exit_code))
- sys.stdout.write('\n')
- exit_code = 1
- except Exception as e:
- exception = e
- exit_code = -1
- exc_info = sys.exc_info()
- finally:
- sys.stdout.flush()
-
- sys.stdin = old_stdin
- out, err = capture.readouterr()
- capture.stop_capturing()
-
- return Result(exit_code=exit_code,
- exception=exception,
- exc_info=exc_info,
- output=out,
- stderr=err)
# Fetch an element state by name by
# invoking bst show on the project with the CLI
[buildstream] 03/05: Update pinned ruamel.yaml.clib to 0.2.7
Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 2e5d2c17e7644a1a02c9d0dc0cc9fd0baaa167f1
Author: Seppo Yli-Olli <se...@gmail.com>
AuthorDate: Fri Nov 4 00:04:52 2022 +0200
Update pinned ruamel.yaml.clib to 0.2.7
The older version doesn't support Python 3.11
---
requirements/requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/requirements/requirements.txt b/requirements/requirements.txt
index 9044ca1ba..39de8fb81 100644
--- a/requirements/requirements.txt
+++ b/requirements/requirements.txt
@@ -9,5 +9,5 @@ setuptools==44.1.1
ujson==5.4.0
## The following requirements were added by pip freeze:
MarkupSafe==2.1.1
-ruamel.yaml.clib==0.2.6
+ruamel.yaml.clib==0.2.7
six==1.16.0