Uploaded image for project: 'Integration'
  1. Integration
  2. INT-2238

Python Code Updates: Integration (INT)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • London Release
    • London Release
    • None
    • None

      CIMAN-433 will capture a bunch of bugs/tasks related to the migration from Python2 to Python3.  All the ONAP repositories were cloned (4GB data) and scanned using the command below:

      find . -name '*.py' -exec python3 -m py_compile {} \;

      This returned 53 issues across 22 repositories/sub-projects. A Jira bug will be raised for each sub-project. 

      Bugs found affecting this sub-project:

      Processing: ./integration_benchmark/vcpe_beijing/vcpe/vcpe_custom_service.py
      Sorry: TabError: inconsistent use of tabs and spaces in indentation (vcpe_custom_service.py, line 75)
      Processing: ./integration_benchmark/vcpe_beijing/vcpe/soutils.py
      Sorry: TabError: inconsistent use of tabs and spaces in indentation (soutils.py, line 54)
      Processing: ./integration_benchmark/vcpe_beijing/vcpe/preload.py
      Sorry: TabError: inconsistent use of tabs and spaces in indentation (preload.py, line 111)
      ./integration_simulators_masspnf-simulator/test_cli.py:74: SyntaxWarning: "is" with a literal. Did you mean "=="?
        assert '' is capsys.readouterr().err
      ./integration_simulators_masspnf-simulator/test_cli.py:75: SyntaxWarning: "is" with a literal. Did you mean "=="?
        assert '' is capsys.readouterr().out
      Processing: ./integration/test/s3p/generator/locustfile.py
      Sorry: TabError: inconsistent use of tabs and spaces in indentation (locustfile.py, line 40)
      ./integration_simulators_pnf-simulator/netconfsimulator/netconf/set-up-xmls.py:152: SyntaxWarning: "is not" with a literal. Did you mean "!="?   if len(sys.argv) is not 8:

      Could not find a suitable project to route this one to, so I've included it here:

        File "./demo/vnfs/VES5.0/evel/evel-test-collector/code/collector/collector.py", line 458
          global logger
          ^^^^^^^^^^^^^
      SyntaxError: name 'logger' is used prior to global declaration

            mszwalkiewicz mszwalkiewicz
            modesevenindustrialsolutions Matthew Watkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: