Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/common.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Shared common variables

CI_IMAGE_VERSION=master-533491591
CI_TOXENV_MAIN=py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover
CI_IMAGE_VERSION=master-643533272
CI_TOXENV_MAIN=py36-nocover,py37-nocover,py38-nocover,py39-nocover,py310-nocover,py311-nocover
CI_TOXENV_ALL="${CI_TOXENV_MAIN}"
10 changes: 5 additions & 5 deletions .github/compose/ci.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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}
Expand 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}
Expand Down
2 changes: 1 addition & 1 deletion .github/run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
# "../compose/ci.docker-compose.yml"
test-name:
- debian-10
- fedora-35
- fedora-36
- fedora-37
- lint

steps:
Expand Down
6 changes: 4 additions & 2 deletions buildstream/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,9 @@ def __init_splits(self):
bstdata = self.get_public_data('bst')
splits = bstdata.get('split-rules')
self.__splits = {
domain: re.compile('^(?:' + '|'.join([utils._glob2re(r) for r in rules]) + ')$')
domain: re.compile(
"^(?:" + "|".join([utils._glob2re(r) for r in rules]) + ")$", re.MULTILINE | re.DOTALL
)
for domain, rules in self.node_items(splits)
}

Expand Down Expand Up @@ -2386,7 +2388,7 @@ def __file_is_whitelisted(self, path):
for index, exp in enumerate(whitelist)
]
expression = ('^(?:' + '|'.join(whitelist_expressions) + ')$')
self.__whitelist_regex = re.compile(expression)
self.__whitelist_regex = re.compile(expression, re.MULTILINE | re.DOTALL)
return self.__whitelist_regex.match(path) or self.__whitelist_regex.match(os.path.join(os.sep, path))

# __extract():
Expand Down
1 change: 1 addition & 0 deletions buildstream/plugins/sources/pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'python3.8',
'python3.9',
'python3.10',
'python3.11',
]

# List of allowed extensions taken from
Expand Down
4 changes: 2 additions & 2 deletions buildstream/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def glob(paths, pattern):
pattern = os.sep + pattern

expression = _glob2re(pattern)
regexer = re.compile(expression)
regexer = re.compile(expression, re.MULTILINE | re.DOTALL)

for filename in paths:
filename_try = filename
Expand Down Expand Up @@ -1138,7 +1138,7 @@ def resume_proc():
#
def _glob2re(pat):
i, n = 0, len(pat)
res = '(?ms)'
res = ''
while i < n:
c = pat[i]
i = i + 1
Expand Down
7 changes: 2 additions & 5 deletions requirements/cov-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ pytest-cov==2.10.1
## The following requirements were added by pip freeze:
attrs==22.1.0
iniconfig==1.1.1
packaging==21.3
packaging==22.0
pluggy==1.0.0
py==1.11.0
pyparsing==3.0.9
pytest==7.1.2
tomli==2.0.1
pytest==7.2.0
28 changes: 12 additions & 16 deletions requirements/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
pep8==1.7.1
pylint==2.14.5
pytest==7.1.2
pylint==2.15.8
pytest==7.2.0
pytest-datafiles==2.0.1
pytest-env==0.6.2
pytest-xdist==2.5.0
pytest-env==0.8.1
pytest-xdist==3.1.0
pytest-timeout==2.1.0
pyftpdlib==1.5.6
pyftpdlib==1.5.7
## The following requirements were added by pip freeze:
astroid==2.11.7
astroid==2.12.13
attrs==22.1.0
dill==0.3.5.1
dill==0.3.6
execnet==1.9.0
iniconfig==1.1.1
isort==5.10.1
lazy-object-proxy==1.7.1
isort==5.11.2
lazy-object-proxy==1.8.0
mccabe==0.7.0
packaging==21.3
platformdirs==2.5.2
packaging==22.0
platformdirs==2.6.0
pluggy==1.0.0
py==1.11.0
pyparsing==3.0.9
pytest-forked==1.4.0
tomli==2.0.1
tomlkit==0.11.1
typing-extensions==4.3.0
tomlkit==0.11.6
wrapt==1.14.1
12 changes: 5 additions & 7 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
click==8.1.3
grpcio==1.48.0
grpcio==1.51.1
Jinja2==3.1.2
pluginbase==1.0.1
protobuf==4.21.4
psutil==5.9.1
protobuf==4.21.12
psutil==5.9.4
ruamel.yaml==0.17.21
setuptools==44.1.1
ujson==5.4.0
setuptools==62.6.0
ujson==5.6.0
## The following requirements were added by pip freeze:
MarkupSafe==2.1.1
ruamel.yaml.clib==0.2.6
six==1.16.0
20 changes: 10 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand All @@ -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
Expand All @@ -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

Expand Down