Skip to content
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

FIX JENKINS-63048 #31

Merged
merged 5 commits into from
Oct 27, 2021
Merged

FIX JENKINS-63048 #31

merged 5 commits into from
Oct 27, 2021

Conversation

hoolie
Copy link
Contributor

@hoolie hoolie commented Sep 16, 2021

use the ref=next link in the response header to support paged requests.

The response header received in getList contains a link to the next page, getList is called recursive with the new URL.

FIX https://issues.jenkins.io/browse/JENKINS-63048

use the ref=next link in the response header to support paged requests.
@MarkEWaite
Copy link

I'd love to test drive your changes. Unfortunately, I can't build the source code and the CI job can't build the source code.

When I try to build with Java 8u302, it reports

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project gitea: Compilation failure
[ERROR] /home/mwaite/hub/plugins/gitea-plugin/src/main/java/org/jenkinsci/plugin/gitea/client/impl/DefaultGiteaConnection.java:[966,64] illegal escape character

When I try to build with Java 11.0.12, it reports:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/mwaite/hub/plugins/gitea-plugin/src/main/java/org/jenkinsci/plugin/gitea/client/impl/DefaultGiteaConnection.java:[966,64] illegal escape character
[INFO] 1 error

@MarkEWaite
Copy link

MarkEWaite commented Sep 16, 2021

Thanks so much for your quick response @hoolie !

May also need an addition to pom.xml:

    <repositories>
        <repository>
            <id>repo.jenkins-ci.org</id>
            <url>https://repo.jenkins-ci.org/public/</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>repo.jenkins-ci.org</id>
            <url>https://repo.jenkins-ci.org/public/</url>
        </pluginRepository>
    </pluginRepositories>

Master branch of that repo was last built a year ago. Apache maven 3.8.2 upgrade and recent infrastructure may be causing that pom.xml gap to be detected.

@hoolie
Copy link
Contributor Author

hoolie commented Sep 16, 2021

Hello Mark,

It fixed a missing escape character in the regexp.
I'm still trying to figure out why that error did not cause my build to fail.

Thanks for the pom-update

@MarkEWaite
Copy link

Same build problem is visible on the master branch at https://ci.jenkins.io/job/Plugins/job/gitea-plugin/job/master/88/ . I don't see that problem locally, but I suspect that is because I have a locally cached copy of the dependency that is causing the failure.

@MarkEWaite
Copy link

@hoolie I've added the incremental build of the plugin to my installation. The first pipeline scan detected the 100+ branches that had been missed in previous scans when the scanning stops with the first 30 results.

I'll continue using it to see if I detect any issues with it. Thanks so much for the pull request!

@hoolie
Copy link
Contributor Author

hoolie commented Sep 17, 2021

glad it helped :)

is there currently another maintainer for the plugin besides @stephenc ?

@MarkEWaite
Copy link

According to repository permissions updater, he's the only maintainer. I don't know his current availability. If he's unavailable, you could propose to become an additional maintainer of the plugin if you're willing.

The incremental build from ci.jenkins.io can be used by anyone who needs the functionality immediately.

@lafriks
Copy link
Contributor

lafriks commented Sep 17, 2021

I created issue some time ago to transfer plugin maintainence to gitea developers but no response yet there also https://issues.jenkins.io/plugins/servlet/mobile#issue/JENKINS-65588

@MarkEWaite
Copy link

@lafriks that issue report won't result in any action. The Jenkins project "adopt a plugin" process requires the jenkins.io user names of one or more maintainers. You asked:

Would it be possible to add Gitea owners/main maintainers rights to approve PRs, merge them and create releases in https://github.com/jenkinsci/gitea-plugin repository?

The answer to that question is, "Yes, if a person with a jenkins.io account is willing follow the 'adopt a plugin' process, they can be granted permission to merge pull requests and deliver new releases".

Who are the Gitea owners/main maintainers?

Are they willing to maintain the Jenkins Gitea plugin?

What are their jenkins.io account user names?

Will they follow the "adopt a plugin" process so that they can be assigned as maintainers?

@hoolie
Copy link
Contributor Author

hoolie commented Sep 20, 2021

@MarkEWaite Thank you for the insights on the "adopt a plugin" process

I don't fell ready to take on responsibility for the plugin yet for the following reasons:

  • I don't have the required spare time
  • I wouldn't want to review my own PR
  • I lack experience with the Jenkins plugin system / SCM Api

@lafriks
Copy link
Contributor

lafriks commented Sep 20, 2021

@MarkEWaite thanks for detailed info.

Gitea owners are 3 of the maintainers elected each year from Gitea active maintainers (https://github.com/go-gitea/gitea/blob/main/MAINTAINERS). Currently Gitea owners are me, @techknowlogick and @lunny.

As for adopting plugin, I'm quite sure most of them don't have jenkins.io accounts but that would not be an issue to create it but otherwise we could at least review PRs and manage releases as we are interested in working Gitea integration with Jenkins. Gitea currently has process that at least two of maintainers has to approve PR to have it merged, and only owners or some limited number of maintainers that are allowed to tag releases, so we would follow same procedure here.

@melmus
Copy link

melmus commented Oct 26, 2021

Hi! When will new version plugin release?

@den-patrakeev
Copy link

Hello!
Agree with @melmus
Now I have problems with displaying branches.

@MarkEWaite
Copy link

MarkEWaite commented Oct 26, 2021

@melmus and @den-patrakeev you can use the incremental build of this pull request now. No need to wait for a release of the plugin. See my comment #31 (comment) . It helps the maintainers when users declare "I'm using this pull request successfully in my production environment".

I am using it successfully in my production environment. It works great.

Download the latest hpi file from https://ci.jenkins.io/job/Plugins/job/gitea-plugin/job/PR-31/ and upload it to your Jenkins installation through the plugin manager. If you're using configuration as code, then my plugins.txt file shows how to specify that version.

@den-patrakeev
Copy link

@MarkEWaite Thank you for your prompt response!

@melmus
Copy link

melmus commented Oct 26, 2021

@MarkEWaite, thank's for you answer!

@lafriks lafriks added this to the 1.3.0 milestone Oct 27, 2021
@lafriks
Copy link
Contributor

lafriks commented Oct 27, 2021

Tested and works for me, thanks for great work and tests!

@lafriks lafriks merged commit 02fef1d into jenkinsci:master Oct 27, 2021
@lafriks lafriks mentioned this pull request Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants