Skip to content

Commit f8bf0fd

Browse files
authored
Merge pull request #336 from The-OpenROAD-Project-staging/add-difference-found
Add GHA to check for differences found in .ok files
2 parents 5c0158b + d1bc00c commit f8bf0fd

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check that OK files are up to date
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
No-Diffs-In-Ok-Files:
8+
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}
9+
steps:
10+
- name: Check out repository code
11+
uses: actions/checkout@v6
12+
with:
13+
fetch-depth: 0
14+
- name: Check ok files
15+
run: |
16+
set +e
17+
grep --include="*.ok" -Rn "Differences found "
18+
if [[ "$?" == "0" ]]; then
19+
exit 1
20+
fi

util/test/util_log_redirect.ok

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ Path Type: min
6464

6565

6666
No paths found.
67-
Warning 168: util_log_redirect.tcl line 1, unknown field nets.
6867
Startpoint: r3 (rising edge-triggered flip-flop clocked by clk)
6968
Endpoint: out (output port clocked by clk)
7069
Path Group: clk
@@ -76,6 +75,7 @@ Fanout Cap Slew Delay Time Description
7675
0.00 0.00 clock network delay (ideal)
7776
0.00 0.00 0.00 ^ r3/CLK (DFFHQx4_ASAP7_75t_R)
7877
1 0.00 0.01 0.04 0.04 ^ r3/Q (DFFHQx4_ASAP7_75t_R)
78+
out (net)
7979
0.00 0.00 0.04 ^ out (out)
8080
0.04 data arrival time
8181

util/test/util_log_redirect.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ log_begin $log_file1
3030
report_checks
3131
report_checks -path_delay min
3232
report_checks -from [get_ports in1] -to [get_ports out]
33-
report_checks -fields {slew cap input_pins nets fanout}
33+
report_checks -fields {slew cap input_pins net fanout}
3434
report_units
3535

3636
log_end

0 commit comments

Comments
 (0)