Every tracked file that can carry a comment (880 of them) now opens with "Author: Guoliang Chen, a Senior Digital Design Engineer" and closes with "Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com", in the file's own comment syntax. No behaviour change: the diff outside the version bump and changelogs is comment lines only. - tools/stamp_author.py: writes the lines; idempotent, `--check` lists what is missing. Headers go under a shebang and under Markdown front matter. - Left alone: test fixtures, cases and snapshots (byte-exact inputs), JSON and JSONL, logs, images, lockfiles, docs/site/dist (regenerated) and the LICENSE files (already carry the copyright line). - tools/linux_check.sh: --help reads its header from line 3, now that the author line sits under the shebang. - tools/gates.sh green on this tree: 5 545 tests, corpus 814/6 as before. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
20 lines
1.5 KiB
Python
20 lines
1.5 KiB
Python
# Author: Guoliang Chen, a Senior Digital Design Engineer
|
|
|
|
import subprocess, pathlib, os, json, time
|
|
root=pathlib.Path('/Users/guoliangchen/repo/verilogrustformatter'); out=pathlib.Path('/tmp/lucisv-perf-review-20260908')
|
|
commands=[('cli-probe',['python3',str(out/'cli_probe.py')])]
|
|
for phase in ['scanwait','renametrace']:
|
|
commands.append((phase,['tools/guard.sh','-m','8','-t','1800','--','python3','tools/perf/bench.py',phase,'--server',str(root/'target/release/lucisv-server'),'--label','0.51.0-review-trace','--opentitan','/Users/guoliangchen/repo/opentitan','--storage',str(out/'trace-cache'),'--out',str(out/'trace-results.jsonl'),'--tries','3']))
|
|
for package,pattern in [('lucisv_server','server::tests::startup'),('vlog_refactor','check::after'),('lucisv_server','scan_order')]:
|
|
commands.append(('test-'+pattern.replace('::','-'),['tools/guard.sh','-m','8','-t','1800','--','cargo','test','--locked','-p',package,'--lib',pattern]))
|
|
for name,cmd in commands:
|
|
print('START',name,flush=True)
|
|
start=time.time()
|
|
with (out/(name+'.log')).open('w') as f:
|
|
r=subprocess.run(cmd,cwd=root,stdout=f,stderr=subprocess.STDOUT,env=dict(os.environ,PYTHONDONTWRITEBYTECODE='1'))
|
|
with (out/'post-runs.jsonl').open('a') as f:f.write(json.dumps(dict(name=name,command=cmd,exit=r.returncode,start=start,end=time.time()))+'\n')
|
|
print('END',name,r.returncode,flush=True)
|
|
if r.returncode: raise RuntimeError(name)
|
|
|
|
# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
|