Skip to content

Commit

Permalink
XXX debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Oct 9, 2023
1 parent d970c53 commit ff8cab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/trigger-anaconda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,11 @@ jobs:
git log --exit-code --stat origin/${{ github.event.pull_request.base.ref }}..HEAD -- src/cockpit pkg/storaged \
>&2 || echo "changed=true" >> "$GITHUB_OUTPUT"
- name: Wait for packit COPR build
if: steps.affected.outputs.changed
run: |
set -ex
COPR_NAME="${{ github.event.pull_request.base.user.login }}-${{ github.event.pull_request.base.repo.name }}-${{ github.event.number }}"
SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c 1-8)
for _ in $(seq 60); do
sleep 60;
if dnf copr enable -y packit/$COPR_NAME &&
out=$(dnf info --refresh --repo='copr:*cockpit*' cockpit-bridge) &&
echo "$out" | grep -q "Release.*\.g$SHA" ; then
exit 0
fi
done
exit 1
- name: Trigger anaconda run
if: steps.affected.outputs.changed
run: |
test/common/make-bots
mkdir -p ~/.config/cockpit-dev
echo '${{ secrets.COCKPITUOUS_TOKEN }}' > ~/.config/cockpit-dev/github-token
ls -l ~/.config/cockpit-dev/github-token
bots/tests-trigger ${{ github.event.number }} fedora-rawhide-boot/cockpit-pr-${{ github.event.number }}@rhinstaller/anaconda
32 changes: 1 addition & 31 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,11 @@ srpm_build_deps:
# use the nicely formatted release NEWS from our upstream release, instead of git shortlog
copy_upstream_release_description: true
jobs:
- job: tests
identifier: self
trigger: pull_request
targets:
- fedora-38
- fedora-39
- fedora-latest-aarch64
- fedora-development
- centos-stream-8-x86_64
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# current Fedora runs reverse dependency testing against https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/
- job: tests
identifier: revdeps
trigger: pull_request
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"

# run build/unit tests on some interesting architectures
- job: copr_build
trigger: pull_request
targets:
# 32 bit
- fedora-development-i386
# big-endian
- fedora-development-s390x
- fedora-development

# for cross-project testing
- job: copr_build
Expand Down

0 comments on commit ff8cab1

Please sign in to comment.