Skip to content

Revert "[JENKINS-75465] Delete RunIdMigrator as it has been 10 years since this migration"#10517

Merged
MarkEWaite merged 4 commits intomasterfrom
revert-10456-JENKINS-75465-remove-run-migrator
Apr 8, 2025
Merged

Revert "[JENKINS-75465] Delete RunIdMigrator as it has been 10 years since this migration"#10517
MarkEWaite merged 4 commits intomasterfrom
revert-10456-JENKINS-75465-remove-run-migrator

Conversation

@MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Apr 8, 2025

Reverts #10456

Confirmed that this revert was enough to fix the test failures in plugin BOM:

LINE=weekly PLUGINS=build-failure-analyzer TEST=BackwardsCompatibilityTest bash local-test.sh
LINE=weekly PLUGINS=copyartifact TEST=CopyArtifactTest#testWrappedCopierProjectNameSplit bash local-test.sh
LINE=weekly PLUGINS=command-launcher TEST=CommandLauncherForceSandboxTest bash local-test.sh
LINE=weekly PLUGINS=junit TEST=HistoryTest#testFailedSince bash local-test.sh
LINE=weekly PLUGINS=unique-id TESTS=IdStoreMigratorV1ToV2Test#testMigrationLongLoadingBuilds build local-test.sh
LINE=weekly PLUGINS=unique-id TESTS=IdStoreMigratorV1ToV2Test#testMigrationLongLoadingBuilds bash local-test.sh
LINE=weekly PLUGINS=unique-id TESTS=IdStoreMigratorV1ToV2Test#testMigration bash local-test.sh
LINE=weekly PLUGINS=dockerhub-notification TESTS=BackCompat102Test bash local-test.sh
LINE=weekly PLUGINS=dockerhub-notification TEST=BackCompat102Test bash local-test.sh
LINE=weekly PLUGINS=thinBackup TEST=TestBackupWithCloudBeesFolder#testWithFolder,TestBackupZipping#testThinBackupZipper bash local-test.sh

@MarkEWaite
Copy link
Contributor Author

/label skip-changelog

@comment-ops-bot comment-ops-bot bot added the skip-changelog Should not be shown in the changelog label Apr 8, 2025
@MarkEWaite MarkEWaite added the work-in-progress The PR is under active development, not ready to the final review label Apr 8, 2025
MarkEWaite added a commit to MarkEWaite/bom that referenced this pull request Apr 8, 2025
Leave the commit as only the revert of the original change

This reverts commit 2cf37a1.
@gbhat618
Copy link
Contributor

gbhat618 commented Apr 8, 2025

thank you for noticing the failures and helping unblock @MarkEWaite

@MarkEWaite MarkEWaite removed the work-in-progress The PR is under active development, not ready to the final review label Apr 8, 2025
@MarkEWaite MarkEWaite marked this pull request as ready for review April 8, 2025 07:29
@MarkEWaite MarkEWaite merged commit c769824 into master Apr 8, 2025
8 of 11 checks passed
@MarkEWaite MarkEWaite deleted the revert-10456-JENKINS-75465-remove-run-migrator branch April 8, 2025 07:32
gbhat618 added a commit to gbhat618/jenkins that referenced this pull request Apr 8, 2025
gbhat618 added a commit to gbhat618/jenkins that referenced this pull request Apr 8, 2025
gbhat618 added a commit to gbhat618/unique-id-plugin that referenced this pull request Apr 10, 2025
…ld dirs to numerical

Two tests were failing in BOM for the change in jenkinsci/jenkins#10521,
* IdStoreMigratorV1ToV2Test#testMigration
* IdStoreMigratorV1ToV2Test#testMigrationLongLoadingBuilds
(failure was reported by jenkinsci/jenkins#10517)

Reason for the failure was the build dirs inside the zip were named with datetime format 'yyyy-MM-dd_HH-mm-ss', which used to get dynamically converted to numerical format during runtime by `RunIdMigrator`.
However with the `RunIdMigrator` removal, this conversion no longer happens, and tests failed.

This PR fixes the zip files, and thus unblocking jenkinsci/jenkins#10521.
gbhat618 added a commit to gbhat618/dockerhub-notification-plugin that referenced this pull request Apr 10, 2025
…o keep it unzipped

While removing the `RunIdMigrator`, it was noticed that `BackCompat102Test` test class was failing in BOM weekly tests.
Reported in jenkinsci/jenkins#10517.

The reason is build directories were historically named in `yyyy-MM-dd_HH-mm-ss` format, which was changed to numerical format in 2015 Jan.
However the zip file in here was still working because `RunIdMigrator` was renaming during runtime.

As `RunIdMigrator` is getting removed we need to fix these directory names.

Also since Zip files are hard to compare -- unzipping and checking in the files with,
* build folder renamed to numerical format
* <timestamp> tag is put in `build.xml` instead of `<number>`.
* update the buildIds in fingerprint files as the name changed from date-time format to numerical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Should not be shown in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants