Skip to content

Commit c558d39

Browse files
author
Vasileios Karakasis
committed
Update tips & tricks tutorial listings
1 parent 149af54 commit c558d39

File tree

9 files changed

+372
-156
lines changed

9 files changed

+372
-156
lines changed

docs/listings/deps_complex_run.txt

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
[ReFrame Setup]
2+
version: 3.10.0-dev.3+149af549
3+
command: './bin/reframe -c unittests/resources/checks_unlisted/deps_complex.py -r'
4+
launched by: user@host
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '<builtin>'
7+
check search path: '/home/user/Repositories/reframe/unittests/resources/checks_unlisted/deps_complex.py'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
10+
11+
[==========] Running 10 check(s)
12+
[==========] Started on Sat Jan 22 23:44:18 2022
13+
14+
[----------] start processing checks
15+
[ RUN ] T0 @generic:default+builtin
16+
[ OK ] ( 1/10) T0 @generic:default+builtin [compile: 0.018s run: 0.292s total: 0.336s]
17+
[ RUN ] T4 @generic:default+builtin
18+
[ OK ] ( 2/10) T4 @generic:default+builtin [compile: 0.016s run: 0.336s total: 0.380s]
19+
[ RUN ] T5 @generic:default+builtin
20+
[ OK ] ( 3/10) T5 @generic:default+builtin [compile: 0.016s run: 0.389s total: 0.446s]
21+
[ RUN ] T1 @generic:default+builtin
22+
[ OK ] ( 4/10) T1 @generic:default+builtin [compile: 0.016s run: 0.459s total: 0.501s]
23+
[ RUN ] T8 @generic:default+builtin
24+
[ FAIL ] ( 5/10) T8 @generic:default+builtin [compile: n/a run: n/a total: 0.006s]
25+
==> test failed during 'setup': test staged in '/home/user/Repositories/reframe/stage/generic/default/builtin/T8'
26+
[ FAIL ] ( 6/10) T9 @generic:default+builtin [compile: n/a run: n/a total: n/a]
27+
==> test failed during 'startup': test staged in None
28+
[ RUN ] T6 @generic:default+builtin
29+
[ OK ] ( 7/10) T6 @generic:default+builtin [compile: 0.016s run: 0.530s total: 0.584s]
30+
[ RUN ] T2 @generic:default+builtin
31+
[ RUN ] T3 @generic:default+builtin
32+
[ FAIL ] ( 8/10) T2 @generic:default+builtin [compile: 0.019s run: 0.324s total: 0.424s]
33+
==> test failed during 'sanity': test staged in '/home/user/Repositories/reframe/stage/generic/default/builtin/T2'
34+
[ FAIL ] ( 9/10) T7 @generic:default+builtin [compile: n/a run: n/a total: n/a]
35+
==> test failed during 'startup': test staged in None
36+
[ OK ] (10/10) T3 @generic:default+builtin [compile: 0.017s run: 0.328s total: 0.403s]
37+
[----------] all spawned checks have finished
38+
39+
[ FAILED ] Ran 10/10 test case(s) from 10 check(s) (4 failure(s), 0 skipped)
40+
[==========] Finished on Sat Jan 22 23:44:21 2022
41+
42+
==============================================================================
43+
SUMMARY OF FAILURES
44+
------------------------------------------------------------------------------
45+
FAILURE INFO for T8
46+
* Expanded name: T8
47+
* Description: T8
48+
* System partition: generic:default
49+
* Environment: builtin
50+
* Stage directory: /home/user/Repositories/reframe/stage/generic/default/builtin/T8
51+
* Node list:
52+
* Job type: local (id=None)
53+
* Dependencies (conceptual): ['T1']
54+
* Dependencies (actual): [('T1', 'generic:default', 'builtin')]
55+
* Maintainers: []
56+
* Failing phase: setup
57+
* Rerun with '-n T8 -p builtin --system generic:default -r'
58+
* Reason: exception
59+
Traceback (most recent call last):
60+
File "/home/user/Repositories/reframe/reframe/frontend/executors/__init__.py", line 291, in _safe_call
61+
return fn(*args, **kwargs)
62+
File "/home/user/Repositories/reframe/reframe/core/hooks.py", line 82, in _fn
63+
getattr(obj, h.__name__)()
64+
File "/home/user/Repositories/reframe/reframe/core/hooks.py", line 32, in _fn
65+
func(*args, **kwargs)
66+
File "/home/user/Repositories/reframe/unittests/resources/checks_unlisted/deps_complex.py", line 180, in fail
67+
raise Exception
68+
Exception
69+
70+
------------------------------------------------------------------------------
71+
FAILURE INFO for T9
72+
* Expanded name: T9
73+
* Description: T9
74+
* System partition: generic:default
75+
* Environment: builtin
76+
* Stage directory: None
77+
* Node list:
78+
* Job type: local (id=None)
79+
* Dependencies (conceptual): ['T8']
80+
* Dependencies (actual): [('T8', 'generic:default', 'builtin')]
81+
* Maintainers: []
82+
* Failing phase: startup
83+
* Rerun with '-n T9 -p builtin --system generic:default -r'
84+
* Reason: task dependency error: dependencies failed
85+
------------------------------------------------------------------------------
86+
FAILURE INFO for T2
87+
* Expanded name: T2
88+
* Description: T2
89+
* System partition: generic:default
90+
* Environment: builtin
91+
* Stage directory: /home/user/Repositories/reframe/stage/generic/default/builtin/T2
92+
* Node list: tresa.localNone
93+
* Job type: local (id=49427)
94+
* Dependencies (conceptual): ['T6']
95+
* Dependencies (actual): [('T6', 'generic:default', 'builtin')]
96+
* Maintainers: []
97+
* Failing phase: sanity
98+
* Rerun with '-n T2 -p builtin --system generic:default -r'
99+
* Reason: sanity error: 31 != 30
100+
------------------------------------------------------------------------------
101+
FAILURE INFO for T7
102+
* Expanded name: T7
103+
* Description: T7
104+
* System partition: generic:default
105+
* Environment: builtin
106+
* Stage directory: None
107+
* Node list:
108+
* Job type: local (id=None)
109+
* Dependencies (conceptual): ['T2']
110+
* Dependencies (actual): [('T2', 'generic:default', 'builtin')]
111+
* Maintainers: []
112+
* Failing phase: startup
113+
* Rerun with '-n T7 -p builtin --system generic:default -r'
114+
* Reason: task dependency error: dependencies failed
115+
------------------------------------------------------------------------------
116+
Run report saved in '/home/user/.reframe/reports/run-report.json'
117+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-92y3fr5s.log'

docs/listings/deps_rerun_t6.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[ReFrame Setup]
2+
version: 3.10.0-dev.3+149af549
3+
command: './bin/reframe --restore-session --keep-stage-files -n T6 -r'
4+
launched by: user@host
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '<builtin>'
7+
check search path: '/home/user/Repositories/reframe/unittests/resources/checks_unlisted/deps_complex.py'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
10+
11+
[==========] Running 1 check(s)
12+
[==========] Started on Sat Jan 22 23:44:25 2022
13+
14+
[----------] start processing checks
15+
[ RUN ] T6 @generic:default+builtin
16+
[ OK ] (1/1) T6 @generic:default+builtin [compile: 0.017s run: 0.286s total: 0.330s]
17+
[----------] all spawned checks have finished
18+
19+
[ PASSED ] Ran 1/1 test case(s) from 1 check(s) (0 failure(s), 0 skipped)
20+
[==========] Finished on Sat Jan 22 23:44:25 2022
21+
Run report saved in '/home/user/.reframe/reports/run-report.json'
22+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-mug0a4cb.log'

docs/listings/deps_run_t6.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[ReFrame Setup]
2+
version: 3.10.0-dev.3+149af549
3+
command: './bin/reframe -c unittests/resources/checks_unlisted/deps_complex.py -n T6 -r'
4+
launched by: user@host
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '<builtin>'
7+
check search path: '/home/user/Repositories/reframe/unittests/resources/checks_unlisted/deps_complex.py'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
10+
11+
[==========] Running 5 check(s)
12+
[==========] Started on Sat Jan 22 23:44:25 2022
13+
14+
[----------] start processing checks
15+
[ RUN ] T0 @generic:default+builtin
16+
[ OK ] (1/5) T0 @generic:default+builtin [compile: 0.017s run: 0.289s total: 0.331s]
17+
[ RUN ] T4 @generic:default+builtin
18+
[ OK ] (2/5) T4 @generic:default+builtin [compile: 0.018s run: 0.330s total: 0.374s]
19+
[ RUN ] T5 @generic:default+builtin
20+
[ OK ] (3/5) T5 @generic:default+builtin [compile: 0.018s run: 0.384s total: 0.442s]
21+
[ RUN ] T1 @generic:default+builtin
22+
[ OK ] (4/5) T1 @generic:default+builtin [compile: 0.018s run: 0.452s total: 0.494s]
23+
[ RUN ] T6 @generic:default+builtin
24+
[ OK ] (5/5) T6 @generic:default+builtin [compile: 0.018s run: 0.525s total: 0.582s]
25+
[----------] all spawned checks have finished
26+
27+
[ PASSED ] Ran 5/5 test case(s) from 5 check(s) (0 failure(s), 0 skipped)
28+
[==========] Finished on Sat Jan 22 23:44:28 2022
29+
Run report saved in '/home/user/.reframe/reports/run-report.json'
30+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-ktylyaqk.log'
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Loading user configuration
2+
Loading configuration file: 'tutorials/config/settings.py'
3+
Detecting system
4+
Looking for a matching configuration entry for system 'host'
5+
Configuration found: picking system 'generic'
6+
Selecting subconfig for 'generic'
7+
Initializing runtime
8+
Selecting subconfig for 'generic:default'
9+
Initializing system partition 'default'
10+
Selecting subconfig for 'generic'
11+
Initializing system 'generic'
12+
Initializing modules system 'nomod'
13+
detecting topology info for generic:default
14+
> found topology file '/home/user/.reframe/topology/generic-default/processor.json'; loading...
15+
> device auto-detection is not supported
16+
[ReFrame Environment]
17+
RFM_CHECK_SEARCH_PATH=<not set>
18+
RFM_CHECK_SEARCH_RECURSIVE=<not set>
19+
RFM_CLEAN_STAGEDIR=<not set>
20+
RFM_COLORIZE=n
21+
RFM_COMPACT_TEST_NAMES=n
22+
RFM_CONFIG_FILE=<not set>
23+
RFM_DUMP_PIPELINE_PROGRESS=<not set>
24+
RFM_GIT_TIMEOUT=<not set>
25+
RFM_GRAYLOG_ADDRESS=<not set>
26+
RFM_HTTPJSON_URL=<not set>
27+
RFM_IGNORE_CHECK_CONFLICTS=<not set>
28+
RFM_IGNORE_REQNODENOTAVAIL=<not set>
29+
RFM_INSTALL_PREFIX=/home/user/Repositories/reframe
30+
RFM_KEEP_STAGE_FILES=<not set>
31+
RFM_MODULE_MAPPINGS=<not set>
32+
RFM_MODULE_MAP_FILE=<not set>
33+
RFM_NON_DEFAULT_CRAYPE=<not set>
34+
RFM_OUTPUT_DIR=<not set>
35+
RFM_PERFLOG_DIR=<not set>
36+
RFM_PIPELINE_TIMEOUT=<not set>
37+
RFM_PREFIX=<not set>
38+
RFM_PURGE_ENVIRONMENT=<not set>
39+
RFM_REMOTE_DETECT=<not set>
40+
RFM_REMOTE_WORKDIR=<not set>
41+
RFM_REPORT_FILE=<not set>
42+
RFM_REPORT_JUNIT=<not set>
43+
RFM_RESOLVE_MODULE_CONFLICTS=<not set>
44+
RFM_SAVE_LOG_FILES=<not set>
45+
RFM_STAGE_DIR=<not set>
46+
RFM_SYSLOG_ADDRESS=<not set>
47+
RFM_SYSTEM=<not set>
48+
RFM_TIMESTAMP_DIRS=<not set>
49+
RFM_TRAP_JOB_ERRORS=<not set>
50+
RFM_UNLOAD_MODULES=<not set>
51+
RFM_USER_MODULES=<not set>
52+
RFM_USE_LOGIN_SHELL=<not set>
53+
RFM_VERBOSE=<not set>
54+
[ReFrame Setup]
55+
version: 3.10.0-dev.3+149af549
56+
command: './bin/reframe -C tutorials/config/settings.py -c tutorials/basics/hello/hello2.py -l -vv'
57+
launched by: user@host
58+
working directory: '/home/user/Repositories/reframe'
59+
settings file: 'tutorials/config/settings.py'
60+
check search path: '/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py'
61+
stage directory: '/home/user/Repositories/reframe/stage'
62+
output directory: '/home/user/Repositories/reframe/output'
63+
64+
Looking for tests in '/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py'
65+
Validating '/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py': OK
66+
> Loaded 2 test(s)
67+
Loaded 2 test(s)
68+
Generated 2 test case(s)
69+
Filtering test cases(s) by name: 2 remaining
70+
Filtering test cases(s) by tags: 2 remaining
71+
Filtering test cases(s) by other attributes: 2 remaining
72+
Building and validating the full test DAG
73+
Full test DAG:
74+
('HelloMultiLangTest_cpp', 'generic:default', 'builtin') -> []
75+
('HelloMultiLangTest_c', 'generic:default', 'builtin') -> []
76+
Final number of test cases: 2
77+
[List of matched checks]
78+
- HelloMultiLangTest %lang=cpp
79+
- HelloMultiLangTest %lang=c
80+
Found 2 check(s)
81+
82+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-fs1arce0.log'
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[ReFrame Setup]
2+
version: 3.10.0-dev.3+149af549
3+
command: './bin/reframe -C tutorials/config/settings.py -c tutorials/basics/hello/hello2.py -r'
4+
launched by: user@host
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: 'tutorials/config/settings.py'
7+
check search path: '/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
10+
11+
[==========] Running 2 check(s)
12+
[==========] Started on Sun Jan 23 00:11:07 2022
13+
14+
[----------] start processing checks
15+
[ RUN ] HelloMultiLangTest %lang=cpp @catalina:default+gnu
16+
[ RUN ] HelloMultiLangTest %lang=cpp @catalina:default+clang
17+
[ RUN ] HelloMultiLangTest %lang=c @catalina:default+gnu
18+
[ RUN ] HelloMultiLangTest %lang=c @catalina:default+clang
19+
rfm_HelloMultiLangTest_cpp_job.out
20+
[ OK ] (1/4) HelloMultiLangTest %lang=cpp @catalina:default+gnu [compile: 0.737s run: 0.748s total: 1.765s]
21+
rfm_HelloMultiLangTest_cpp_job.out
22+
[ OK ] (2/4) HelloMultiLangTest %lang=cpp @catalina:default+clang [compile: 0.735s run: 0.909s total: 1.928s]
23+
rfm_HelloMultiLangTest_c_job.out
24+
[ OK ] (3/4) HelloMultiLangTest %lang=c @catalina:default+gnu [compile: 0.719s run: 1.072s total: 2.090s]
25+
rfm_HelloMultiLangTest_c_job.out
26+
[ OK ] (4/4) HelloMultiLangTest %lang=c @catalina:default+clang [compile: 0.714s run: 1.074s total: 2.094s]
27+
[----------] all spawned checks have finished
28+
29+
[ PASSED ] Ran 4/4 test case(s) from 2 check(s) (0 failure(s), 0 skipped)
30+
[==========] Finished on Sun Jan 23 00:11:10 2022
31+
Run report saved in '/home/user/.reframe/reports/run-report.json'
32+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-jumlrg66.log'

docs/listings/hello2_typo.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[ReFrame Setup]
2-
version: 3.10.0-dev.2+cb5edd8b
2+
version: 3.10.0-dev.3+149af549
33
command: './bin/reframe -c tutorials/basics/hello -R -l'
44
launched by: user@host
5-
working directory: '/Users/user/Repositories/reframe'
6-
settings file: 'tutorials/config/settings.py'
7-
check search path: (R) '/Users/user/Repositories/reframe/tutorials/basics/hello'
8-
stage directory: '/Users/user/Repositories/reframe/stage'
9-
output directory: '/Users/user/Repositories/reframe/output'
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '<builtin>'
7+
check search path: (R) '/home/user/Repositories/reframe/tutorials/basics/hello'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
1010

11-
./bin/reframe: skipping test file '/Users/user/Repositories/reframe/tutorials/basics/hello/hello2.py': name error: tutorials/basics/hello/hello2.py:13: name 'paramter' is not defined
11+
./bin/reframe: skipping test file '/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py': name error: tutorials/basics/hello/hello2.py:13: name 'paramter' is not defined
1212
lang = paramter(['c', 'cpp'])
1313
(rerun with '-v' for more information)
1414
[List of matched checks]
1515
- HelloTest
1616
Found 1 check(s)
1717

18-
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-rt_ds_vp.log'
18+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-bzqy3nc7.log'
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[ReFrame Setup]
2-
version: 3.10.0-dev.2+cb5edd8b
2+
version: 3.10.0-dev.3+149af549
33
command: './bin/reframe -c tutorials/basics/hello -R -l -v'
44
launched by: user@host
5-
working directory: '/Users/user/Repositories/reframe'
6-
settings file: 'tutorials/config/settings.py'
7-
check search path: (R) '/Users/user/Repositories/reframe/tutorials/basics/hello'
8-
stage directory: '/Users/user/Repositories/reframe/stage'
9-
output directory: '/Users/user/Repositories/reframe/output'
5+
working directory: '/home/user/Repositories/reframe'
6+
settings file: '<builtin>'
7+
check search path: (R) '/home/user/Repositories/reframe/tutorials/basics/hello'
8+
stage directory: '/home/user/Repositories/reframe/stage'
9+
output directory: '/home/user/Repositories/reframe/output'
1010

11-
./bin/reframe: skipping test file '/Users/user/Repositories/reframe/tutorials/basics/hello/hello2.py': name error: tutorials/basics/hello/hello2.py:13: name 'paramter' is not defined
11+
./bin/reframe: skipping test file '/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py': name error: tutorials/basics/hello/hello2.py:13: name 'paramter' is not defined
1212
lang = paramter(['c', 'cpp'])
1313
(rerun with '-v' for more information)
1414
Traceback (most recent call last):
15-
File "/Users/user/Repositories/reframe/reframe/frontend/loader.py", line 237, in load_from_file
15+
File "/home/user/Repositories/reframe/reframe/frontend/loader.py", line 237, in load_from_file
1616
util.import_module_from_file(filename, force)
17-
File "/Users/user/Repositories/reframe/reframe/utility/__init__.py", line 103, in import_module_from_file
17+
File "/home/user/Repositories/reframe/reframe/utility/__init__.py", line 109, in import_module_from_file
1818
return importlib.import_module(module_name)
1919
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
2020
return _bootstrap._gcd_import(name[level:], package, level)
@@ -24,9 +24,9 @@ Traceback (most recent call last):
2424
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
2525
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
2626
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
27-
File "/Users/user/Repositories/reframe/tutorials/basics/hello/hello2.py", line 12, in <module>
27+
File "/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py", line 12, in <module>
2828
class HelloMultiLangTest(rfm.RegressionTest):
29-
File "/Users/user/Repositories/reframe/tutorials/basics/hello/hello2.py", line 13, in HelloMultiLangTest
29+
File "/home/user/Repositories/reframe/tutorials/basics/hello/hello2.py", line 13, in HelloMultiLangTest
3030
lang = paramter(['c', 'cpp'])
3131
NameError: name 'paramter' is not defined
3232

@@ -40,4 +40,4 @@ Final number of test cases: 1
4040
- HelloTest
4141
Found 1 check(s)
4242

43-
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-do69ki6t.log'
43+
Log file(s) saved in '/var/folders/h7/k7cgrdl13r996m4dmsvjq7v80000gp/T/rfm-l21cjjas.log'

0 commit comments

Comments
 (0)