-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
feat(pkg) add jenkins-infra/mirrorscripts under Puppet management #3358
feat(pkg) add jenkins-infra/mirrorscripts under Puppet management #3358
Conversation
I'm aware that some of the scripts are in jenkins-infra/jenkins-infra but the puppet agent has been disabled for ages and this is an easy way to ensure we don't lose changes
Handle the case when there are no recent releases
Co-authored-by: mirrorbrain Puppet-managed User <mirrorbrain@ip-172-31-33-96.ec2.internal>
Update README.md
Server is down and cannot receive the files.
…pload Suspend archives upload
This reverts commit b8d247e.
…d-archives-upload Revert "Suspend archives upload"
Server is down and cannot receive the files. See jenkins-infra/mirror-scripts#5 for an example and jenkins-infra/mirror-scripts#6 for the change that reverted it when archives.jenkins.io was again available.
…archives Temporarily disable upload to archives.jenkins-ci.org
…e-upload-to-archives Revert "Temporarily disable upload to archives.jenkins-ci.org"
sync-recent-releases must copy directory content
in order to solve dependencies conflict
fix(sync recent releases): adding a venv python for blobxfer
…blobxfer CLI Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
fix(batch upload,sync) follow up of 503b7ac to use a virtual env for blobxfer CLI
…PATH when running from a crontab Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
…or azcopy Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
cleanup: remove last remnants of blobxfer
…-it (content not templatized yet) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
WDYT of rebasing some of the recent commits? |
I'm not sure to understand: what is the problem it would solve? Not sure how to do it either? |
Sorry, by rebasing I meant squashing commits so the git (recent) history would be a little bit cleaner and easier to navigate if needed. |
I'm opposed to rebase or squash of changes on the primary branch of a repository because it requires others who have forked or cloned the repository to perform additional actions to replace the history that is being rewritten. That is especially problematic when I don't object to squash or rebase during a merge operation. That tends to keep the history of the primary branch more tidy. However, once something is on the primary branch, a rewrite of history creates pain for others. |
As these commits aren't in this repo yet I'm proposing to take the opportunity of this PR to squash some of these. |
The goal of importing the history is to allow navigating through the Rewriting the imported history has an impact: it will be hard to map a given change to the associated history in https://github.com/jenkins-infra/mirror-scripts. Besides, what would the criteria to decide to rebase or not? Who would have to do this? It looks like a superficial change and that means spending hours getting a review + consensus on each squashed commit. I don't see the problem being solved by doing this, but only the waste of time. Could you clarify your request in that matter? |
The set of "mirror scripts" imported in jenkins-infra#3358 have their content templatized to map to puppet hieradata configuration used by profiles. Note: the profile `updatesite` has been updated (default param. value move to hieradata) to allow other profiles to lookup the value (`updatesite` and `pkgrepo`` are still highly coupled on the same VM). Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Starting a pairing session with @smerle33 to land this PR and process forward. We'll merge with the option "Merge commit" to avoid polluting the main branch's history. The |
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.
LGTM 🚀
Deployment went well (following the written procedure). |
The set of "mirror scripts" imported in jenkins-infra#3358 have their content templatized to map to puppet hieradata configuration used by profiles. Note: the profile `updatesite` has been updated (default param. value move to hieradata) to allow other profiles to lookup the value (`updatesite` and `pkgrepo`` are still highly coupled on the same VM). Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
* chore(pkg) templatize mirror-scripts on the 'pkgrepo' profile The set of "mirror scripts" imported in #3358 have their content templatized to map to puppet hieradata configuration used by profiles. Note: the profile `updatesite` has been updated (default param. value move to hieradata) to allow other profiles to lookup the value (`updatesite` and `pkgrepo`` are still highly coupled on the same VM). Signed-off-by: Damien Duportal <damien.duportal@gmail.com> * Update dist/profile/manifests/pkgrepo.pp * Update dist/profile/manifests/pkgrepo.pp * code review fixup Signed-off-by: Damien Duportal <damien.duportal@gmail.com> * code review fixup Signed-off-by: Damien Duportal <damien.duportal@gmail.com> * code review fixup Signed-off-by: Damien Duportal <damien.duportal@gmail.com> * code review fixup Signed-off-by: Damien Duportal <damien.duportal@gmail.com> * Update spec/classes/profile/pkgrepo_spec.rb --------- Signed-off-by: Damien Duportal <damien.duportal@gmail.com> Co-authored-by: Stéphane MERLE <95630726+smerle33@users.noreply.github.com>
Follow up of jenkins-infra/helpdesk#3414
This PR is the first step of #3352.
It adds the set of "mirror scripts" used on the
pkg
VM (pkg.origin.jenkins.io and updates.jenkins.io) under Puppet management but without any templated content (subsequent PR):The repository jenkins-infra/mirror-scripts was imported into
dist/profile/templates/mirror-scripts
with all its history using the following command (note: 7184a97f1a2591684f6b5b32abaf7ff5efb1dfd3 being the HEAD of itsmain
branch):git log
command in the future will see the imported reference files at the root of jenkins-infra/jenkins-infra so might need addition options. But a subsequent PR will have the script renamed with a.erb
extension.There is only one commit to be review: the last one e8a6aebf69ae0898f44cdabf3a8e052e3e5d0302 which has the puppet management code.
template()
function but no templated content is available yet!.gitignore
and theREADME.md
files have been removed frommirror-scripts
The following workflow is expected once this PR is approved (or if a "force merge" is triggered) - tested on a local vagrant VM
pkg
VM-Note: We only expect the 6 symlinks to be replaced by files
/srv/releases/mirror-scripts/
. They should be the same/srv/releases/mirror-scripts
and the/srv/releases/.git*
config file (if any)