• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hluk / resultsdb
81%
develop: 81%

Build:
Build:
LAST BUILD BRANCH: avoid-updating-python-version
DEFAULT BRANCH: develop
Repo Added 16 May 2022 08:45AM UTC
Token xffggPGCBtj8Vew7NBd9sngfkYj0TdVSA regen
Build 152 Last
Files 26
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix-param-type-check
branch: fix-param-type-check
CHANGE BRANCH
x
Reset
Sync Branches
  • fix-param-type-check
  • RHELWF-6471_configure_github_action
  • add-image-expiration
  • allow-submit-time-zone-suffix
  • api-for-generic-results
  • api_v3-docs
  • avoid-updating-python-version
  • black-flake8
  • bump-base-image
  • bump-flask-session
  • custom-mod_wsgi-args
  • custom_submit_time
  • dependabot
  • develop
  • drop-api-v1
  • drop-image-build
  • drop-threads-override
  • favicon
  • fix-dependencies
  • fix-disabling-fedmenu
  • fix-group-result-count
  • fix-init-session
  • fix-main
  • fix-main-2
  • fix-mypy
  • fix-outcome-case
  • fix-outcome-type-check
  • fix-tox-docker
  • fix-tracing
  • fix-typo
  • ignore-coverage-generated-files
  • ignore-non-password
  • improve-401-message
  • keep-stomp-connection-open
  • merge-to-develop-tag-latest
  • poetry
  • postgres-update
  • pre-commit
  • precommit-autoupdate-monthly
  • pydantic
  • pydantic2
  • python-3.11
  • python-3.12-for-renovatebot
  • python-3.13
  • python-version
  • refactor-complex-method
  • refactor-outcome-validation
  • remove-old-files
  • renovate
  • retry-messaging
  • server-side-session
  • slashes-in-testcases
  • sonarqube-fixes
  • support-konflux-mintmaker
  • test-stomp-messaging
  • trace-stomp-connection
  • untangle-imports
  • update
  • update-black-formatting
  • update-dependencies
  • update-flask-sqlalchemy
  • update-opentelemetry
  • update-otel
  • upgrade-python
  • use-new-select
  • uv
  • uv-2

01 Nov 2023 06:21AM UTC coverage: 81.356%. Remained the same
6716458675

push

github

hluk
Fix checking parameter type

Workaround for a bug in flask-pydantic.

Avoids the following exception causing server to respond with HTTP 500:

    Traceback (most recent call last):
    File "/venv/lib64/python3.11/site-packages/flask_pydantic/core.py", line 197, in wrapper
        b = body_model(**body_params)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: resultsdb.parsers.api_v3.BrewResultParams() argument after ** must be a mapping, not str

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/venv/lib64/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
        response = self.full_dispatch_request()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/venv/lib64/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
        rv = self.handle_user_exception(e)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/venv/lib64/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
        rv = self.dispatch_request()
            ^^^^^^^^^^^^^^^^^^^^^^^
    File "/venv/lib64/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
        return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/venv/lib64/python3.11/site-packages/flask_pyoidc/flask_pyoidc.py", line 463, in wrapper
        return view_func(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/venv/lib64/python3.11/site-packages/flask_pydantic/core.py", line 204, in wrapper
        raise JsonBodyParsingError()
    flask_pydantic.exceptions.JsonBodyParsingError

Server will respond instead with HTTP 400 and the following JSON body:

    {
        "validation_error": {
            "body_params": [{
                "loc": ["__root__"],
                "msg": "value is not a valid dict",
                "type": "type_error.dict"
  ... (continued)

1008 of 1239 relevant lines covered (81.36%)

0.81 hits per line

Relevant lines Covered
Build:
Build:
1239 RELEVANT LINES 1008 COVERED LINES
0.81 HITS PER LINE
Source Files on fix-param-type-check
  • Tree
  • List 18
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6716458675 fix-param-type-check Fix checking parameter type Workaround for a bug in flask-pydantic. Avoids the following exception causing server to respond with HTTP 500: Traceback (most recent call last): File "/venv/lib64/python3.11/site-packages/flask_pydantic/cor... push 01 Nov 2023 06:24AM UTC hluk github
81.36
6716374388 fix-param-type-check Fix checking parameter type Workaround for a bug in flask-pydantic. Avoids the following exception causing server to respond with HTTP 500: Traceback (most recent call last): File "/venv/lib64/python3.11/site-packages/flask_pydantic/cor... push 01 Nov 2023 06:14AM UTC hluk github
81.36
See All Builds (96)

Badge your Repo: resultsdb

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc