Repository navigation
syscall: use O_SEARCH for held directory traversal on macOS #2179
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test rsync on Ubuntu | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '.github/workflows/*.yml' | |
| - '!.github/workflows/ubuntu-build.yml' | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - '.github/workflows/*.yml' | |
| - '!.github/workflows/ubuntu-build.yml' | |
| schedule: | |
| - cron: '42 8 * * *' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: Test rsync on Ubuntu | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: prep | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install acl libacl1-dev attr libattr1-dev liblz4-dev libzstd-dev libxxhash-dev libidn2-dev python3-cmarkgfm openssl | |
| echo "/usr/local/bin" >>"$GITHUB_PATH" | |
| - name: configure | |
| run: ./configure --with-rrsync | |
| - name: make | |
| run: make | |
| - name: install | |
| run: sudo make install | |
| - name: info | |
| run: rsync --version | |
| - name: check | |
| run: sudo RSYNC_EXPECT_SKIPPED=@testsuite/skiplist/common.txt,@testsuite/skiplist/linux.txt make check | |
| - name: check30 | |
| run: sudo RSYNC_EXPECT_SKIPPED=@testsuite/skiplist/common.txt,@testsuite/skiplist/linux.txt,@testsuite/skiplist/proto30.txt make check30 | |
| - name: check29 | |
| run: sudo RSYNC_EXPECT_SKIPPED=@testsuite/skiplist/common.txt,@testsuite/skiplist/linux.txt,@testsuite/skiplist/proto29.txt make check29 | |
| - name: check (TCP daemon transport) | |
| # Second run with daemon tests over a real loopback rsyncd. The default | |
| # 'make check' above uses the secure stdio-pipe transport (no listening | |
| # sockets); this run exercises the real TCP accept/auth path. Skip-set | |
| # is env-dependent here (chroot-acl), so leave RSYNC_EXPECT_SKIPPED unset. | |
| run: sudo ./runtests.py --rsync-bin="$PWD/rsync" --use-tcp -j 8 | |
| - name: check (non-root, targeted) | |
| # Every run above is root (sudo), so privilege-sensitive tests never hit | |
| # their non-root path. Run those here as the unprivileged 'runner' user | |
| # (NO sudo). Explicit test names make runtests.py full_run False, so | |
| # RSYNC_EXPECT_SKIPPED is bypassed -- no per-platform skip list needed. | |
| # daemon-namecvt-empty-response -- REQUIRES non-root (skips as root by | |
| # design); the only test with no other CI coverage (Benjamin #2). | |
| # ownership-depth -- non-root takes the group-only remap path. | |
| # daemon -- non-root takes the default-config path. | |
| # search-only-* -- search-only parents need traversal without read. | |
| # CONVENTION: a new test that requires/meaningfully exercises a non-root | |
| # path must be added to the list below (kept in sync with the fleet | |
| # harness's nonroot_tests). | |
| run: | | |
| sudo rm -rf testtmp # prior root steps left it root-owned | |
| ./runtests.py --rsync-bin="$PWD/rsync" \ | |
| daemon-namecvt-empty-response ownership-depth daemon \ | |
| search-only-destination search-only-held-dirfd | |
| - name: ssl file list | |
| run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true | |
| - name: save artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| retention-days: 45 | |
| name: ubuntu-bin | |
| path: | | |
| rsync | |
| rsync-ssl | |
| rsync.1 | |
| rsync-ssl.1 | |
| rsyncd.conf.5 | |
| rrsync.1 | |
| rrsync |