-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misleading instructions how to use the copr builds #470
Comments
Yeah I agree we can improve this, since |
@Venefilyn #471 fixes the first problem (chroot) but not the second (installs all packages). Should I open a new issue with just the second problem description? |
@evgeni good point, let's track the second one in here as well. |
Good point, missed that when I fixed the first part. @evgeni for not installing all packages option, do you have an example of a Copr build that includes packages that shouldn't all be installed? Can they be installed individually or are there some that are not needed? (if so what is the build used for) Just trying to gather some info so I can see about improving the UI |
Sure! Two good examples:
To tell you what's wrong with those lists of packages, I first gotta explain you our deployment architecture, so take a hot chocolate (or whatever else you prefer and sit back). Foreman is a Ruby on Rails application that relies on Webpack (and thus NPM/NodeJS) for the frontend. When building Foreman, we need to install a lot NPM packages, but the built result doesn't require those to run on the users system. This means that we have these two layers of Another thing (and that's why also linked to a I think the cheapest fix for this issue would be to modify the message to be like this:
|
Yeah, that certainly also works! Thanks! |
@Venefilyn thanks for the suggestion, I like it! Just as you write, we should still leave a way to copy the whole |
Both should be fixed now @evgeni 🙏 Let me know how it looks now in staging. The update isn't in production yet |
Thanks! Looks good to me |
What happened? What is the problem?
Ohai,
when you have packit build a PR, the users get a link to the dashboard
https://dashboard.packit.dev/jobs/copr/:id
(e.g. https://dashboard.packit.dev/jobs/copr/1933132) that contains a message how to use the resulting builds, however, those are (possibly) misleading for users not very well versed in copr/dnf.dnf copr enable {data.copr_owner}/{data.copr_project}
withoutchroot
Right now, the instructions say to call
sudo dnf copr enable packit/theforeman-foreman_maintain-936
, which on EL8 will try to use theepel-8-x86_64
chroot by default (andepel-9-x86_64
on EL9), but Packit didn't build for those chroots (the linked build is forrhel-8-x86_64
) and the user ends up with an error:Given Packit knows which chroot the build was for, it could add that to the
dnf copr
invocation, right?dnf install -y <all packages>
This might be a tad specific to @theforeman packages, but we do have quite a lot sub-packages that get built, but are not needed on a user system (they contain code and dependencies that are needed to build plugins etc).
The instructions on the copr job view tell the user (who might be unaware of our package split!) to
dnf install -y all-the-packages-that-were-built
which in the best case results in the user installing things they don't need and in the worst case results in dependency errors fromdnf
as we don't ship all packages required for building in our main repos.It would be cool if the wording would point out that this might not what you need, or allow projects to override this messaging in their
packit.yml
What did you expect to happen?
No response
Example URL(s)
https://dashboard.packit.dev/jobs/copr/1933132
Steps to reproduce
1. tell users "take the packit build from <PR link>" 2. see them following the instructions literally
Workaround
Participation
The text was updated successfully, but these errors were encountered: