-
Notifications
You must be signed in to change notification settings - Fork 145
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
Support repos without GitLab remote #3583
base: main
Are you sure you want to change the base?
Conversation
@CtrlZmaster Internal dist-git should be handled by |
@lukaszachy well, that's embarrassing 🤦 I knew of the plugins but I didn't see any use for them in my workflow. Thinking about it, this might be the first time I ran tmt from RHEL dist-git. I started developing tmt plans in CentOS and never touched them in RHEL z-stream, I guess. Since the dist-git URL is not a secret, it would be nicer if this worked out-of-the-box. The additional class in the plugin is pretty much just duplicated code and if a change like this was merged, the plugin could be eliminated. I think that that could make life of packagers easier, because the plugin wouldn't be needed. Just installing tmt from RPM would be enough to start, no need to setup repos for the plugins. I can rewrite the commit messages so that they are correct and rebase... I suppose that the internal plugin was always needed and this is not a regression? Should I take the PR out of draft? Can you please guide me on what to do next? |
I see we have @CtrlZmaster Lets wait until we figure out where is the right single place to |
Most likely, that looks like those classes were moved to |
@happz I was wondering why are the classes defined twice, so I just decided to be cautious and fix both places. The only references I could find yesterday were from inside the |
These were the differences between the two modules (some typing and git module was calling the functions it had from init):
I also searched for references to code in |
If the RHEL dist-git repo doesn't have a non-forked GitLab remote, tmt fails with: "No known remote...". The support for internal dist-git is present in the tmt-redhat-internal plugin but since there are no secret URLs in that module, it can be supported upstream too. This simplifies installation as there is no need to install plugins which are available in non-default repositories.
/packit build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local testing shows it works :)
@CtrlZmaster We have quite horrible PR->review->merge turnaround so please bear with us if this PR stays open for a long time |
I do not set up GitLab repo as a remote for RHEL dist-git because there is no
rhel-X-main
branch and all of the branches are protected anyways, so I don't see the point. I didn't run tmt locally for some time and yesterday, I was hit with aNo known remote ...
error when I attempted to run my test plan. Because I didn't know what it means, I searched in the source code and found the issue. Before 9cad874, RHEL dist-git remotes were specified by bothpkgs.devel.redhat.com
and GitLab URI substrings. Therefore, I believe that this is a regression. I wanted to create an issue first but then I realized that there is a simple fix, so I took a stab at it.Maybe the omission of
pkgs.devel.redhat.com
was intentional in the rewrite, so feel free to reject this PR. There is a simple workaround of just adding the GitLab dist-git repo as a remote after all.Pull Request Checklist
write the documentationupdate the specificationadjust plugin docstringmodify the json schemamention the versioninclude a release note