Build: world-goblins
Name: python-diff-cover-9.2.0-2
maintainer: LemonPie
email: lemonpie at artixlinux.org
[1]https://orion.artixlinux.org/job/packages/job/python-diff-cover/job/
master/22/
References
1. https://orion.artixlinux.org/job/packages/job/python-diff-cover/job/master/22/
-------------- next part --------------
Push event to branch master
Looking up repository packages/python-diff-cover
Querying the current revision of branch master...
Current revision of branch master is ea187cf9636c329740537589563de16d48b0d968
Obtained .artixlinux/Jenkinsfile from ea187cf9636c329740537589563de16d48b0d968
Loading library artix-ci at orion
Attempting to resolve orion from remote references...
> git --version # timeout=10
> git --version # 'git version 2.47.0'
using GIT_ASKPASS to set credentials jenkins gitea token
> git ls-remote -- https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
Found match: refs/heads/orion revision 880bd3745db54fd7d2bc517b1ce67190bee429ae
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential jenkins-gotea-token
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://gitea.artixlinux.org/artix/pipeline-libs.git
> git init /var/lib/jenkins/workspace/ackages_python-diff-cover_master at libs/d1b6e538991d6cf27c1f72e8cf4d6e290b22a9c93094b0e97e3a05b8d58db898 # timeout=10
Fetching upstream changes from https://gitea.artixlinux.org/artix/pipeline-libs.git
> git --version # timeout=10
> git --version # 'git version 2.47.0'
using GIT_ASKPASS to set credentials jenkins gitea token
> git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/artix/pipeline-libs.git +refs/heads/orion:refs/remotes/origin/orion # timeout=10
> git config remote.origin.url https://gitea.artixlinux.org/artix/pipeline-libs.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/orion:refs/remotes/origin/orion # timeout=10
Avoid second fetch
Checking out Revision 880bd3745db54fd7d2bc517b1ce67190bee429ae (orion)
> git config core.sparsecheckout # timeout=10
> git checkout -f 880bd3745db54fd7d2bc517b1ce67190bee429ae # timeout=10
Commit message: "Merge pull request 'fix check args' (#69) from master into orion"
[Gitea] Notifying branch build status: PENDING Build started...
[Gitea] Notified
[Pipeline] Start of Pipeline
[Pipeline] catchError
[Pipeline] {
[Pipeline] libraryResource
[Pipeline] readYaml
[Pipeline] }
[Pipeline] // catchError
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ‘Jenkins’
Running on Jenkins in /var/lib/jenkins/workspace/ackages_python-diff-cover_master
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[2024-11-30T15:28:26.195Z]
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
[2024-11-30T15:28:26.252Z] The recommended git tool is: NONE
[2024-11-30T15:28:26.252Z] using credential jenkins-gotea-token
[2024-11-30T15:28:26.434Z] Cloning the remote Git repository
[2024-11-30T15:28:26.434Z] Cloning with configured refspecs honoured and without tags
[2024-11-30T15:28:26.434Z] Cloning repository https://gitea.artixlinux.org/packages/python-diff-cover.git
[2024-11-30T15:28:26.434Z] > git init /var/lib/jenkins/workspace/ackages_python-diff-cover_master # timeout=10
[2024-11-30T15:28:26.443Z] Fetching upstream changes from https://gitea.artixlinux.org/packages/python-diff-cover.git
[2024-11-30T15:28:26.443Z] > git --version # timeout=10
[2024-11-30T15:28:26.447Z] > git --version # 'git version 2.47.0'
[2024-11-30T15:28:26.447Z] using GIT_ASKPASS to set credentials jenkins gitea token
[2024-11-30T15:28:26.453Z] > git fetch --no-tags --force --progress -- https://gitea.artixlinux.org/packages/python-diff-cover.git +refs/heads/master:refs/remotes/origin/master # timeout=10
[2024-11-30T15:28:26.692Z] > git config remote.origin.url https://gitea.artixlinux.org/packages/python-diff-cover.git # timeout=10
[2024-11-30T15:28:26.699Z] > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10
[2024-11-30T15:28:26.706Z] Avoid second fetch
[2024-11-30T15:28:26.706Z] Checking out Revision ea187cf9636c329740537589563de16d48b0d968 (master)
[2024-11-30T15:28:26.706Z] > git config core.sparsecheckout # timeout=10
[2024-11-30T15:28:26.713Z] > git checkout -f ea187cf9636c329740537589563de16d48b0d968 # timeout=10
[2024-11-30T15:28:26.724Z] Commit message: "[world-goblins] 'python-diff-cover-9.2.0-2' add"
[2024-11-30T15:28:26.724Z] > git rev-list --no-walk d55e5604aba6f8245cd7799e254f91906b2bbb9f # timeout=10
[2024-11-30T15:28:26.740Z] [Gitea] Notifying branch build status: PENDING Build started...
[2024-11-30T15:28:26.901Z] [Gitea] Notified
[Pipeline] readYaml
[Pipeline] sh
[2024-11-30T15:28:27.172Z] + git show -s --format=%an ea187cf9636c329740537589563de16d48b0d968
[Pipeline] sh
[2024-11-30T15:28:27.430Z] + git show -s --format=%ae ea187cf9636c329740537589563de16d48b0d968
[Pipeline] echo
[2024-11-30T15:28:27.453Z] addRepo=world-goblins
[Pipeline] echo
[2024-11-30T15:28:27.458Z] removeRepo=null
[Pipeline] echo
[2024-11-30T15:28:27.463Z] triggersBuild=true
[Pipeline] echo
[2024-11-30T15:28:27.467Z] triggersRebuild=false
[Pipeline] echo
[2024-11-30T15:28:27.472Z] triggersRepoAdd=true
[Pipeline] echo
[2024-11-30T15:28:27.477Z] triggersRepoRemove=false
[Pipeline] echo
[2024-11-30T15:28:27.481Z] triggersNoCheck=false
[Pipeline] echo
[2024-11-30T15:28:27.487Z] name=LemonPie
[Pipeline] echo
[2024-11-30T15:28:27.491Z] email=lemonpie at artixlinux.org
[Pipeline] echo
[2024-11-30T15:28:27.496Z] credentialsId=BUILDBOT_GPGP
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] catchError
[Pipeline] {
[Pipeline] sh
[2024-11-30T15:28:27.812Z] + buildpkg -n -a x86_64 -d world-goblins -e 'LemonPie <lemonpie at artixlinux.org>'
[2024-11-30T15:28:31.934Z] :: Synchronizing package databases...
[2024-11-30T15:28:31.934Z] system-goblins downloading...
[2024-11-30T15:28:31.934Z] system-gremlins downloading...
[2024-11-30T15:28:31.934Z] system downloading...
[2024-11-30T15:28:31.934Z] world-goblins downloading...
[2024-11-30T15:28:31.934Z] world-gremlins downloading...
[2024-11-30T15:28:31.934Z] world downloading...
[2024-11-30T15:28:31.934Z] :: Starting full system upgrade...
[2024-11-30T15:28:31.934Z] there is nothing to do
[2024-11-30T15:28:34.416Z] ==> Building in chroot for [world-goblins] (x86_64)...
[2024-11-30T15:28:34.966Z] ==> Synchronizing chroot copy [/build/buildpkg/world-goblins-x86_64/root] -> [jenkins]...done
[2024-11-30T15:28:36.309Z] ==> Making package: python-diff-cover 9.2.0-2 (Sat Nov 30 16:28:36 2024)
[2024-11-30T15:28:36.309Z] ==> Retrieving sources...
[2024-11-30T15:28:36.309Z] -> Found diff_cover-9.2.0.tar.gz
[2024-11-30T15:28:36.309Z] ==> Validating source files with sha256sums...
[2024-11-30T15:28:36.309Z] diff_cover-9.2.0.tar.gz ... Passed
[2024-11-30T15:28:41.503Z] ==> Making package: python-diff-cover 9.2.0-2 (Sat Nov 30 15:28:41 2024)
[2024-11-30T15:28:41.503Z] ==> Checking runtime dependencies...
[2024-11-30T15:28:41.503Z] ==> Installing missing dependencies...
[2024-11-30T15:28:41.503Z] resolving dependencies...
[2024-11-30T15:28:41.503Z] looking for conflicting packages...
[2024-11-30T15:28:41.503Z]
[2024-11-30T15:28:41.503Z] Package (5) New Version Net Change
[2024-11-30T15:28:41.503Z]
[2024-11-30T15:28:41.503Z] world-goblins/python-markupsafe 2.1.5-3 0.08 MiB
[2024-11-30T15:28:41.503Z] world-goblins/python-chardet 5.2.0-6 2.99 MiB
[2024-11-30T15:28:41.503Z] world-goblins/python-jinja 1:3.1.4-2 1.75 MiB
[2024-11-30T15:28:41.503Z] world-goblins/python-pluggy 1.5.0-3 0.20 MiB
[2024-11-30T15:28:41.503Z] world-goblins/python-pygments 2.18.0-3 14.14 MiB
[2024-11-30T15:28:41.503Z]
[2024-11-30T15:28:41.503Z] Total Installed Size: 19.16 MiB
[2024-11-30T15:28:41.503Z]
[2024-11-30T15:28:41.503Z] :: Proceed with installation? [Y/n]
[2024-11-30T15:28:41.503Z] checking keyring...
[2024-11-30T15:28:41.503Z] checking package integrity...
[2024-11-30T15:28:41.754Z] loading package files...
[2024-11-30T15:28:41.754Z] checking for file conflicts...
[2024-11-30T15:28:41.754Z] :: Processing package changes...
[2024-11-30T15:28:41.754Z] installing python-chardet...
[2024-11-30T15:28:41.754Z] installing python-markupsafe...
[2024-11-30T15:28:41.754Z] installing python-jinja...
[2024-11-30T15:28:41.754Z] Optional dependencies for python-jinja
[2024-11-30T15:28:41.754Z] python-babel: for i18n support
[2024-11-30T15:28:41.754Z] installing python-pluggy...
[2024-11-30T15:28:41.754Z] installing python-pygments...
[2024-11-30T15:28:41.754Z] ==> Checking buildtime dependencies...
[2024-11-30T15:28:42.004Z] ==> Installing missing dependencies...
[2024-11-30T15:28:42.254Z] resolving dependencies...
[2024-11-30T15:28:42.254Z] looking for conflicting packages...
[2024-11-30T15:28:42.254Z]
[2024-11-30T15:28:42.254Z] Package (24) New Version Net Change
[2024-11-30T15:28:42.254Z]
[2024-11-30T15:28:42.254Z] world-goblins/python-astroid 3.3.5-2 3.24 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-colorama 0.4.6-5 0.25 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-dill 0.3.9-1 1.17 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-fastjsonschema 2.20.0-2 0.26 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-iniconfig 2.0.0-6 0.04 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-isort 5.13.2-4 0.93 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-lark-parser 1.2.2-2 1.24 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-mccabe 0.7.0-8 0.05 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-packaging 24.2-3 0.66 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-platformdirs 4.3.6-2 0.24 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-pyproject-hooks 1.2.0-3 0.10 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-toml 0.10.2-12 0.18 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-tomlkit 0.13.2-2 0.57 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-typing_extensions 4.12.2-3 0.42 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-build 1.2.2-3 0.20 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-installer 0.7.0-10 0.17 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-poetry-core 1.9.0-6 1.28 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-pycodestyle 2.12.1-2 0.31 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-pyflakes 3.2.0-3 1.06 MiB
[2024-11-30T15:28:42.254Z] world/python-pylint 3.3.1-1 5.81 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-pytest 1:8.3.3-2.1 3.91 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-pytest-datadir 1.5.0-3 0.01 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-pytest-mock 3.14.0-2 0.09 MiB
[2024-11-30T15:28:42.254Z] world-goblins/python-wheel 0.45.0-3 0.28 MiB
[2024-11-30T15:28:42.254Z]
[2024-11-30T15:28:42.254Z] Total Installed Size: 22.48 MiB
[2024-11-30T15:28:42.254Z]
[2024-11-30T15:28:42.254Z] :: Proceed with installation? [Y/n]
[2024-11-30T15:28:42.254Z] checking keyring...
[2024-11-30T15:28:42.254Z] checking package integrity...
[2024-11-30T15:28:43.165Z] loading package files...
[2024-11-30T15:28:43.165Z] checking for file conflicts...
[2024-11-30T15:28:43.165Z] :: Processing package changes...
[2024-11-30T15:28:43.165Z] installing python-packaging...
[2024-11-30T15:28:43.165Z] installing python-pyproject-hooks...
[2024-11-30T15:28:43.165Z] installing python-build...
[2024-11-30T15:28:43.165Z] Optional dependencies for python-build
[2024-11-30T15:28:43.165Z] python-pip: to use as the Python package installer (default)
[2024-11-30T15:28:43.165Z] python-uv: to use as the Python package installer
[2024-11-30T15:28:43.165Z] python-virtualenv: to use virtualenv for build isolation
[2024-11-30T15:28:43.165Z] installing python-installer...
[2024-11-30T15:28:43.165Z] installing python-fastjsonschema...
[2024-11-30T15:28:43.165Z] installing python-typing_extensions...
[2024-11-30T15:28:43.165Z] installing python-lark-parser...
[2024-11-30T15:28:43.165Z] Optional dependencies for python-lark-parser
[2024-11-30T15:28:43.165Z] python-atomicwrites: for atomic_cache
[2024-11-30T15:28:43.165Z] python-regex: for regex support
[2024-11-30T15:28:43.165Z] python-js2py: for nearley support
[2024-11-30T15:28:43.165Z] installing python-poetry-core...
[2024-11-30T15:28:43.165Z] installing python-wheel...
[2024-11-30T15:28:43.165Z] Optional dependencies for python-wheel
[2024-11-30T15:28:43.165Z] python-keyring: for wheel.signatures
[2024-11-30T15:28:43.165Z] python-xdg: for wheel.signatures
[2024-11-30T15:28:43.165Z] python-setuptools: for legacy bdist_wheel subcommand
[2024-11-30T15:28:43.165Z] installing python-pycodestyle...
[2024-11-30T15:28:43.165Z] installing python-pyflakes...
[2024-11-30T15:28:43.165Z] installing python-astroid...
[2024-11-30T15:28:43.165Z] installing python-colorama...
[2024-11-30T15:28:43.165Z] installing python-dill...
[2024-11-30T15:28:43.165Z] Optional dependencies for python-dill
[2024-11-30T15:28:43.165Z] python-objgraph: graph support
[2024-11-30T15:28:43.165Z] installing python-toml...
[2024-11-30T15:28:43.165Z] installing python-isort...
[2024-11-30T15:28:43.165Z] installing python-mccabe...
[2024-11-30T15:28:43.165Z] installing python-platformdirs...
[2024-11-30T15:28:43.165Z] installing python-tomlkit...
[2024-11-30T15:28:43.165Z] installing python-pylint...
[2024-11-30T15:28:43.165Z] Optional dependencies for python-pylint
[2024-11-30T15:28:43.165Z] graphviz: Enable output formats other than dot or vcg
[2024-11-30T15:28:43.165Z] installing python-iniconfig...
[2024-11-30T15:28:43.165Z] installing python-pytest...
[2024-11-30T15:28:43.165Z] installing python-pytest-datadir...
[2024-11-30T15:28:43.165Z] installing python-pytest-mock...
[2024-11-30T15:28:43.415Z] ==> Retrieving sources...
[2024-11-30T15:28:43.415Z] -> Found diff_cover-9.2.0.tar.gz
[2024-11-30T15:28:43.415Z] ==> WARNING: Skipping all source file integrity checks.
[2024-11-30T15:28:43.415Z] ==> Extracting sources...
[2024-11-30T15:28:43.415Z] -> Extracting diff_cover-9.2.0.tar.gz with bsdtar
[2024-11-30T15:28:43.415Z] ==> Starting build()...
[2024-11-30T15:28:43.666Z] * Getting build dependencies for wheel...
[2024-11-30T15:28:43.666Z] * Building wheel...
[2024-11-30T15:28:43.916Z] Successfully built diff_cover-9.2.0-py3-none-any.whl
[2024-11-30T15:28:44.166Z] ==> Starting check()...
[2024-11-30T15:28:45.076Z] ============================= test session starts ==============================
[2024-11-30T15:28:45.076Z] platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0
[2024-11-30T15:28:45.076Z] rootdir: /build/python-diff-cover/src/diff_cover-9.2.0
[2024-11-30T15:28:45.076Z] configfile: pyproject.toml
[2024-11-30T15:28:45.077Z] plugins: mock-3.14.0, datadir-1.5.0
[2024-11-30T15:28:45.077Z] collected 299 items / 1 deselected / 298 selected
[2024-11-30T15:28:45.077Z]
[2024-11-30T15:28:45.077Z] tests/test_clover_violations_reporter.py . [ 0%]
[2024-11-30T15:28:45.077Z] tests/test_config_parser.py ............... [ 5%]
[2024-11-30T15:28:45.077Z] tests/test_diff_cover_main.py .. [ 6%]
[2024-11-30T15:28:45.077Z] tests/test_diff_cover_tool.py ....... [ 8%]
[2024-11-30T15:28:45.077Z] tests/test_diff_quality_main.py ............ [ 12%]
[2024-11-30T15:28:45.327Z] tests/test_diff_reporter.py ......................................... [ 26%]
[2024-11-30T15:28:45.327Z] tests/test_git_diff.py .......... [ 29%]
[2024-11-30T15:28:45.327Z] tests/test_git_diff_file.py .... [ 30%]
[2024-11-30T15:28:45.327Z] tests/test_git_path.py ..... [ 32%]
[2024-11-30T15:28:47.829Z] tests/test_integration.py ...............................FFF.......F.... [ 47%]
[2024-11-30T15:28:48.079Z] ...F [ 49%]
[2024-11-30T15:28:48.079Z] tests/test_java_violations_reporter.py .............. [ 54%]
[2024-11-30T15:28:48.079Z] tests/test_report_generator.py .............................. [ 64%]
[2024-11-30T15:28:48.329Z] tests/test_snippets.py ................... [ 70%]
[2024-11-30T15:28:48.329Z] tests/test_util.py . [ 70%]
[2024-11-30T15:28:48.329Z] tests/test_violations_reporter.py ...................................... [ 83%]
[2024-11-30T15:28:48.329Z] ................................................. [100%]
[2024-11-30T15:28:48.329Z]
[2024-11-30T15:28:48.329Z] =================================== FAILURES ===================================
[2024-11-30T15:28:48.329Z] ____________ TestDiffQualityIntegration.test_added_file_pylint_html ____________
[2024-11-30T15:28:48.329Z]
[2024-11-30T15:28:48.329Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd703230>
[2024-11-30T15:28:48.329Z]
[2024-11-30T15:28:48.329Z] def test_added_file_pylint_html(self):
[2024-11-30T15:28:48.329Z] > self._check_html_report(
[2024-11-30T15:28:48.329Z] "git_diff_violations.txt",
[2024-11-30T15:28:48.329Z] "pylint_violations_report.html",
[2024-11-30T15:28:48.329Z] ["diff-quality", "--violations=pylint"],
[2024-11-30T15:28:48.329Z] )
[2024-11-30T15:28:48.329Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:460:
[2024-11-30T15:28:48.330Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd703230>
[2024-11-30T15:28:48.330Z] git_diff_path = 'git_diff_violations.txt'
[2024-11-30T15:28:48.330Z] expected_html_path = 'pylint_violations_report.html'
[2024-11-30T15:28:48.330Z] tool_args = ['diff-quality', '--violations=pylint'], expected_status = 0
[2024-11-30T15:28:48.330Z] css_file = None
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def _check_html_report(
[2024-11-30T15:28:48.330Z] self,
[2024-11-30T15:28:48.330Z] git_diff_path,
[2024-11-30T15:28:48.330Z] expected_html_path,
[2024-11-30T15:28:48.330Z] tool_args,
[2024-11-30T15:28:48.330Z] expected_status=0,
[2024-11-30T15:28:48.330Z] css_file=None,
[2024-11-30T15:28:48.330Z] ):
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z] Verify that the tool produces the expected HTML report.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `git_diff_path` is a path to a fixture containing the (patched) output of
[2024-11-30T15:28:48.330Z] the call to `git diff`.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `expected_console_path` is a path to the fixture containing
[2024-11-30T15:28:48.330Z] the expected HTML output of the tool.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `tool_args` is a list of command line arguments to pass
[2024-11-30T15:28:48.330Z] to the tool. You should include the name of the tool
[2024-11-30T15:28:48.330Z] as the first argument.
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Patch the output of `git diff`
[2024-11-30T15:28:48.330Z] with open(git_diff_path, encoding="utf-8") as git_diff_file:
[2024-11-30T15:28:48.330Z] self._set_git_diff_output(git_diff_file.read(), "")
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Create a temporary directory to hold the output HTML report
[2024-11-30T15:28:48.330Z] # Add a cleanup to ensure the directory gets deleted
[2024-11-30T15:28:48.330Z] temp_dir = self.tmp_path / "dummy"
[2024-11-30T15:28:48.330Z] temp_dir.mkdir()
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] html_report_path = os.path.join(temp_dir, "diff_coverage.html")
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] args = tool_args + ["--html-report", html_report_path]
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] if css_file:
[2024-11-30T15:28:48.330Z] css_file = os.path.join(temp_dir, css_file)
[2024-11-30T15:28:48.330Z] args += ["--external-css-file", css_file]
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Execute the tool
[2024-11-30T15:28:48.330Z] if "diff-cover" in args[0]:
[2024-11-30T15:28:48.330Z] code = diff_cover_tool.main(args)
[2024-11-30T15:28:48.330Z] else:
[2024-11-30T15:28:48.330Z] code = diff_quality_tool.main(args)
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] > assert code == expected_status
[2024-11-30T15:28:48.330Z] E assert 1 == 0
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:111: AssertionError
[2024-11-30T15:28:48.330Z] ------------------------------ Captured log call -------------------------------
[2024-11-30T15:28:48.330Z] ERROR diff_cover.diff_quality_tool:diff_quality_tool.py:379 Failure: 'pylint is not installed'
[2024-11-30T15:28:48.330Z] _______________ TestDiffQualityIntegration.test_fail_under_html ________________
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd64cb90>
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def test_fail_under_html(self):
[2024-11-30T15:28:48.330Z] > self._check_html_report(
[2024-11-30T15:28:48.330Z] "git_diff_violations.txt",
[2024-11-30T15:28:48.330Z] "pylint_violations_report.html",
[2024-11-30T15:28:48.330Z] ["diff-quality", "--violations=pylint", "--fail-under=80"],
[2024-11-30T15:28:48.330Z] expected_status=1,
[2024-11-30T15:28:48.330Z] )
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:467:
[2024-11-30T15:28:48.330Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:119: in _check_html_report
[2024-11-30T15:28:48.330Z] html = self._clear_css(html)
[2024-11-30T15:28:48.330Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd64cb90>
[2024-11-30T15:28:48.330Z] content = ''
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def _clear_css(self, content):
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z] The CSS is provided by pygments and changes fairly often.
[2024-11-30T15:28:48.330Z] Im ok with simply saying "There was css"
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] Perhaps I will eat these words
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z] clean_content = re.sub("r'<style>.*</style>", content, "", re.DOTALL)
[2024-11-30T15:28:48.330Z] > assert len(content) > len(clean_content)
[2024-11-30T15:28:48.330Z] E AssertionError: assert 0 > 0
[2024-11-30T15:28:48.330Z] E + where 0 = len('')
[2024-11-30T15:28:48.330Z] E + and 0 = len('')
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:63: AssertionError
[2024-11-30T15:28:48.330Z] ------------------------------ Captured log call -------------------------------
[2024-11-30T15:28:48.330Z] ERROR diff_cover.diff_quality_tool:diff_quality_tool.py:379 Failure: 'pylint is not installed'
[2024-11-30T15:28:48.330Z] _____________ TestDiffQualityIntegration.test_fail_under_pass_html _____________
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd977bd0>
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def test_fail_under_pass_html(self):
[2024-11-30T15:28:48.330Z] > self._check_html_report(
[2024-11-30T15:28:48.330Z] "git_diff_violations.txt",
[2024-11-30T15:28:48.330Z] "pylint_violations_report.html",
[2024-11-30T15:28:48.330Z] ["diff-quality", "--violations=pylint", "--fail-under=40"],
[2024-11-30T15:28:48.330Z] expected_status=0,
[2024-11-30T15:28:48.330Z] )
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:475:
[2024-11-30T15:28:48.330Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd977bd0>
[2024-11-30T15:28:48.330Z] git_diff_path = 'git_diff_violations.txt'
[2024-11-30T15:28:48.330Z] expected_html_path = 'pylint_violations_report.html'
[2024-11-30T15:28:48.330Z] tool_args = ['diff-quality', '--violations=pylint', '--fail-under=40']
[2024-11-30T15:28:48.330Z] expected_status = 0, css_file = None
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def _check_html_report(
[2024-11-30T15:28:48.330Z] self,
[2024-11-30T15:28:48.330Z] git_diff_path,
[2024-11-30T15:28:48.330Z] expected_html_path,
[2024-11-30T15:28:48.330Z] tool_args,
[2024-11-30T15:28:48.330Z] expected_status=0,
[2024-11-30T15:28:48.330Z] css_file=None,
[2024-11-30T15:28:48.330Z] ):
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z] Verify that the tool produces the expected HTML report.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `git_diff_path` is a path to a fixture containing the (patched) output of
[2024-11-30T15:28:48.330Z] the call to `git diff`.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `expected_console_path` is a path to the fixture containing
[2024-11-30T15:28:48.330Z] the expected HTML output of the tool.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `tool_args` is a list of command line arguments to pass
[2024-11-30T15:28:48.330Z] to the tool. You should include the name of the tool
[2024-11-30T15:28:48.330Z] as the first argument.
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Patch the output of `git diff`
[2024-11-30T15:28:48.330Z] with open(git_diff_path, encoding="utf-8") as git_diff_file:
[2024-11-30T15:28:48.330Z] self._set_git_diff_output(git_diff_file.read(), "")
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Create a temporary directory to hold the output HTML report
[2024-11-30T15:28:48.330Z] # Add a cleanup to ensure the directory gets deleted
[2024-11-30T15:28:48.330Z] temp_dir = self.tmp_path / "dummy"
[2024-11-30T15:28:48.330Z] temp_dir.mkdir()
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] html_report_path = os.path.join(temp_dir, "diff_coverage.html")
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] args = tool_args + ["--html-report", html_report_path]
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] if css_file:
[2024-11-30T15:28:48.330Z] css_file = os.path.join(temp_dir, css_file)
[2024-11-30T15:28:48.330Z] args += ["--external-css-file", css_file]
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Execute the tool
[2024-11-30T15:28:48.330Z] if "diff-cover" in args[0]:
[2024-11-30T15:28:48.330Z] code = diff_cover_tool.main(args)
[2024-11-30T15:28:48.330Z] else:
[2024-11-30T15:28:48.330Z] code = diff_quality_tool.main(args)
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] > assert code == expected_status
[2024-11-30T15:28:48.330Z] E assert 1 == 0
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:111: AssertionError
[2024-11-30T15:28:48.330Z] ------------------------------ Captured log call -------------------------------
[2024-11-30T15:28:48.330Z] ERROR diff_cover.diff_quality_tool:diff_quality_tool.py:379 Failure: 'pylint is not installed'
[2024-11-30T15:28:48.330Z] __________ TestDiffQualityIntegration.test_added_file_pylint_console ___________
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd5e4460>
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def test_added_file_pylint_console(self):
[2024-11-30T15:28:48.330Z] console_report = "pylint_violations_console_report.txt"
[2024-11-30T15:28:48.330Z] > self._check_console_report(
[2024-11-30T15:28:48.330Z] "git_diff_violations.txt",
[2024-11-30T15:28:48.330Z] console_report,
[2024-11-30T15:28:48.330Z] ["diff-quality", "--violations=pylint"],
[2024-11-30T15:28:48.330Z] )
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:541:
[2024-11-30T15:28:48.330Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd5e4460>
[2024-11-30T15:28:48.330Z] git_diff_path = 'git_diff_violations.txt'
[2024-11-30T15:28:48.330Z] expected_console_path = 'pylint_violations_console_report.txt'
[2024-11-30T15:28:48.330Z] tool_args = ['diff-quality', '--violations=pylint'], expected_status = 0
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def _check_console_report(
[2024-11-30T15:28:48.330Z] self, git_diff_path, expected_console_path, tool_args, expected_status=0
[2024-11-30T15:28:48.330Z] ):
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z] Verify that the tool produces the expected console report.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `git_diff_path` is a path to a fixture containing the (patched) output of
[2024-11-30T15:28:48.330Z] the call to `git diff`.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `expected_console_path` is a path to the fixture containing
[2024-11-30T15:28:48.330Z] the expected console output of the tool.
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] `tool_args` is a list of command line arguments to pass
[2024-11-30T15:28:48.330Z] to the tool. You should include the name of the tool
[2024-11-30T15:28:48.330Z] as the first argument.
[2024-11-30T15:28:48.330Z] """
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Patch the output of `git diff`
[2024-11-30T15:28:48.330Z] with open(git_diff_path, encoding="utf-8") as git_diff_file:
[2024-11-30T15:28:48.330Z] self._set_git_diff_output(git_diff_file.read(), "")
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Capture stdout to a string buffer
[2024-11-30T15:28:48.330Z] string_buffer = BytesIO()
[2024-11-30T15:28:48.330Z] self._capture_stdout(string_buffer)
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] # Execute the tool
[2024-11-30T15:28:48.330Z] if "diff-cover" in tool_args[0]:
[2024-11-30T15:28:48.330Z] code = diff_cover_tool.main(tool_args)
[2024-11-30T15:28:48.330Z] else:
[2024-11-30T15:28:48.330Z] code = diff_quality_tool.main(tool_args)
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] > assert code == expected_status
[2024-11-30T15:28:48.330Z] E assert 1 == 0
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:156: AssertionError
[2024-11-30T15:28:48.330Z] ------------------------------ Captured log call -------------------------------
[2024-11-30T15:28:48.330Z] ERROR diff_cover.diff_quality_tool:diff_quality_tool.py:379 Failure: 'pylint is not installed'
[2024-11-30T15:28:48.330Z] __________________ TestDiffQualityIntegration.test_quiet_mode __________________
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd42a450>
[2024-11-30T15:28:48.330Z]
[2024-11-30T15:28:48.330Z] def test_quiet_mode(self):
[2024-11-30T15:28:48.330Z] > self._check_console_report(
[2024-11-30T15:28:48.330Z] "git_diff_violations.txt",
[2024-11-30T15:28:48.330Z] "empty.txt",
[2024-11-30T15:28:48.330Z] ["diff-quality", "--violations=pylint", "-q"],
[2024-11-30T15:28:48.330Z] )
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:632:
[2024-11-30T15:28:48.331Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] self = <tests.test_integration.TestDiffQualityIntegration object at 0x790ffd42a450>
[2024-11-30T15:28:48.331Z] git_diff_path = 'git_diff_violations.txt', expected_console_path = 'empty.txt'
[2024-11-30T15:28:48.331Z] tool_args = ['diff-quality', '--violations=pylint', '-q'], expected_status = 0
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] def _check_console_report(
[2024-11-30T15:28:48.331Z] self, git_diff_path, expected_console_path, tool_args, expected_status=0
[2024-11-30T15:28:48.331Z] ):
[2024-11-30T15:28:48.331Z] """
[2024-11-30T15:28:48.331Z] Verify that the tool produces the expected console report.
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] `git_diff_path` is a path to a fixture containing the (patched) output of
[2024-11-30T15:28:48.331Z] the call to `git diff`.
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] `expected_console_path` is a path to the fixture containing
[2024-11-30T15:28:48.331Z] the expected console output of the tool.
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] `tool_args` is a list of command line arguments to pass
[2024-11-30T15:28:48.331Z] to the tool. You should include the name of the tool
[2024-11-30T15:28:48.331Z] as the first argument.
[2024-11-30T15:28:48.331Z] """
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] # Patch the output of `git diff`
[2024-11-30T15:28:48.331Z] with open(git_diff_path, encoding="utf-8") as git_diff_file:
[2024-11-30T15:28:48.331Z] self._set_git_diff_output(git_diff_file.read(), "")
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] # Capture stdout to a string buffer
[2024-11-30T15:28:48.331Z] string_buffer = BytesIO()
[2024-11-30T15:28:48.331Z] self._capture_stdout(string_buffer)
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] # Execute the tool
[2024-11-30T15:28:48.331Z] if "diff-cover" in tool_args[0]:
[2024-11-30T15:28:48.331Z] code = diff_cover_tool.main(tool_args)
[2024-11-30T15:28:48.331Z] else:
[2024-11-30T15:28:48.331Z] code = diff_quality_tool.main(tool_args)
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] > assert code == expected_status
[2024-11-30T15:28:48.331Z] E assert 1 == 0
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:156: AssertionError
[2024-11-30T15:28:48.331Z] ------------------------------ Captured log call -------------------------------
[2024-11-30T15:28:48.331Z] ERROR diff_cover.diff_quality_tool:diff_quality_tool.py:379 Failure: 'pylint is not installed'
[2024-11-30T15:28:48.331Z] =============================== warnings summary ===============================
[2024-11-30T15:28:48.331Z] tests/test_integration.py: 23 warnings
[2024-11-30T15:28:48.331Z] /build/python-diff-cover/src/diff_cover-9.2.0/tests/test_integration.py:62: DeprecationWarning: 'count' is passed as positional argument
[2024-11-30T15:28:48.331Z] clean_content = re.sub("r'<style>.*</style>", content, "", re.DOTALL)
[2024-11-30T15:28:48.331Z]
[2024-11-30T15:28:48.331Z] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[2024-11-30T15:28:48.331Z] =========================== short test summary info ============================
[2024-11-30T15:28:48.331Z] FAILED tests/test_integration.py::TestDiffQualityIntegration::test_added_file_pylint_html
[2024-11-30T15:28:48.331Z] FAILED tests/test_integration.py::TestDiffQualityIntegration::test_fail_under_html
[2024-11-30T15:28:48.331Z] FAILED tests/test_integration.py::TestDiffQualityIntegration::test_fail_under_pass_html
[2024-11-30T15:28:48.331Z] FAILED tests/test_integration.py::TestDiffQualityIntegration::test_added_file_pylint_console
[2024-11-30T15:28:48.331Z] FAILED tests/test_integration.py::TestDiffQualityIntegration::test_quiet_mode
[2024-11-30T15:28:48.331Z] =========== 5 failed, 293 passed, 1 deselected, 23 warnings in 3.89s ===========
[2024-11-30T15:28:48.581Z] ==> ERROR: A failure occurred in check().
[2024-11-30T15:28:48.581Z] Aborting...
[2024-11-30T15:28:51.063Z] ==> ERROR: Build failed, check /build/buildpkg/world-goblins-x86_64/jenkins/build
[Pipeline] }
[2024-11-30T15:28:51.064Z] ERROR: Failed to build source
[2024-11-30T15:28:51.064Z] ERROR: script returned exit code 255
[2024-11-30T15:28:51.064Z] Setting overall build result to FAILURE
[Pipeline] // catchError
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Check)
Stage "Check" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Sign)
Stage "Sign" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Add)
Stage "Add" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Remove)
Stage "Remove" skipped due to when conditional
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] emailext
[2024-11-30T15:28:51.228Z] Sending email to: artix-build-failures at artixlinux.org
More information about the artix-build-failures
mailing list