Re: Adding CI to our tree
Andres Freund <andres@anarazel.de>
Hi, On 2021-12-14 16:51:58 +1300, Thomas Munro wrote: > I'd better go and figure out how to fix cfbot when this lands... I assume it'd be: - stop adding the CI stuff - adjust links to CI tasks, appveyor wouldn't be used anymore - perhaps reference individual tasks from the cfbot page? > > I think this may be OK for now, but I also could see arguments for wanting to > > transfer the image specifications and the google account to PG properties. > > No clue on the GCP account side of it (does pginfra already have > one?), but for the repo I guess it would seem natural to have one on > git.postgresql.org infra, mirrored (just like the main repo) to a repo > on project-owned github.com/postgres, from which image building is > triggered. Then it could be maintained by the whole PostgreSQL > project, patches discussed on -hackers, a bit like pg_bsd_indent. > Perhaps with some way to trigger test image builds, so that people > working on it don't need their own GCP account to do a trial run. I think that's a good medium-term goal, I'd not make it a prerequisite for merging myself. > + # Test that code can be built with gcc/clang without warnings > > As a TODO note, I think we should eventually run a warnings check for > MSVC too. IIUC we only aim to be warning free in assertion builds on > that platform, because it has no PG_USED_FOR_ASSERTS_ONLY (I think it > has it in C++ but not C?), but that's something. Hm. Not entirely sure how to do that without doing a separate windows build, which is too slow... > + # XXX: Only do this if there have been changes in doc/ since last build > + always: > + docs_build_script: | > + time ./configure \ > + --cache gcc.cache CC="ccache gcc" > + time make -s -j4 -C doc > > Another TODO note: perhaps we could also make the documentation > results a browsable artefact with a short retention time, if that's a > thing. Might be doable, but I'd guess that the volume of data it'd generate make it not particularly attractive. > I feel like I should apologise in advance for this level of > nit-picking about English grammar, but: :) Will try to fix. > + name: FreeBSD > > FreeBSD is missing --with-llvm. That was kind of intentional, I guess I should add a comment about it. The CI image for freebsd already starts slower due to its size, and is on the slower side compared to anything !windows, so I'm not sure it's worth enabling llvm there? It's probably not bad to have one platform testing without llvm. > > [1] Some ideas for what could make sense to extend CI to in the future: > > To your list, I'd add: > > * 32 bit That'd be easy. > * test coverage report If the output size is reasonable, that should be doable as well. > * ability to capture complete Window install directory as an artefact > so a Windows user without a dev environment could try out a proposed > change/CF entry/... I think the size of these artifacts would make this not something to enable by default. But perhaps a manually triggered task would make sense? > I hope we can get ccache working on Windows. They did merge a number of the other required changes for that over the weekend. I'll try once they released... Thanks! Andres Freund
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
ci: enable zstd where available.
- ff50baec65bb 15.0 landed
-
ci: compile with -Og where applicable.
- 4a288a37f9b7 15.0 landed
-
ci: include hints how to install OS packages.
- 225fb558cd42 15.0 landed
-
ci: fix copy-paste mistake in 16eb8231d1b.
- f79c94f39df0 15.0 landed
-
ci: macos: align sysinfo_script to other tasks.
- 0a156058aa49 15.0 landed
-
ci: Only use one artifact instruction for logs.
- 16eb8231d1b5 15.0 landed
-
ci: s/CCACHE_SIZE/CCACHE_MAXSIZE/.
- 79b79dd57a96 15.0 landed
-
pg_basebackup: Skip a few more fsyncs if --no-sync is specified.
- 9c86d9337eb0 15.0 landed
-
TAP tests: check for postmaster.pid anyway when "pg_ctl start" fails.
- b0623625a0a3 14.2 landed
- 99aa0ff68a2c 11.15 landed
- 6eec809fbcfb 13.6 landed
- 6c4a8903b93f 15.0 landed
- 5940d1b027d7 12.10 landed
- 40756287ff1f 10.20 landed
-
Don't enable fsync in src/test/recovery/t/008_fsm_truncation.pl.
- a7f4171071bb 15.0 landed
-
ci: windows: run initdb with --no-sync.
- dfc0cb3940cd 15.0 landed
-
ci: windows: enable build summary to make it easier to spot warnings / errors.
- 8a1ce5e54f6d 15.0 landed
-
ci: Add continuous integration for github repositories via cirrus-ci.
- 93d973494613 15.0 landed
-
Fix TestLib::slurp_file() with offset on windows.
- 9e3be5c182d7 9.6.24 landed
- d5fa3c086eab 10.19 landed
- 0a134c860fc1 11.14 landed
- cd1b2334b8a2 12.9 landed
- 5ba397f7404e 13.5 landed
- c4465cd09e3a 14.1 landed
- 2f74db1236fe 15.0 landed