Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-7031

Outdated JMESPATH library causes lots of "SyntaxWarning" messages

XMLWordPrintable

    • False
    • None
    • False
    • User Experience
    • Hide

      Messages are raised during Quay startup - regardless if started by the operator or by using Podman/Docker.

      Show
      Messages are raised during Quay startup - regardless if started by the operator or by using Podman/Docker.

      With current Quay version (3.11) the startup logs have a lot of "SyntaxWarning" messages which may scare users.

      reconciliationworker stderr | /app/lib/python3.9/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
      reconciliationworker stderr |   if x is 0 or x is 1:
      reconciliationworker stderr | /app/lib/python3.9/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
      reconciliationworker stderr |   if x is 0 or x is 1:
      ...

      Several components raising such warning and a check on the upstream jmespath git-repo has a fix and PyPI repo has version 1.0.1 of jmespath which includes that fix.

      `requirements.txt` still lists "jmespath==0.9.4" which does not include the fix, therefore asking to get the library updated to avoid user confusion

      Those messages do not seem to indicate an issue with the code as of now, but Python may eventually raise errors from that type mismatched comparison.

              Unassigned Unassigned
              rhn-support-ableisch Andreas Bleischwitz
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: