Commit Graph

11 Commits

Author SHA1 Message Date
Sean McGinnis
62c2fc4317
Use updated git cache dir default path
Change-Id: I7c3ed1e08c7ef1a62845df0d9c5b22f400d8d90b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-13 06:13:07 -05:00
Sean McGinnis
56f6ffaa83
Update upstream cloning URL
Change-Id: I38d07ddefc7b3b6faf0156adc0f3fe5faf86b72c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-21 14:25:41 -05:00
Ian Wienand
8c030f0eaf Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I648dbeadf4ff11e3d9f23521be530b36186927d9
2019-03-25 08:27:17 -04:00
Sean McGinnis
47c4ede8e2 Add pruning in validation cloning
The gate keeps a local cache of repos that will not reflect things like
the manual deletion of refs such as incorrect branches. In order for the
validation to pass before the cache is rebuilt, we need to prune the
repo to pick up those deletions.

Change-Id: I25848275f90ec440e85765f87a23cd1413aab6cb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-08-16 12:05:19 -05:00
Sean McGinnis
1aa9607e0a
Fix bashate errors
A few errors were causing the bashate job to fail. This corrects those
errors and also addresses the reported warnings for a clean build.

Change-Id: Ibc5c4f006d264e2f0a4c1b8186b5e313d2905561
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-07-30 14:56:05 -05:00
Sean McGinnis
4ac5e3f89a
Use --force when checking out commits
The clone_repo script clones the repo if needed and then checks out the
commit, branch, or master. If a previous checkout has left untracked
files, this will fail to protect those files from being overwritten.

In our automation we do not need to care about untracked files and need
to make sure we have the right point in the tree, so force the checkout
to make sure these untracked files are ignored.

Change-Id: Ia1ec2869aa7a899e987ef43a11f0af627efeea65
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-07-25 09:17:15 -05:00
Doug Hellmann
853ba13fc5 make clone_repo.sh work on macOS
The getopt command doesn't work the same under macOS, so don't use it
an process the arguments directly.

Change-Id: Ib4de175e82ec7ece65951ce66692c76caac95aa5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-16 15:46:58 -04:00
Doug Hellmann
134df26a30 add -v option to clone_repo.sh
Do not show set -x output by default, but provide an option to enable
it.

Change-Id: Idba91c635ce179ce07945a6dc519e72e667b9463
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-11-13 12:17:36 -05:00
Sean McGinnis
2d2efc4f73 Default clone_repo to master if branch not found
Behavior change from set -e causes attempt to checkout an invalid
branch to fail. Explicitly fall back to master if the requested
branch name checkout fails.

Change-Id: I5d1f6a997375743bb3498e7fae1fbad19c307d33
2017-10-20 06:16:11 -05:00
Doug Hellmann
b57a8522ae remove redundant git operation
git fetch and git remote update do the same work, and there is no need
to do it twice. Keep the fetch command since we can explicitly tell it
to pull down tags.

Change-Id: Iac1602ebe7a1a67ad5fecb599cde21f2a312fff4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-10-17 17:53:06 -04:00
Doug Hellmann
34756ddbdf replace the use of zuul-cloner with a shell script
Under zuulv3 the behavior has changed significantly to now require
specifying which repositories need to be cloned for each job, and
zuul-cloner only copies the repositories that are already
available. As soon as zuulv3 is released, our jobs relying on the old
fallback behavior of checking out from a cache when present but using
the upstream server in other situations will fail.

The new script tools/clone_repo.sh handles the cases we have in the
tools and jobs within this repository, and should also be usable from
the tag-releases job.

zuul is removed from the list of requirements so it is no longer
installed when jobs run under tox.

list_unreleased_changes.sh is updated to drop the use of the
virtualenv, which was only present for zuul-cloner.

The other updates in the patch are to change the tools to use the new
script.

Change-Id: Ic559d27881a9a89fb0dcb5295a4d7ed7c578112f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-10-17 15:24:30 -04:00