Revert "Use Fedora specfile for Packit builds"#3911
Revert "Use Fedora specfile for Packit builds"#3911mulkieran merged 1 commit intostratis-storage:masterfrom
Conversation
This reverts commit 8c248c4.
WalkthroughUpdates to .packit.yaml adjust the post-upstream-clone step to move an existing spec file instead of downloading it, and reorder/remove SRPM build dependencies by moving cargo after git and dropping wget2-related packages. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer
participant Repo as Source Repo
participant Packit as Packit CI
participant FS as ../distro/*
participant SRPM as SRPM Builder
Dev->>Repo: Push changes (.packit.yaml)
Packit->>Repo: Clone upstream
rect rgba(200,240,255,0.4)
note right of Packit: post-upstream-clone (changed)
Packit->>FS: mv ../distro/mockbuild_test/stratisd.spec -> ../distro/stratisd.spec
end
rect rgba(220,255,220,0.4)
note right of SRPM: srpm_build_deps (updated list)
Packit->>SRPM: Install deps (git, cargo, ...)<br/>[wget2*, wget2-wget removed]
end
Packit->>SRPM: Build SRPM using ../distro/stratisd.spec
SRPM-->>Packit: SRPM artifact
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.packit.yaml (1)
13-16: Use copy + existence check instead of mv; avoid mutating the cloned repo.mv removes the file from mockbuild_test and will silently overwrite if the target exists. Prefer a fail-fast check and copy to keep the source tree intact. Also consider pinning the ci repo to a ref for reproducibility.
- - "mv ../distro/mockbuild_test/stratisd.spec ../distro/stratisd.spec" + - 'sh -eu -c "test -f ../distro/mockbuild_test/stratisd.spec && install -m 0644 -D ../distro/mockbuild_test/stratisd.spec ../distro/stratisd.spec"' + # optionally pin the ci repo checkout (replace <commit> with a specific SHA) + # - "git -C ../distro checkout <commit>"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.packit.yaml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: testing-farm:fedora-rawhide-x86_64:cockpit
- GitHub Check: testing-farm:fedora-43-x86_64:cockpit
- GitHub Check: testing-farm:fedora-42-x86_64:local
- GitHub Check: testing-farm:fedora-41-x86_64:local
- GitHub Check: testing-farm:fedora-rawhide-x86_64:local
- GitHub Check: testing-farm:fedora-43-x86_64:local
- GitHub Check: rpm-build:fedora-42-x86_64:copr_pull
- GitHub Check: rpm-build:fedora-41-x86_64:copr_pull
- GitHub Check: rpm-build:fedora-rawhide-x86_64:copr_pull
- GitHub Check: rpm-build:fedora-43-x86_64:copr_pull
🔇 Additional comments (1)
.packit.yaml (1)
24-29: Reordering deps looks fine; confirm toolchain sufficiency.Moving cargo after git is benign. Verify that:
- no action still needs wget2/wget2-wget, and
- rustc is available via the cargo package in your build env; add rust explicitly if not.
srpm_build_deps: - git - cargo + # add if rustc isn't pulled in transitively + # - rust - openssl-devel - python3-semantic_version
|
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Related stratis-storage/project#811
Related #3908
Summary by CodeRabbit