module

pipen_report.report_manager

Classes
class

pipen_report.report_manager.NPMBuildingError()

Bases
Exception BaseException

Error when npm run build failed

class

pipen_report.report_manager.ReportManager(plugin_opts, outdir, workdir, cachedir_for_cloud)

Initialize the report manager

Methods
method

check_npm_and_setup_dirs()

Check if npm is available

method

init_pipeline_data(pipen)

Write data to workdir

method

render_proc_report(proc)

Render the report template for a process

Parameters
  • proc (Proc) The process
  • status The status of the process
method

build(proc, nobuild, force_build, cached=False)

Build report for a process

Parameters
  • proc (Proc | str) The process
  • nobuild (bool) Don't build the report
  • cached (bool, optional) Whether the process is cached
method

sync_reports(logfn=None)

Sync the reports to the cloud output directory if needed