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

Update dependency org.jenkins-ci.main:remoting to v3261 (master) - abandoned #46

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
348a929
Switch to renovate
timja Jul 13, 2024
9dd4ab9
Downgrade remoting for test of renovate
timja Jul 13, 2024
89cacef
Downgrade bootstrap-api for testing
timja Jul 14, 2024
b673f0d
Downgrade other one
timja Jul 14, 2024
0f812f7
Update ignore paths
timja Jul 14, 2024
8755892
Try this
timja Jul 14, 2024
37f9521
Try this
timja Jul 14, 2024
489c98f
Try this
timja Jul 15, 2024
0cf50d2
Move property to maven.config file
timja Aug 2, 2024
b7d18ff
Address review feedback
timja Aug 3, 2024
783ed37
Validate config and adapt from deprecated config
timja Aug 3, 2024
77fec5f
Try this
timja Aug 3, 2024
0a667e3
Revert "Try this"
timja Aug 3, 2024
77abc9b
Disable package causing warning
timja Aug 3, 2024
9169add
Suppress other package causing warnings
timja Aug 3, 2024
818b9cf
Update maven dependencies on latest LTS branch
timja Aug 4, 2024
2dd353d
Drop usage of $default which doesn't work fully
timja Aug 5, 2024
a08c801
Use same file as other branch
timja Aug 5, 2024
12edfe3
Avoid rate limiting
timja Aug 5, 2024
c8e5bd7
Update master
timja Aug 5, 2024
19f7319
Alternative
timja Aug 5, 2024
24cbb77
Try this
timja Aug 5, 2024
458441d
Simplify
timja Aug 5, 2024
b8124f9
Another tweak
timja Aug 5, 2024
722605c
Another tweak
timja Aug 5, 2024
250a793
Add missing action
timja Aug 5, 2024
be86400
Not needed
timja Aug 5, 2024
4b22341
Another approach
timja Aug 5, 2024
378eef5
Update renovate.json
timja Aug 5, 2024
dee4132
Update dependency org.jenkins-ci.main:remoting to v3261
renovate[bot] Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,29 @@ For refactoring and code cleanup changes, exercise the code before and after the

### Proposed changelog entries

- JENKINS-XXXXX, human-readable text
- human-readable text

<!-- Comment:
The changelog entry should be in the imperative mood; e.g., write "do this"/"return that" rather than "does this"/"returns that".
For examples, see: https://www.jenkins.io/changelog/

Remove JENKINS-XXXXX if there is no issue for the pull request.
Do not include the Jira issue in the changelog entry.
Include the Jira issue in the description of the pull request so that the changelog generator can find it and include it in the generated changelog.

You may add multiple changelog entries if applicable by adding a new entry to the list, e.g.
- JENKINS-123456, First changelog entry
- First changelog entry
- Second changelog entry
-->

### Proposed upgrade guidelines

N/A

<!-- Comment:
Leave the proposed upgrade guidelines in the pull request with the "N/A" value if no upgrade guidelines are needed.
The changelog generator relies on the presence of the upgrade guidelines section as part of its data extraction process.
-->

```[tasklist]
### Submitter checklist
- [ ] The Jira issue, if it exists, is well-described.
Expand Down
68 changes: 0 additions & 68 deletions .github/dependabot.yml

This file was deleted.

103 changes: 97 additions & 6 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,154 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:recommended",
":disableDependencyDashboard",
":semanticCommitsDisabled"
],
"enabledManagers": ["npm", "regex"],
"prHourlyLimit": 0,
"prConcurrentLimit": 0,
"postUpdateOptions": ["yarnDedupeHighest"],
"baseBranches": ["master", "stable-2.462"],
"packageRules": [
{
"matchBaseBranches": ["/stable-.+/"],
"matchManagers": ["maven"],
"labels": ["dependencies", "into-lts", "needs-justification"]
},
{
"matchBaseBranches": ["/stable-.+/"],
"matchManagers": ["custom.regex", "npm", "github-actions"],
"enabled": false
},
{
"matchDatasources": ["npm"],
"addLabels": ["javascript"],
"stabilityDays": 3,
"minimumReleaseAge": "3 days",
"reviewers": ["team:sig-ux"]
},
{
"matchPackageNames": ["node"],
"allowedVersions": "/20.[0-9]+.[0-9]+(.[0-9]+)?$/"
},
{
"description": "Should be upgraded in lockstep in order to keep their corresponding Jetty versions aligned, could be grouped but releases are likely separated by a bit of time",
"matchManagers": ["maven"],
"enabled": false,
"matchPackageNames": [
"org.eclipse.jetty:jetty-maven-plugin", "org.jenkins-ci:winstone"
]
},
{
"description": "Provided by Jetty and should be aligned with the version provided by the version of Jetty we deliver. See: https://github.com/jenkinsci/jenkins/pull/5211",
"matchManagers": ["maven"],
"enabled": false,
"matchPackageNames": ["jakarta.servlet:jakarta.servlet-api"]
},
{
"description": "Contains incompatible API changes and needs compatibility work",
"matchManagers": ["maven"],
"enabled": false,
"matchPackageNames": [
"jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api"
]
},
{
"description": "Needs significant testing. See: https://github.com/jenkinsci/jenkins/pull/5112#issuecomment-744429487 and https://github.com/jenkinsci/jenkins/pull/5116#issuecomment-744526638",
"matchManagers": ["maven"],
"allowedVersions": "<2.5.0",
"matchPackageNames": ["org.codehaus.groovy:groovy-all"]
},
{
"description": "Consumed by Groovy and should be updated in lockstep with Groovy. See: https://github.com/jenkinsci/jenkins/pull/5184",
"matchManagers": ["maven"],
"enabled": false,
"matchPackageNames": ["org.fusesource.jansi:jansi"]
},
{
"description": "Contains incompatible API changes and needs compatibility work. See: https://github.com/jenkinsci/jenkins/pull/4224",
"matchManagers": ["maven"],
"enabled": false,
"matchPackageNames": ["org.jfree:jfreechart"]
},
{
"description": "Starting with 6.x, Spring requires Java 17 at a minimum.",
"matchManagers": ["maven"],
"allowedVersions": "<6.0.0",
"matchPackageNames": ["org.springframework:spring-framework-bom", "org.springframework.security:spring-security-bom"]
},
{
"description": "Starting with 7.x, Guice switches from javax.* to jakarta.* bindings. See https://github.com/google/guice/wiki/Guice700",
"matchManagers": ["maven"],
"allowedVersions": "<7.0.0",
"matchPackageNames": ["com.google.inject:guice-bom"]
},
{
"matchFileNames": ["test/pom.xml", "core/pom.xml", "war/pom.xml"],
"matchPackageNames": ["org.jenkins-ci.main:remoting"],
"description": "Avoid updating the remoting.minimum.supported.version property but still update latest one by not placing this property in the parent pom.xml",
"enabled": false
},
{
"matchPackageNames": ["net.jcip:jcip-annotations"],
"matchManagers": ["maven"],
"enabled": false,
"description": "maven-metadata.xml is missing for this really old package which is required by renovate"
}
],
"regexManagers": [
"customManagers": [
{
"customType": "regex",
"fileMatch": ["war/pom.xml"],
"matchStrings": ["<node.version>(?<currentValue>.*?)</node.version>"],
"depNameTemplate": "node",
"datasourceTemplate": "npm"
},
{
"customType": "regex",
"fileMatch": ["ath.sh"],
"matchStrings": ["export ATH_VERSION=(?<currentValue>.*?)\n"],
"depNameTemplate": "jenkins/ath",
"datasourceTemplate": "docker",
"versioningTemplate": "loose"
},
{
"customType": "regex",
"fileMatch": [".gitpod/Dockerfile"],
"matchStrings": ["ARG MAVEN_VERSION=(?<currentValue>.*?)\n"],
"depNameTemplate": "org.apache.maven:maven-core",
"datasourceTemplate": "maven"
},
{
"customType": "regex",
"fileMatch": ["core/src/site/site.xml"],
"matchStrings": ["lit@(?<currentValue>.*?)/"],
"depNameTemplate": "lit",
"datasourceTemplate": "npm"
},
{
"customType": "regex",
"fileMatch": ["core/src/site/site.xml"],
"matchStrings": ["webcomponentsjs@(?<currentValue>.*?)/"],
"depNameTemplate": "@webcomponents/webcomponentsjs",
"datasourceTemplate": "npm"
},
{
"customType": "regex",
"fileMatch": ["core/src/site/site.xml"],
"matchStrings": ["<version>(?<currentValue>.*?)<\/version>"],
"matchStrings": ["<version>(?<currentValue>.*?)</version>"],
"depNameTemplate": "org.apache.maven.skins:maven-fluido-skin",
"datasourceTemplate": "maven"
}
],
"labels": ["dependencies", "skip-changelog"],
"rebaseWhen": "conflicted"
"rebaseWhen": "conflicted",
"ignorePaths": [
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**",
"**/examples/**",
"**/__tests__/**",
"**/tests/**",
"**/__fixtures__/**"
]
}
10 changes: 5 additions & 5 deletions .github/workflows/publish-release-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
wget -q https://get.jenkins.io/${REPO}/${PROJECT_VERSION}/${FILE_NAME}
- name: Upload Release Asset
id: upload-war
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Upload Release Asset
id: upload-deb
if: always()
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
- name: Upload Release Asset
id: upload-rpm
if: always()
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
- name: Upload Release Asset
id: upload-msi
if: always()
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
- name: Upload Release Asset
id: upload-suse-rpm
if: always()
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion ath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o xtrace
cd "$(dirname "$0")"

# https://github.com/jenkinsci/acceptance-test-harness/releases
export ATH_VERSION=5883.vdea_99c1762a_d
export ATH_VERSION=5911.v5f88b_6d0c450

if [[ $# -eq 0 ]]; then
export JDK=17
Expand Down
4 changes: 2 additions & 2 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ THE SOFTWARE.
<properties>
<commons-fileupload2.version>2.0.0-M2</commons-fileupload2.version>
<slf4jVersion>2.0.13</slf4jVersion>
<stapler.version>1881.vd39f3ee5c629</stapler.version>
<stapler.version>1892.v73465f3d074d</stapler.version>
<groovy.version>2.4.21</groovy.version>
</properties>

Expand Down Expand Up @@ -113,7 +113,7 @@ THE SOFTWARE.
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.17.0</version>
<version>1.17.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
Expand Down
2 changes: 2 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ THE SOFTWARE.

<properties>
<xmlunit.version>2.10.0</xmlunit.version>
<!-- Minimum Remoting version, which is tested for API compatibility, duplicated so that renovate only updates the latest remoting version property -->
<remoting.minimum.supported.version>3107.v665000b_51092</remoting.minimum.supported.version>
<!-- Filled in by jacoco-maven-plugin -->
<jacocoSurefireArgs />
</properties>
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/ClassicPluginStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void fix(Attributes atts, List<PluginWrapper.Dependency> optionalDepende

for (Dependency d : DetachedPluginsUtil.getImpliedDependencies(pluginName, jenkinsVersion)) {
LOGGER.fine(() -> "implied dep " + pluginName + " → " + d.shortName);
pluginManager.considerDetachedPlugin(d.shortName);
pluginManager.considerDetachedPlugin(d.shortName, pluginName);
optionalDependencies.add(d);
}
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ public void run(Reactor reactor) throws Exception {
}});
}

void considerDetachedPlugin(String shortName) {
void considerDetachedPlugin(String shortName, String source) {
if (new File(rootDir, shortName + ".jpi").isFile() ||
new File(rootDir, shortName + ".hpi").isFile() ||
new File(rootDir, shortName + ".jpl").isFile() ||
Expand All @@ -627,7 +627,7 @@ void considerDetachedPlugin(String shortName) {
for (String loadedFile : loadPluginsFromWar(getDetachedLocation(), (dir, name) -> normalisePluginName(name).equals(shortName))) {
String loaded = normalisePluginName(loadedFile);
File arc = new File(rootDir, loaded + ".jpi");
LOGGER.info(() -> "Loading a detached plugin as a dependency: " + arc);
LOGGER.info(() -> "Loading a detached plugin " + arc + " as a dependency of " + source);
try {
plugins.add(strategy.createPluginWrapper(arc));
} catch (IOException e) {
Expand Down
6 changes: 6 additions & 0 deletions core/src/main/java/hudson/lifecycle/ExitLifecycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
import hudson.util.BootFailure;
import java.util.logging.Level;
import java.util.logging.Logger;
import jenkins.model.Jenkins;
Expand Down Expand Up @@ -72,4 +73,9 @@ public void restart() {

System.exit(exitOnRestart);
}

@Override
public void onBootFailure(BootFailure problem) {
restart();
}
}
Loading