Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923074 - dev-python/openapi-schema-validator-0.6.2 fails tests: assert Expected at most 4 items, but found 5
Summary: dev-python/openapi-schema-validator-0.6.2 fails tests: assert Expected at mos...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-01-28 06:57 UTC by Agostino Sarubbo
Modified: 2024-06-16 08:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,72.63 KB, text/plain)
2024-01-28 06:57 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-28 06:57:52 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/openapi-schema-validator-0.6.2 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-28 06:57:55 UTC
Created attachment 883344 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-28 06:57:56 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


                     {'enum': ['NW', 'NE', 'SW', 'SE']}],
                     {'enum': ['Street', 'Avenue', 'Boulevard']},
                     {'type': 'string'},
     'prefixItems': [{'type': 'number'},
     'type': 'array'}
    [1600, 'Pennsylvania', 'Avenue', 'NW', 'Washington']" = str(<ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'">)
    {'items': False,
E        +    where <ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'"> = <ExceptionInfo <ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'"> tblen=2>.value
E        +  where "Expected at most 4 items but found 1 extra: 'Washington'
FAILED tests/integration/test_validators.py::TestOAS31ValidatorValidate::test_array_prefixitems_invalid[value0] - assert 'Expected at most 4 items, but found 5' in "Expected at most 4 items...
Failed validating 'items' in schema:
On instance:
excinfo    = <ExceptionInfo <ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'"> tblen=2>
fatal: not a git repository (or any parent up to mount point /var/tmp)
Comment 3 Larry the Git Cow gentoo-dev 2024-06-16 08:12:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d70da39f1d5092b911c83423b3362748ac5edcae

commit d70da39f1d5092b911c83423b3362748ac5edcae
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-06-15 21:29:11 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-06-16 08:11:05 +0000

    dev-python/openapi-schema-validator: fix tests
    
    The issue was fixed upstream, see PR [1].
    
    [1] https://github.com/python-openapi/openapi-schema-validator/pull/165
    
    Closes: https://bugs.gentoo.org/923074
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 .../openapi-schema-validator-0.6.2-test.patch      | 24 ++++++++++++++++++++++
 .../openapi-schema-validator-0.6.2.ebuild          |  6 +++++-
 2 files changed, 29 insertions(+), 1 deletion(-)