Project

General

Profile

Actions

action #101478

closed

openqa-review pipeline failed because details-* JSON contains non-UTF8 char ? size:S

Added by osukup almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2021-10-11
Due date:
2021-11-05
% Done:

0%

Estimated time:

Description

https://gitlab.suse.de/openqa/openqa-review/-/jobs/658778

+ /usr/bin/openqa-review --host https://openqa.suse.de -n -r -T --query-issue-status --no-empty-sections --include-softfails --running-threshold=2 --exclude-job-groups '^(Released|Development|old|EOL)' --reminder-comment-on-issues --save --save-dir /tmp/tmp.UXQt70yio3 --skip-passed
WARNING:openqa_review.browser:Unable to decode JSON for [{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":40,"description":"https:\/\/confluence.suse.com\/pages\/viewpage.action?pageId=723878219\r\n\r\nResponsible persons: Stefan Barth <stephan.barth@suse.com>, Heiko Rommel <heiko.rommel@suse.com>","exclusively_kept_asset_size":0,"id":36,"name":"Maintenance: On Submission","size_limit_gb":null,"sort_order":6},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":90,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":70,"default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":8,"name":"Maintenance: Single Incidents","size_limit_gb":null,"sort_order":7},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":120,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":30,"default_keep_results_in_days":90,"default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":1,"name":"Released","size_limit_gb":null,"sort_order":14},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":32,"name":"SLE Micro","size_limit_gb":null,"sort_order":4},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":33,"name":"WSL","size_limit_gb":null,"sort_order":5},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":20,"default_keep_important_results_in_days":50,"default_keep_logs_in_days":5,"default_keep_results_in_days":12,"default_priority":60,"description":"Just grouping job groups that have no direct product relevance","exclusively_kept_asset_size":0,"id":9,"name":"Development","size_limit_gb":null,"sort_order":13},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":35,"name":"Containers","size_limit_gb":null,"sort_order":3},{"build_version_sort":0,"carry_over_bugrefs":0,"default_keep_important_logs_in_days":90,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":70,"default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":27,"name":"Public Cloud","size_limit_gb":null,"sort_order":2},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":90,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":70,"default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":24,"name":"Maintenance: Kiwi","size_limit_gb":null,"sort_order":12},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":30,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":50,"default_priority":60,"description":"https:\/\/confluence.suse.com\/display\/openqa\/Testing+of+Quarterly+Refreshed+ISOs+in+openQA\r\n\r\nResponsible person: hrommel <heiko.rommel@suse.com>","exclusively_kept_asset_size":158186928501,"id":23,"name":"Maintenance: QR","size_limit_gb":150,"sort_order":15},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":30,"name":"L3","size_limit_gb":null,"sort_order":11},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":34,"name":"SLES JeOS","size_limit_gb":null,"sort_order":1},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":28,"name":"Others","size_limit_gb":null,"sort_order":18},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":37,"name":"EOL","size_limit_gb":null,"sort_order":16},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":90,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":70,"default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":21,"name":"Maintenance: Single Incidents SLE-12","size_limit_gb":null,"sort_order":8},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":31,"name":"Maintenace: KOTD","size_limit_gb":null,"sort_order":10},{"build_version_sort":0,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":90,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":70,"default_priority":50,"description":"","exclusively_kept_asset_size":0,"id":7,"name":"Maintenance: Test Repo","size_limit_gb":null,"sort_order":9},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":90,"default_keep_important_results_in_days":0,"default_keep_logs_in_days":10,"default_keep_results_in_days":70,"default_priority":50,"description":"see https:\/\/wiki.suse.net\/index.php\/RD-OPS_QA\/openQA_review for the review process and responsible persons for review.\r\n\r\nAlso see [#qa-review](irc:\/\/irc.suse.de\/qa-review)","exclusively_kept_asset_size":0,"id":15,"name":"SLE 15","size_limit_gb":null,"sort_order":0},{"build_version_sort":1,"carry_over_bugrefs":1,"default_keep_important_logs_in_days":"90","default_keep_important_results_in_days":"0","default_keep_logs_in_days":"10","default_keep_results_in_days":"21","default_priority":50,"description":null,"exclusively_kept_asset_size":0,"id":38,"name":"Liberty","size_limit_gb":null,"sort_order":17}]: Expecting value: line 1 column 1 (char 0) (Content was: "https://openqa.suse.de/api/v1/parent_groups")
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/openqa_review/browser.py", line 161, in _decode_content
    content = json.loads(raw) if as_json else raw
  File "/usr/lib64/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Actions #1

Updated by tinita almost 3 years ago

  • Priority changed from Normal to Urgent
Actions #2

Updated by tinita almost 3 years ago

  • Subject changed from openqa-review pipeline failed because details-* JSON contains non-UTF8 char ? to openqa-review pipeline failed because details-* JSON contains non-UTF8 char ? size:S
  • Status changed from New to In Progress
  • Assignee set to tinita
    return self._decode_content(r.content.decode("utf-8"), url, as_json)

def _decode_content(self, url, raw, as_json=False):

So the method expects the URL as the first parameter and JSON content as the second, but it gets passed the other way round.

That should be easy to fix.

Actions #4

Updated by tinita almost 3 years ago

PR was merged and I restarted a job https://gitlab.suse.de/openqa/openqa-review/-/jobs/659523
But apparently it still used the old code and failed.

Actions #5

Updated by tinita almost 3 years ago

  • Status changed from In Progress to Resolved

Retriggered jobs, everything looks fine now

Actions

Also available in: Atom PDF