Skip to content

Commit

Permalink
Merge pull request canonical#449 from tomponline/5.21-candidate
Browse files Browse the repository at this point in the history
 dqlite: Cherry-pick revert tolerance for EAGAIN when probing async I/O to fix btrfs issues (5.21-candidate)
  • Loading branch information
tomponline authored Apr 26, 2024
2 parents 7ffa30a + 2977277 commit d46c406
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
go install github.com/canonical/lxd-ci/lxd-snapcraft@latest
git clone -b "${TARGET}" git+ssh://[email protected]/~canonical-lxd/lxd ~/lxd-pkg-snap-lp
# XXX: `originVer` contains an array with the 2 versions
originVer=($(lxd-snapcraft -get-version -file snapcraft.yaml))
originVer=($(lxd-snapcraft -package lxd -get-version -file snapcraft.yaml))
rsync -a --exclude .git --delete . ~/lxd-pkg-snap-lp/
cd ~/lxd-pkg-snap-lp
lxd-snapcraft -set-version "${originVer[0]}-${localRev:0:7}" -set-source-commit ""
lxd-snapcraft -package lxd -set-version "${originVer[0]}-${localRev:0:7}" -set-source-commit ""
git add --all
git commit --all --quiet -s --allow-empty -m "Automatic upstream build (${TARGET})" -m "Upstream commit: ${localRev}"
git show
Expand Down
15 changes: 14 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ parts:
after:
- sqlite
source: https://github.com/canonical/dqlite
source-depth: 1
# XXX: We often cherry-pick for candidate builds so don't do shallow clone
#source-depth: 1
source-tag: v1.16.4
source-type: git
plugin: autotools
Expand All @@ -294,6 +295,17 @@ parts:
- lib/libdqlite*so*
- lib/*/libuv*
#- lib/*/liblz4.so* # use liblz4.so from the base snap
override-build: |
set -ex
# Git cherry-picks
cd ../src
git config user.email "[email protected]"
git config user.name "LXD snap builder"
git cherry-pick -x 14bc162cb99a42ed3417c0356962d04e56015365 # Revert tolerance for EAGAIN when probing async I/O
craftctl default
edk2:
after:
Expand Down Expand Up @@ -1406,6 +1418,7 @@ parts:
git cherry-pick -x 81de9aaae166f204bd0901fbd0abb46582e87684 # lxd/api/metrics: Avoid repeated calls to wg.Add in metricsGet
git cherry-pick -x 5ddbe0849827421669ec6633bc5d1bb5a8e8d7cc # lxd/config/default: Add images to DefaultRemotes
git cherry-pick -x cc890c8c4a39e9b52f69fc66640fbffdc2ab2e9f # lxd/device/device_utils_disk: fix diskAddRootUserNSEntry to add root mapping only if it's required
git cherry-pick -x 5c46455fbb5f3f63620bf63e4b65bdc87b9aca72 # doc: pin version of myst-parser
# Setup build environment
export GOPATH="$(realpath ./.go)"
Expand Down

0 comments on commit d46c406

Please sign in to comment.