Skip to content

testing

Module for doing parallel builds. This uses a PBS-like cluster. You should be able to submit jobs (which can have dependencies)

Support for PBS is provided via the PbsJob class. If you want you could create other job classes and use them here.

Authors:

  • Toon Willems (Ghent University)
  • Kenneth Hoste (Ghent University)
  • Stijn De Weirdt (Ghent University)
  • Ward Poelmans (Ghent University)

create_test_report(msg, ecs_with_res, init_session_state, pr_nrs=None, gist_log=False, easyblock_pr_nrs=None, ec_parse_error=None)

Create test report for easyconfigs PR, in Markdown format.

PARAMETER DESCRIPTION
msg

message to be included in test report

ecs_with_res

processed easyconfigs with build result (success/failure)

init_session_state

initial session state info to include in test report

pr_nrs

list of ints for the PRs in the easyconfigs repository

DEFAULT: None

gist_log

boolean for whether to create a gist from the log file(s)

DEFAULT: False

easyblock_pr_nrs

list of ints for the PRs in the easyblocks repository

DEFAULT: None

ec_parse_error

error message for easyconfig parse failure

DEFAULT: None

overall_test_report(ecs_with_res, orig_cnt, success, msg, init_session_state, ec_parse_error=None)

Upload/dump overall test report

PARAMETER DESCRIPTION
ecs_with_res

processed easyconfigs with build result (success/failure)

orig_cnt

number of original easyconfig paths

success

boolean indicating whether all builds were successful

msg

message to be included in test report

init_session_state

initial session state info to include in test report

ec_parse_error

error message for easyconfig parse failure

DEFAULT: None

post_pr_test_report(pr_nrs, repo_type, test_report, msg, init_session_state, success)

Post test report in a gist, and submit comment in easyconfigs or easyblocks PR.

regtest(easyconfig_paths, modtool, build_specs=None)

Run regression test, using easyconfigs available in given path

PARAMETER DESCRIPTION
easyconfig_paths

path of easyconfigs to run regtest on

modtool

ModulesTool instance to use

build_specs

dictionary specifying build specifications (e.g. version, toolchain, ...)

DEFAULT: None

session_state()

Get session state: timestamp, dump of environment, system info.

upload_test_report_as_gist(test_report, descr=None, fn=None)

Upload test report as a gist.