Skip to content

Commit 67fb875

Browse files
oharboeclaude
andcommitted
Merge origin/master into do-route-only
flow/Makefile: master dropped do-5_route.sdc from do-route (every .odb now carries its .sdc); this branch dropped do-5_1_grt. do-route keeps both changes: do-5_2_route do-5_3_fillcell do-5_route. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2 parents 567b172 + a47d4fd commit 67fb875

55 files changed

Lines changed: 1546 additions & 2080 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/requirements/requirements_lock.txt‎

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.10
3-
# by the following command:
4-
#
5-
# pip-compile --generate-hashes --output-file=.github/requirements/requirements_lock.txt .github/requirements/requirements.in
6-
#
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --generate-hashes --python-version 3.12 --output-file=.github/requirements/requirements_lock.txt .github/requirements/requirements.in
73
annotated-types==0.7.0 \
84
--hash=sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53 \
95
--hash=sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89
@@ -315,17 +311,11 @@ distro==1.9.0 \
315311
--hash=sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed \
316312
--hash=sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2
317313
# via ruyaml
318-
exceptiongroup==1.3.1 \
319-
--hash=sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219 \
320-
--hash=sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598
321-
# via
322-
# anyio
323-
# cattrs
324314
firebase-admin==7.4.0 \
325315
--hash=sha256:08d7550efdba32fbd306141ce82150f9ffb91c1550e07aa4ed5757af4895d1ff \
326316
--hash=sha256:416967d1aacd30cfece2a5b0c606a52ba7614eb3093f054399be3868489cd7a8
327317
# via -r .github/requirements/requirements.in
328-
google-api-core[grpc]==2.30.3 \
318+
google-api-core==2.30.3 \
329319
--hash=sha256:a85761ba72c444dad5d611c2220633480b2b6be2521eca69cca2dbb3ffd6bfe8 \
330320
--hash=sha256:e601a37f148585319b26db36e219df68c5d07b6382cff2d580e83404e44d641b
331321
# via
@@ -488,7 +478,7 @@ httpcore==1.0.9 \
488478
--hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \
489479
--hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8
490480
# via httpx
491-
httpx[http2]==0.28.1 \
481+
httpx==0.28.1 \
492482
--hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \
493483
--hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad
494484
# via firebase-admin
@@ -752,7 +742,7 @@ pygls==1.3.1 \
752742
--hash=sha256:140edceefa0da0e9b3c533547c892a42a7d2fd9217ae848c330c53d266a55018 \
753743
--hash=sha256:6e00f11efc56321bdeb6eac04f6d86131f654c7d49124344a9ebb968da3dd91e
754744
# via tclint
755-
pyjwt[crypto]==2.13.0 \
745+
pyjwt==2.13.0 \
756746
--hash=sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423 \
757747
--hash=sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728
758748
# via firebase-admin
@@ -842,6 +832,10 @@ ruyaml==0.91.0 \
842832
--hash=sha256:50e0ee3389c77ad340e209472e0effd41ae0275246df00cdad0a067532171755 \
843833
--hash=sha256:6ce9de9f4d082d696d3bde264664d1bcdca8f5a9dff9d1a1f1a127969ab871ab
844834
# via yamlfix
835+
setuptools==84.2.1 \
836+
--hash=sha256:3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc \
837+
--hash=sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2
838+
# via ruyaml
845839
tclint==0.7.0 \
846840
--hash=sha256:58b54bf333a96ef4b4eac3bde23da997a64a4414a4cdec8e5e0a9fbafb6dcd25 \
847841
--hash=sha256:bd605b11d44708e1537b902e63d7dd1d05f2d85c2c99a36854b157606eac1e8a
@@ -850,22 +844,15 @@ toml==0.10.2 \
850844
--hash=sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b \
851845
--hash=sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f
852846
# via maison
853-
tomli==2.0.2 \
854-
--hash=sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38 \
855-
--hash=sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed
856-
# via tclint
857847
typing-extensions==4.15.0 \
858848
--hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \
859849
--hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548
860850
# via
861851
# anyio
862852
# cattrs
863-
# cryptography
864-
# exceptiongroup
865853
# grpcio
866854
# pydantic
867855
# pydantic-core
868-
# pyjwt
869856
# typing-inspection
870857
typing-inspection==0.4.2 \
871858
--hash=sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7 \
@@ -887,8 +874,3 @@ zipp==4.1.0 \
887874
--hash=sha256:25ad4e16390cd314347dd8f1de67a2ac538ae658ed4ab9db16029c07c188e97f \
888875
--hash=sha256:4cb57381f544315db7688e976e922a2b18cdb513d21cc194eb42232ba2a3e602
889876
# via importlib-metadata
890-
891-
# WARNING: The following packages were not pinned, but pip requires them to be
892-
# pinned when the requirements file includes hashes and the requirement is not
893-
# satisfied by a package already installed. Consider using the --allow-unsafe flag.
894-
# setuptools

‎.github/workflows/github-actions-lint-tcl.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- uses: actions/setup-python@v7
2222
with:
23-
python-version: "3.10"
23+
python-version: "3.12"
2424

2525
- name: Install Dependencies
2626
run: |

‎.github/workflows/github-actions-manual-update-rules.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fetch-depth: 0
2323
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2424
with:
25-
python-version: "3.10"
25+
python-version: "3.12"
2626
- name: Install Python Packages
2727
run: |
2828
python3 -m venv venv

‎.github/workflows/github-actions-update-rules.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
git checkout "origin/pr/${{ github.event.client_payload.branch }}"
2626
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2727
with:
28-
python-version: "3.10"
28+
python-version: "3.12"
2929
- name: Install Python Packages
3030
run: |
3131
python3 -m venv venv

‎.github/workflows/github-actions-yaml-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
.github/requirements/requirements_lock.txt
2525
- uses: actions/setup-python@v7
2626
with:
27-
python-version: "3.10"
27+
python-version: "3.12"
2828
- name: Install dependencies
2929
run: |
3030
python3 -m venv venv

‎.readthedocs.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ version: 2
66

77
# Set the OS, Python version and other tools you might need
88
build:
9-
os: ubuntu-22.04
9+
os: ubuntu-24.04
1010
tools:
11-
python: "3.10"
11+
python: "3.12"
1212

1313
# Build documentation in the "docs/" directory with Sphinx
1414
sphinx:

‎docs/README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ repository and is published at
1111

1212
### Requires
1313

14-
- Python 3.10 — the version Read the Docs builds with (see `.readthedocs.yaml`).
15-
The pinned Sphinx release does not run on Python 3.13 or newer.
14+
- Python 3.12 or newer — Read the Docs builds with 3.12 (see `.readthedocs.yaml`).
15+
The pinned Sphinx release needs Python 3.12 or newer.
1616
- `pip`
1717
- `virtualenv` (or the standard-library `venv`)
18+
- `uv`, only to regenerate the lock file
1819

1920
### Install prerequisites
2021

@@ -29,10 +30,10 @@ pip install -r docs/requirements_lock.txt
2930
`docs/requirements_lock.txt` is the hash-pinned lock file that Read the Docs
3031
installs, so a local build matches the published one. The direct dependencies
3132
are listed in `docs/requirements.in`; after editing that file, regenerate the
32-
lock with:
33+
lock with `uv` for Python 3.12:
3334

3435
``` shell
35-
pip-compile --generate-hashes --output-file=docs/requirements_lock.txt docs/requirements.in
36+
uv pip compile --generate-hashes --python-version 3.12 --output-file=docs/requirements_lock.txt docs/requirements.in
3637
```
3738

3839
### Build

‎docs/contrib/EndpointSlackTracking.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Every step then writes `$(REPORTS_DIR)/<step>_endpoint_slack.json`, e.g.
2424
It works in the single-process `flow/scripts/flow.tcl` flow as well. Steps
2525
that just copy their input (`orfs_copy_db`, e.g. `5_3_fillcell` without fill
2626
cells) re-time the design if it is loaded, or else copy the previous step's
27-
snapshot. Intermediate `.odb` files written through `orfs_write_db` (e.g. CTS
28-
`save_progress`) also get a snapshot; `*-failed` ones don't.
27+
snapshot. Intermediate `.odb` files written through `orfs_write_db` (e.g. CTS's
28+
`4_1_error.odb`) also get a snapshot; `*-failed` ones don't.
2929

3030
A placed step is timed with the parasitics OpenROAD has for it: a bare
3131
`estimate_parasitics` estimates from the global routes when there are any,

‎docs/contrib/Metrics.md‎

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ a small set of example designs through our complete RTL-to-GDS flow.
88
To keep track of the quality of the results, every CI run uploads its metrics
99
to the [QoR dashboard](https://dashboard.precisioninno.com). The dashboard
1010
stores one rule per tracked metric and design (a comparison direction and a
11-
tolerance), and judges a run against a real baseline build: the latest
12-
`master` build by default. That check is the QoR gate in `make metadata`.
11+
tolerance), and judges a run against a real baseline build: the `master`
12+
build at the run's merge base by default. That check is the QoR gate in
13+
`make metadata`.
1314

1415
The values a run is measured against are collected by
1516
`flow/util/genMetrics.py` into `$(REPORTS_DIR)/metadata.json`
@@ -47,12 +48,52 @@ check did not run. Read the `[WARN]` lines to see which. Pass `--strict` to
4748
`checkQorMetrics.py` to get distinct exit codes instead (2 inconclusive,
4849
3 unreachable).
4950

50-
Two environment variables shape the comparison:
51-
52-
- `DASHBOARD_API_KEY` grants access to private platforms. Without it, a
53-
private design reports as inconclusive, not as an authentication error.
54-
- `DASHBOARD_JOB_NAME` names the Jenkins pipeline whose `master` builds are the
55-
baseline. The default is `OpenROAD-flow-scripts-Public`.
51+
The check runs as the commit `metadata.json` records. The dashboard searches
52+
its default baseline pipelines in order and takes a `master` build that has the
53+
design: the one at the commit's merge base with `master`. A commit on `master`
54+
is its own merge base, so a run of a `master` commit, such as a downloaded CI
55+
artifact, is compared against that commit's own build.
56+
57+
The dashboard finds the merge base through GitHub, so it cannot find one for a
58+
commit that was never pushed. The check handles that commit itself: when no
59+
remote branch in your checkout contains the commit, it computes
60+
`git merge-base <commit> origin/master` locally and pins the baseline to that
61+
build. A commit that is on a remote, or that is not in your checkout at all, is
62+
left to the dashboard.
63+
64+
When the dashboard has no `master` build at the merge base, or no merge base,
65+
it compares against the latest `master` build instead (the latest one before
66+
the commit, if it knows the commit's date). That build may be newer than the
67+
commit's base, so changes merged since then can show up as regressions or hide
68+
real ones, and the result moves with `master`. The report warns whenever this
69+
happens; set `DASHBOARD_BASE_COMMIT` to compare against an exact build instead.
70+
71+
These environment variables shape the comparison:
72+
73+
- `DASHBOARD_API_KEY` grants access to private platforms. With it, a private
74+
design is resolved like a public one: the dashboard's default baseline
75+
pipelines include the private ones, and only a caller with a key can see
76+
their builds. Without it, a private design has no baseline and reports as
77+
inconclusive, not as an authentication error.
78+
- `DASHBOARD_JOB_NAME` checks the run as a build of that CI pipeline instead,
79+
with the pipeline's rules for the branch checked out in this repository: the
80+
previous build on a trunk branch such as `master`, the merge base on any
81+
other branch. It is meant for CI jobs, which also set `DASHBOARD_BRANCH` and
82+
`DASHBOARD_COMMIT` (or pass `--branch` and `--commit`) since their checkout
83+
has no branch. Earlier versions of the check used it to pick the pipeline
84+
that holds a private platform's baseline; that is no longer needed, so leave
85+
it unset for a local run, private or not. With it set, an unpushed commit is
86+
not pinned to its local merge base.
87+
- `DASHBOARD_MERGE_BASE` (`--merge-base`) names the ref an unpushed commit's
88+
merge base is computed against, `origin/master` by default. Set it to your
89+
upstream ref if `origin` is a fork with an outdated `master`, or to `none` to
90+
leave unpushed commits to the dashboard. It does not apply together with
91+
`DASHBOARD_BASE_COMMIT` or `DASHBOARD_JOB_NAME`.
92+
- `DASHBOARD_BASE_COMMIT` (`--base-commit`) pins the baseline to the build of
93+
that commit. Nothing else is tried: if that commit has no build of the
94+
design, the check is inconclusive.
95+
- `DASHBOARD_API_URL` (`--api-url`) points the check at another deployment and
96+
takes precedence over `--beta`.
5697

5798
If you only changed synthesis, you can gate a synthesis-only run, without
5899
running the rest of the flow. Only the `synth__` and `constraints__` metrics
@@ -62,8 +103,7 @@ are sent, so only their rules are evaluated:
62103
make metadata-synth
63104
```
64105

65-
To check every run under `reports/` at once, or to pin the baseline to a
66-
specific commit, call the script directly:
106+
To check every run under `reports/` at once, call the script directly:
67107

68108
``` shell
69109
cd OpenROAD-flow-scripts/flow

‎docs/contrib/TclContract.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ to follow.
2626

2727
- **A script never writes its own version of an idiom `util.tcl` already
2828
has.** An optional flag is added with `append_env_var`, a command that does
29-
real work runs through `log_cmd`, a result is written with `orfs_write_db`
30-
and `orfs_write_sdc`. An idiom a change needs in two places becomes a proc
29+
real work runs through `log_cmd`, a result is written with `orfs_write_db`,
30+
which writes the `.odb` and its `.sdc`. An idiom a change needs in two places becomes a proc
3131
in `util.tcl`.
3232
*Breaks:* each copy grows its own small bug, and nobody can grep for the
3333
places that do the same thing.

0 commit comments

Comments
 (0)