Re: CI and test improvements
Andres Freund <andres@anarazel.de>
Attachments
Hi, On 2022-10-01 18:36:41 -0700, Andres Freund wrote: > I am wondering if we should instead introduce a new "quickcheck" task that > just compiles and runs maybe one test and have *all* other tests depend on > that. Wasting a precious available windows instance to just fail to build or > immediately fail during tests doesn't really make sense. Attached is an implementation of that idea. I fairly randomly chose two quick tests to execute as part of the sanity check, cube/regress pg_ctl/001_start_stop. I wanted to have coverage for initdb, a pg_regress style test, a tap test, some other client binary. With a primed cache this takes ~32s, not too bad imo. 12s of that is cloning the repo. What do you think? We could bake a bare repo into the images to make the clone step in faster, but that'd be for later anyway. set -e rm -rf /tmp/pg-clone-better mkdir /tmp/pg-clone-better cd /tmp/pg-clone-better git init --bare git remote add origin https://github.com/postgres/postgres.git --no-tags -t 'REL_*' -t master git fetch -v git repack -ad -f du -sh results in a 227MB repo. git clone https://github.com/anarazel/postgres.git -v --depth 1000 -b ci-sanitycheck --reference /tmp/pg-clone-better /tmp/pg-clone-better-clone clones an example branch in ~1.35s. Greetings, Andres Freund
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
ci: Add test coverage of different pg_upgrade modes
- 21a71648d39f 17.0 landed
-
seg: Add test "security" in meson.build
- 6b14404b0b97 16.2 landed
- 2f35c14cfb3d 17.0 landed
-
cirrus/freebsd: define ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS
- 9945750ae0e3 17.0 landed
-
cirrus/ccache: Use G rather than GB suffix
- bf32ec225635 16.0 landed
-
ci: Upgrade macOS version from 12 to 13.
- 83c7e2f2a2f5 15.2 landed
- 2e9f120b657e 16.0 landed
-
meson: Add two missing regress tests
- 27da598961ce 16.0 landed
-
Push lpp variable closer to usage in heapgetpage()
- e351f8541831 16.0 cited
-
ci: Change macOS builds from Intel to ARM.
- 14d63dd2523c 16.0 landed
- dc513bc6544d 15.2 landed
-
ci: Introduce SanityCheck task that other tasks depend on
- 94a3e026cc4d 16.0 landed
-
ci: Use -fsanitize=undefined,alignment,address in linux tasks
- bd82928625e7 16.0 landed
-
ci: Clean up pre-meson cruft in windows task
- ec267fd5a5e8 16.0 landed
-
meson: Mark PROVE as not required
- ab72a31f6cc5 16.0 landed
-
ci: enable various runtime checks on FreeBSD and macOS
- 89d16b63527d 16.0 landed