Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Arcadiy Ivanov
@arcivanov
as in build logs
Jalaj Patidar
@JalajPatidar
sorry , are you referring to these
PyBuilder version 0.12.10
Build started at 2021-04-14 23:40:43
------------------------------------------------------------
[INFO]  Building Mx.DataScience.Pricing version 1.0.dev0
[INFO]  Executing build in /home/jalaj/Mx.DataScience.Pricing
[INFO]  Going to execute task publish
[INFO]  Processing plugin packages 'coverage~=5.2' to be installed with {'upgrade': True}
[INFO]  Processing plugin packages 'flake8~=3.7' to be installed with {'upgrade': True}
[INFO]  Processing plugin packages 'pypandoc~=1.4' to be installed with {'upgrade': True}
[INFO]  Processing plugin packages 'setuptools>=38.6.0' to be installed with {'upgrade': True}
[INFO]  Processing plugin packages 'twine>=1.15.0' to be installed with {'upgrade': True}
[INFO]  Processing plugin packages 'unittest-xml-reporting~=3.0.2' to be installed with {'upgrade': True}
[INFO]  Processing plugin packages 'wheel>=0.34.0' to be installed with {'upgrade': True}
[INFO]  Creating target 'build' VEnv in '/home/jalaj/Mx.DataScience.Pricing/target/venv/build/cpython-3.7.9.final.0'
[INFO]  Creating target 'test' VEnv in '/home/jalaj/Mx.DataScience.Pricing/target/venv/test/cpython-3.7.9.final.0'
[INFO]  Requested coverage for tasks: pybuilder.plugins.python.unittest_plugin:run_unit_tests
[INFO]  Running unit tests
[INFO]  Executing unit tests from Python modules in /home/jalaj/Mx.DataScience.Pricing/src/unittest/python
------------------------------------------------------------
BUILD FAILED - TypeError: 'NoneType' object is not callable (xmlrunner/runner.py:66)
------------------------------------------------------------
Build finished at 2021-04-14 23:40:57
Build took 14 seconds (14375 ms)
Arcadiy Ivanov
@arcivanov
please run with -v -X
and repost
Jalaj Patidar
@JalajPatidar
ok
Arcadiy Ivanov
@arcivanov
did you post the complete build file?
Jalaj Patidar
@JalajPatidar
[DEBUG] Registered Python environment 'system': CPython version 3.7.9.final.0 on linux in ['/home/jalaj/pipeline/bin/python3']
PyBuilder version 0.12.10
Build started at 2021-04-14 23:42:48
------------------------------------------------------------
[DEBUG] Loading project module from ./build.py
[DEBUG] Setting up plugins VEnv at '/home/jalaj/Mx.DataScience.Pricing/.pybuilder/plugins/cpython-3.7.9.final.0'
[DEBUG] Registered Python environment 'pybuilder': CPython version 3.7.9.final.0 on linux in ['/home/jalaj/Mx.DataScience.Pricing/.pybuilder/plugins/cpython-3.7.9.final.0/bin/python3']
[DEBUG] Patched __import__ system to defer plugin loading
[DEBUG] Loading plugin 'python.core'
[DEBUG] Trying to load direct plugin 'python.core', module 'pybuilder.plugins.python.core_plugin'
[DEBUG] Found direct plugin 'python.core', module 'pybuilder.plugins.python.core_plugin'
[DEBUG] Loading plugin 'python.unittest'
[DEBUG] Trying to load direct plugin 'python.unittest', module 'pybuilder.plugins.python.unittest_plugin'
[DEBUG] Found direct plugin 'python.unittest', module 'pybuilder.plugins.python.unittest_plugin'
[DEBUG] Loading plugin 'python.flake8'
[DEBUG] Trying to load direct plugin 'python.flake8', module 'pybuilder.plugins.python.flake8_plugin'
[DEBUG] Found direct plugin 'python.flake8', module 'pybuilder.plugins.python.flake8_plugin'
[DEBUG] Loading plugin 'python.coverage'
[DEBUG] Trying to load direct plugin 'python.coverage', module 'pybuilder.plugins.python.coverage_plugin'
[DEBUG] Found direct plugin 'python.coverage', module 'pybuilder.plugins.python.coverage_plugin'
[DEBUG] Loading plugin 'python.distutils'
[DEBUG] Trying to load direct plugin 'python.distutils', module 'pybuilder.plugins.python.distutils_plugin'
[DEBUG] Found direct plugin 'python.distutils', module 'pybuilder.plugins.python.distutils_plugin'
[DEBUG] Loading plugin 'core'
[DEBUG] Trying to load direct plugin 'core', module 'pybuilder.plugins.core_plugin'
[DEBUG] Found direct plugin 'core', module 'pybuilder.plugins.core_plugin'
[DEBUG] Loading plugin 'analysis'
[DEBUG] Trying to load direct plugin 'analysis', module 'pybuilder.plugins.analysis_plugin'
[DEBUG] Found direct plugin 'analysis', module 'pybuilder.plugins.analysis_plugin'
[DEBUG] Found task 'clean' with dependencies []
[DEBUG] Registering task 'clean'
[DEBUG] Found task 'compile_sources' with dependencies [prepare]
[DEBUG] Registering task 'compile_sources'
[DEBUG] Registering initializer 'init'
[DEBUG] Found task 'install' with dependencies [package, publish(optional)]
[DEBUG] Registering task 'install'
[DEBUG] Found task 'package' with dependencies [compile_sources, run_unit_tests(optional)]
[DEBUG] Registering task 'package'
[DEBUG] Found task 'prepare' with dependencies []
[DEBUG] Registering task 'prepare'
[DEBUG] Found task 'print_module_path' with dependencies []
[DEBUG] Registering task 'print_module_path'
[DEBUG] Found task 'print_scripts_path' with dependencies []
[DEBUG] Registering task 'print_scripts_path'
[DEBUG] Found task 'publish' with dependencies [package, verify(optional)]
[DEBUG] Registering task 'publish'
[DEBUG] Found task 'run_integration_tests' with dependencies [package]
[DEBUG] Registering task 'run_integration_tests'
[DEBUG] Found task 'run_unit_tests' with dependencies [compile_sources]
[DEBUG] Registering task 'run_unit_tests'
[DEBUG] Found task 'verify' with dependencies [run_integration_tests(optional)]
[DEBUG] Registering task 'verify'
[DEBUG] Found task 'prepare' with dependencies []
[DEBUG] Registering task 'prepare'
[DEBUG] Registering initializer 'init_python_directories'
[DEBUG] Found task 'package' with dependencies []
[DEBUG] Registering task 'package'
[DEBUG] Found action coverage_init
[DEBUG] Registering action 'coverage_init'
[DEBUG] Registering initializer 'init_test_source_directory'
[DEBUG] Found task 'run_unit_tests' with dependencies []
[DEBUG] Registering task 'run_unit_tests'
[DEBUG] Found task 'analyze' with dependencies [prepare]
[DEBUG] Registering task 'analyze'
[DEBUG] Found action assert_flake8_is_executable
[DEBUG] Regist
the logs posted above are from the build using the build.py file I posted above
Arcadiy Ivanov
@arcivanov
they got cut
Jalaj Patidar
@JalajPatidar
ah yeah sec
how do I post the entire thing
Arcadiy Ivanov
@arcivanov
just keep posting from the place it was cut
or post the file
Jalaj Patidar
@JalajPatidar
ok
Arcadiy Ivanov
@arcivanov
do you actually have tests there?
do me a favor
please run with pyb -Premote_debug=True -v -X
there is going to be TONS of logs
Jalaj Patidar
@JalajPatidar
I do have two tests
the build was running successfully, the modules they were testing have been unaltered since the last successful build
and I'll post the TON of logs shortly, gimme a sec
Arcadiy Ivanov
@arcivanov
thanks
:)
so if everything ran, then what changed?
Traceback (most recent call last):
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/cli.py", line 476, in main
    environments=options.environments, tasks=arguments)
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/reactor.py", line 240, in build
    execution_summary = self.build_execution_plan(tasks, execution_plan)
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/reactor.py", line 279, in build_execution_plan
    reactor=self)
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/execution.py", line 399, in execute_execution_plan
    summaries.append(self.execute_task(task, **kwargs))
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/execution.py", line 346, in execute_task
    task.execute(self.logger, kwargs, _executable=_executable)
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/execution.py", line 185, in execute
    executable.execute(argument_dict)
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/execution.py", line 101, in execute
    self.callable(*arguments)
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/plugins/python/unittest_plugin.py", line 71, in run_unit_tests
    run_tests(project, logger, reactor, "unittest", "unit tests")
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/plugins/python/unittest_plugin.py", line 100, in run_tests
    project.get_property("remote_debug"))
  File "/home/jalaj/pipeline/lib/python3.7/site-packages/pybuilder/plugins/python/unittest_plugin.py", line 151, in execute_tests_matching
    result = runner.run(tests)
  File "/home/jalaj/Mx.DataScience.Pricing/.pybuilder/plugins/cpython-3.7.9.final.0/lib/python3.7/site-packages/xmlrunner/runner.py", line 66, in run
    test(result)
this makes little sense
Jalaj Patidar
@JalajPatidar
just added two new functions to the src/main/python/downloders.py file
Arcadiy Ivanov
@arcivanov
the test in question is null?
Jalaj Patidar
@JalajPatidar
yeah looks confusing, let me post the full logs file
Arcadiy Ivanov
@arcivanov
thanks!
Jalaj Patidar
@JalajPatidar
the two test cases that were there earlier when the build was running successfully are un-altered.
let me comment out the new code added in the main/python folder and see what happens
Arcadiy Ivanov
@arcivanov
sorry, I messed up with the logs :)
it's pyb -Premote_debug=2 -v -X
Jalaj Patidar
@JalajPatidar
no worries. I actually commented out the new code and the build passed. But it's still confusing as no new test cases were added after adding the new code.
Arcadiy Ivanov
@arcivanov
yeah, but new test cases might be failing in unexpected ways or more likely the modules fail to load
with those new methods
if you run the above
and post the logs
there may be megabytes
thanks!
Jalaj Patidar
@JalajPatidar
yea sec
Arcadiy Ivanov
@arcivanov
no rush
Jalaj Patidar
@JalajPatidar
so I narrowed it down a bit more. Commented out one of the two methods and now the build error makes more sense. That test coverage is below 70% which is fine
haven't really added a new test anyway since last successful build
Arcadiy Ivanov
@arcivanov
[DEBUG/unittest] sending (0, IndentationError('unexpected indent', ('/home/jalaj/Mx.DataScience.Pricing/src/main/python/downloaders.py', 278, 16, ' all_rvus = pd.concat(all_rvus)\n')))
[DEBUG/unittest] received (0, None)
[INFO/unittest] process shutting down
[DEBUG/unittest] running all "atexit" finalizers with priority >= 0
[DEBUG/unittest] running the remaining "atexit" finalizers
[INFO/unittest] process exiting with exitcode 0
[DEBUG/MainProcess] received (0, IndentationError('unexpected indent', ('/home/jalaj/Mx.DataScience.Pricing/src/main/python/downloaders.py', 278, 16, ' all_rvus = pd.concat(all_rvus)\n')))
IndentationError('unexpected indent', ('/home/jalaj/Mx.DataScience.Pricing/src/main/python/downloaders.py', 278, 16, ' all_rvus = pd.concat(all_rvus)\n'