22tw (pronounced tee-dub) is a centralized repository for testing and building
33tools or helpers.
44
5- ## Release to Wolfi
6- To release a version of tw to wolfi , run tools/release-to-wolfi .
5+ ## Release to stereo
6+ To release a version of tw to stereo , run tools/release-to-stereo .
77
88 $ git tag vX.Y.Z
99 $ git push origin vX.Y.Z
10- $ ./tools/release-to-wolfi vX.Y.Z \
11- ~/src/wolfi-os/ ~/src/enterprise-packages ~/src/extra-packages
10+ $ ./tools/release-to-stereo vX.Y.Z ~/git/cg/chainguard-dev/stereo/
1211
13- This takes care of updating the ` tw.yaml ` file from ` melange.yaml `
14- for wolfi, and syncs the pipeline files for other dirs.
12+ This takes care of updating the ` tw.yaml ` file from ` melange.yaml ` ,
13+ and syncs the pipeline files for other dirs.
1514
1615That will do a commit and you just need to push and do a PR.
1716
@@ -27,6 +26,14 @@ make test-melange
2726```
2827
2928This validates that the tw tools package builds and functions correctly.
29+ In order to test a tw pipeline in a local stereo repository, you need the following steps:
30+
31+ * Build the tw tools package in this repository, ` make build ` .
32+ * If required, sync the pipeline yaml to stereo by hand.
33+ * If required, build the melange package with the new pipeline, in the stereo repository.
34+ * If required, test the melange package with the new pipeline, in the stereo repository.
35+
36+ Most likely, you need to tell the melange build in the stereo repository to use the tw index.
3037
3138### 2. Project Tests (` test-projects ` )
3239Tests individual project subdirectories (e.g., ` ldd-check ` , ` package-type-check ` , ` gosh ` , etc.).
@@ -46,6 +53,11 @@ Tests the pipeline validators located in `pipelines/test/tw/` using test package
4653
4754``` bash
4855make test-pipelines
56+ user@debian:~ git/tw $ make build
57+ user@debian:~ git/tw $ cp pipelines/test/tw/something.yaml ~ /git/stereo/os/pipelines/test/tw/
58+ user@debian:~ git/tw $ cd ~ /git/stereo/enterprise-packages/
59+ user@debian:~ git/stereo/os $ make debug/somepackage
60+ user@debian:~ git/stereo/os $ MELANGE_DEBUG_TEST_OPTS=" --ignore-signatures --repository-append ~/git/tw/packages" make test-debug/somepackage
4961```
5062
5163This runs a complete test suite that:
0 commit comments