Skip to content

Commit bae244a

Browse files
authored
Merge pull request #7857 from Pinata-Consulting/bazel-test-gui-on-pr-use-case
bazel: test GUI on github request use-case
2 parents 6eb3aa4 + cde15b7 commit bae244a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/user/Bazel.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,23 @@ Now start the bisection as usual with a bad and good commit from the above list:
339339
Use `git bisect --skip` if the version does not build or otherwise should not be tested.
340340

341341
OpenSTA has an additional challenge in that only the https://github.com/The-OpenROAD-Project/OpenSTA fork has the Bazel BUILD file. To bisect the https://github.com/parallaxsw/OpenSTA branch, check out the branch you want, then check out BUILD from the fork and do a `git reset HEAD`. This will leave BUILD as a local file, because it is not in the upstream repository and bisection can be done on the upstream master branch.
342+
343+
## Testing the GUI with gcd on a pull request by number
344+
345+
To test a PR with the GUI on gcd, run:
346+
347+
```
348+
$ git fetch origin pull/7856/head
349+
$ git checkout FETCH_HEAD
350+
$ bazelisk run test/orfs/gcd:gcd_final /tmp/gcd -- gui_final
351+
```
352+
353+
This will:
354+
355+
- fetch and checkout pull request 7856
356+
- build OpenROAD
357+
- run bazel-orfs flow on gcd
358+
- create a /tmp/gcd folder with the ORFS project
359+
- launch the GUI opening gui_final gcd
360+
361+
`bazelisk run test/orfs/gcd:gcd_final` run alone would create the `/tmp/gcd` folder and the arguments. The arguments after `--` are forwarded to the `/tmp/gcd/make` script that invokes make with the gcd ORFS project set up in `/tmp/gcd/_main/config.mk`.

0 commit comments

Comments
 (0)