Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | distgit: Actually hardlink over the existing source at the old path | Mathieu Bridon | 2015-05-29 | 1 | -1/+13 | |
| | | | | | | | Without this, the file could exist at both the old and new path, taking the space on the disk twice. This forces a hardlink if the file already existed at the old path. | |||||
* | distgit: And so does os.makedirs | Mathieu Bridon | 2015-05-29 | 1 | -1/+1 | |
| | ||||||
* | distgit: os.link fails if the dest already exists | Mathieu Bridon | 2015-05-29 | 1 | -1/+7 | |
| | ||||||
* | distgit: Ensure the folder exists | Mathieu Bridon | 2015-05-29 | 1 | -2/+3 | |
| | | | | | | | We can't hard link the file if the folder containing the link destination does not exist. Hurray for testing in staging! | |||||
* | distgit: Upload files to both the new and old path | Mathieu Bridon | 2015-05-29 | 1 | -5/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the CGI script is set to upload files: - to the old path if the upload uses md5 - to the new path if the upload uses sha512 The old path is as follows: /%(srpmname)s/%(filename)s/%(hash)s/%(filename)s The new path is: /%(srpmname)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s This was meant to ensure compatibility with current fedpkg which always downloads from the old path, but will eventually download from the new path when we move to sha512. However, working more on this, I now think it would make for a smoother transition if we instead always stored the files at the new path, but just hardlinked to the old path if the upload is using md5. This is what this patch achieves. With this deployed in production, fedpkg could be patched to try downloading from the new path, and fallback to the old one if necessary, which decouples the migration to the new path from the migration to the new hash. | |||||
* | (fedmenu) extract the package name from the url. | Ralph Bean | 2015-04-24 | 1 | -5/+11 | |
| | ||||||
* | Add forgotten slash. | Ralph Bean | 2015-04-24 | 1 | -1/+1 | |
| | ||||||
* | Undo this stg/prod distinction. | Ralph Bean | 2015-04-24 | 3 | -82/+3 | |
| | ||||||
* | Try the fedmenu header for stg cgit. | Ralph Bean | 2015-04-24 | 1 | -1/+20 | |
| | ||||||
* | Typofix. | Ralph Bean | 2015-04-24 | 1 | -1/+1 | |
| | ||||||
* | Try adding a custom cgit header for staging. | Ralph Bean | 2015-04-24 | 3 | -0/+10 | |
| | ||||||
* | Typofix. | Ralph Bean | 2015-04-24 | 1 | -1/+1 | |
| | ||||||
* | Make cgitrc into separate files for prod and staging. | Ralph Bean | 2015-04-24 | 2 | -1/+84 | |
| | ||||||
* | Fix http{s} git cloning on pkgs. Fixes ticket 4688 | Kevin Fenzi | 2015-04-23 | 1 | -0/+7 | |
| | ||||||
* | Remove the lookaside email hook (rely on fedmsg now). | Ralph Bean | 2015-03-24 | 1 | -40/+0 | |
| | ||||||
* | We need the _exec version off course | Patrick Uiterwijk | 2015-03-13 | 1 | -2/+2 | |
| | ||||||
* | More fixes to selinux pkgs | Patrick Uiterwijk | 2015-03-13 | 1 | -2/+2 | |
| | ||||||
* | Same fix on more places | Patrick Uiterwijk | 2015-03-13 | 1 | -2/+2 | |
| | ||||||
* | This type is always nfs_t, and we have a policy to allow that.. | Patrick Uiterwijk | 2015-03-12 | 1 | -8/+0 | |
| | ||||||
* | Update policies to be compatible with RHEL7 | Patrick Uiterwijk | 2015-03-12 | 2 | -6/+8 | |
| | ||||||
* | Try and fix git branches sync to work with git packed refs. | Kevin Fenzi | 2015-03-06 | 1 | -63/+91 | |
| | ||||||
* | Fix setup_git_package to handle setting up after gitolite setup a broken repo | Patrick Uiterwijk | 2015-02-27 | 1 | -2/+8 | |
| | | | | | | | | | | | | | setup_git_package did the same check as pkgdb_sync did [1]. Also, if gitolite already came by, it will have created an update hook, which blocks us from pushing the initial commit (since gitolite has no idea who we are). So in that case, we will just remove the update hook: gitolite will recreate it when it comes by the repo with genacls.sh. The change to mkdir -p is just synto make it not print an error in case the directory already existed. [1]: https://lists.fedoraproject.org/pipermail/infrastructure/2015-February/015600.html Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | Make pkgdb_sync more resilient by always calling SETUP_PACKAGE if master ↵ | Patrick Uiterwijk | 2015-02-27 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | does not exist This should make it recover in case there are any repos in a weird state (aka, no master branch). This could for example happen if the package was created in pkgdb after pkgdb_sync ran, but before genacls.pkgdb runs, because then gitolite will see it as a new repo, and create a totally blank repo. Especially since pkgdb_sync will abort after the first error, it would then leave all later created repos broken as well. Calling setup_git_package in a repo without master branch has no ill effect: - Running git init on a pre-initialized repo is a no-op (or at least doesn't destroy current git data) - Since it doesn't have master, it didn't run the script, so adding the first commit and hooks etc are what we want the script to do Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | Only remove master from request if it was requested | Patrick Uiterwijk | 2015-02-25 | 1 | -10/+11 | |
| | | | | Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | Just always take the first commit returned on the master branch | Patrick Uiterwijk | 2015-02-25 | 1 | -1/+1 | |
| | | | | | | | Some repos have multiple first master commits due to force-pushes. Without this, that would crash upon branching for those packages. Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | Publish master creation | Patrick Uiterwijk | 2015-02-24 | 1 | -0/+9 | |
| | ||||||
* | Creating branches is now started by genacls.sh. | Patrick Uiterwijk | 2015-02-24 | 3 | -10/+1 | |
| | | | | Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | Lets first create all repos before creating ACLs for them | Patrick Uiterwijk | 2015-02-23 | 1 | -1/+2 | |
| | | | | Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | Feel free to run this as root, mmkey? | Patrick Uiterwijk | 2015-02-23 | 2 | -14/+0 | |
| | ||||||
* | Make genacls call pkgdb_sync_git_branches.py | Patrick Uiterwijk | 2015-02-23 | 1 | -0/+1 | |
| | | | | | | | | | | | | gitolite compile creates empty git repos during compile for repos in its acl that don't exist. Since this is automagically run by fedmsg, it triggers before scm-admins can run pkgdb_sync_git_branches.py Because of this, pkgdb_sync_git_branches sees a git repo, thus does not execute setup_git_package. But since setup_git_package creates master, and pkgdb_sync_git_branches later on tries to create new branches from master.... Aka, this broke process-git-requests. Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> | |||||
* | setup_git_repo creates master | Patrick Uiterwijk | 2015-02-19 | 1 | -0/+1 | |
| | ||||||
* | When a bare repo is created, HEAD is invalid, so cloning won't work. | Patrick Uiterwijk | 2015-02-19 | 1 | -1/+2 | |
| | ||||||
* | Remove source_branch stuff, and refuse to create master branch to ↵ | Patrick Uiterwijk | 2015-02-19 | 1 | -18/+5 | |
| | | | | pre-existing repo | |||||
* | Strip unwanted prefix from git.lookaside.new messages. | Ralph Bean | 2015-02-19 | 1 | -0/+4 | |
| | ||||||
* | Try to fix lookaside.new fedmsg messages. | Ralph Bean | 2015-02-19 | 1 | -1/+1 | |
| | ||||||
* | Formatting and add the f22 branch | Pierre-Yves Chibon | 2015-02-19 | 1 | -6/+6 | |
| | ||||||
* | Set the git_cgi_use_nfs SELinux boolean for the lookaside | Pierre-Yves Chibon | 2015-02-19 | 1 | -0/+7 | |
| | ||||||
* | Wonder if it's a formatting issue | Kevin Fenzi | 2015-02-16 | 1 | -2/+8 | |
| | ||||||
* | Some more idemportency stuff | Kevin Fenzi | 2015-02-16 | 1 | -1/+6 | |
| | ||||||
* | Run this even when doing check | Kevin Fenzi | 2015-02-16 | 1 | -0/+1 | |
| | ||||||
* | Move mount of lookaside on pkgs to nfs/client role | Kevin Fenzi | 2015-02-16 | 1 | -9/+0 | |
| | ||||||
* | distgit: Add the path to the source file to the emitted messages | Mathieu Bridon | 2015-02-09 | 1 | -1/+4 | |
| | | | | | | | | This is the counterpart of this change: https://github.com/fedora-infra/fedmsg_meta_fedora_infrastructure/pull/170 Now that is has been deployed, we can start emitting the new messages. | |||||
* | RemiFedora said 0002 was better, especially if we want to access directories | Pierre-Yves Chibon | 2015-01-30 | 1 | -1/+1 | |
| | ||||||
* | Give other the right to read the file | Pierre-Yves Chibon | 2015-01-30 | 1 | -1/+1 | |
| | | | | | | This will make cgit happy Thanks Mathieu :) | |||||
* | We do want a certificate in stg | Pierre-Yves Chibon | 2015-01-29 | 1 | -1/+1 | |
| | ||||||
* | Use different certs for prod and stg | Pierre-Yves Chibon | 2015-01-29 | 1 | -1/+10 | |
| | ||||||
* | Turn on the SELinux boolean nis_enabled on pkgs | Pierre-Yves Chibon | 2015-01-29 | 1 | -0/+7 | |
| | ||||||
* | Fix the content for /srv/cache | Pierre-Yves Chibon | 2015-01-28 | 1 | -2/+2 | |
| | ||||||
* | No need for two states and s/file/touch | Pierre-Yves Chibon | 2015-01-28 | 1 | -2/+2 | |
| | ||||||
* | Needs space | Pierre-Yves Chibon | 2015-01-28 | 1 | -1/+1 | |
| |