Closed wonglkd closed 1 year ago
All builds are passing for now (except rpm builds). Could put the status badges (which filter on scheduled builds) with the build instructions or even the readme:
## Build status
Clicking on a badge will show you the recent builds for that OS. If your target OS's build is failing, you may wish to check recent issues and PRs for known workarounds.
- [![CentOS 8.1](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-centos-8-1.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-centos-8-1.yml?query=event%3Aschedule)
- [![CentOS 8.5](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-centos-8-5.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-centos-8-5.yml?query=event%3Aschedule)
- [![Debian 10](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-debian-10.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-debian-10.yml?query=event%3Aschedule)
- [![Fedora 36](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-fedora-36.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-fedora-36.yml?query=event%3Aschedule)
- [![Rocky Linux 8](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-rockylinux-8.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-rockylinux-8.yml?query=event%3Aschedule)
- [![Rocky Linux 9](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-rockylinux-9.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-rockylinux-9.yml?query=event%3Aschedule)
- [![Ubuntu 18](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-ubuntu-18.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-ubuntu-18.yml?query=event%3Aschedule)
- [![Ubuntu 20](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-ubuntu-20.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-ubuntu-20.yml?query=event%3Aschedule)
- [![Ubuntu 22](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-ubuntu-22.yml/badge.svg?event=schedule)](https://github.com/facebook/cachelib/actions/workflows/build-cachelib-ubuntu-22.yml?query=event%3Aschedule)
@jaesoo-fb for your consideration (re build badges, above, if you want to put them somewhere)
closing this issue out for now, since the rpm-build issues are being handled internally. Thanks @jaesoo-fb @jiayuebao @therealgymmy for working with me on the PRs and reviewing them!
@wonglkd Thanks for working on this; the build looks all green now. For the build badges, well, having said that we can see the status of all build actions in the actions tab, not sure whether it would be useful somewhere else too (yeah, it is fancy though!!) Let us discuss internally.
@jaesoo-fb Sounds good, yup, a matter for y'all to discuss. (The main reason I found it useful was that I couldn't see at one glance the status of all the builds on the tab, as for some OSes, we alternate which version is scheduled to run every day, and (potentially red) builds from PRs can quickly clutter up the actions tab.)
Thanks @wonglkd for the suggestion and the code snippet. I just landed the commit e679b72d5b78 (README.md: added build status badges to main README.md) which adds the build status to the bottom of main README file https://github.com/facebook/CacheLib
Build status
Clicking on a badge will show you the recent builds for that OS. If your target OS's build is failing, you may wish to check recent issues and PRs for known workarounds.
Issues
1. Debian fails at stage update-submodules.
fatal: detected dubious ownership in repository at '/__w/CacheLib/CacheLib'
/usr/bin/git config --global --add safe.directory /__w/CacheLib/CacheLib
is run- run: git config --system --add safe.directory /__w/CacheLib/CacheLib
after https://github.com/facebook/CacheLib/blob/6ad7a318b43de25ba41067c3d6a851d5a60d1633/.github/workflows/build-cachelib-debian-10.yml#L532. CentOS fails CacheLib build in XDCHECK
https://github.com/facebook/CacheLib/blob/6ad7a318b43de25ba41067c3d6a851d5a60d1633/cachelib/cachebench/runner/AsyncCacheStressor.h#L306
req->sizeBegin
withstd::next(req->sizeBegin)
, replacing XDCHECK with XDCHECK_NEQ, XCHECKAsyncCacheStressor.h
itself hasn't changed in 2023.3. RPM builds