forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove metrics work from devstack
- Loading branch information
1 parent
309f147
commit d241277
Showing
10 changed files
with
47 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ repos=( | |
"https://github.com/openedx/xqueue.git" | ||
"https://github.com/edx/edx-analytics-dashboard.git" | ||
"https://github.com/openedx/frontend-app-gradebook.git" | ||
"https://github.com/openedx/frontend-app-learner-dashboard" | ||
"https://github.com/openedx/frontend-app-learner-record" | ||
"https://github.com/openedx/frontend-app-learner-dashboard.git" | ||
"https://github.com/openedx/frontend-app-learner-record.git" | ||
"https://github.com/edx/frontend-app-payment.git" | ||
"https://github.com/openedx/frontend-app-publisher.git" | ||
"https://github.com/edx/edx-analytics-dashboard.git" | ||
|
@@ -43,8 +43,8 @@ non_release_repos=( | |
"https://github.com/openedx/frontend-app-course-authoring.git" | ||
"https://github.com/openedx/frontend-app-learning.git" | ||
"https://github.com/openedx/frontend-app-library-authoring.git" | ||
"https://github.com/openedx/registrar.git" | ||
"https://github.com/openedx/frontend-app-program-console.git" | ||
"https://github.com/edx/registrar.git" | ||
"https://github.com/edx/frontend-app-program-console.git" | ||
"https://github.com/openedx/frontend-app-account.git" | ||
"https://github.com/openedx/frontend-app-profile.git" | ||
"https://github.com/openedx/frontend-app-ora-grading.git" | ||
|
@@ -73,8 +73,8 @@ non_release_ssh_repos=( | |
"[email protected]:openedx/frontend-app-course-authoring.git" | ||
"[email protected]:openedx/frontend-app-learning.git" | ||
"[email protected]:openedx/frontend-app-library-authoring.git" | ||
"[email protected]:openedx/registrar.git" | ||
"[email protected]:openedx/frontend-app-program-console.git" | ||
"[email protected]:edx/registrar.git" | ||
"[email protected]:edx/frontend-app-program-console.git" | ||
"[email protected]:openedx/frontend-app-account.git" | ||
"[email protected]:openedx/frontend-app-profile.git" | ||
"[email protected]:openedx/frontend-app-ora-grading.git" | ||
|
@@ -87,7 +87,7 @@ else | |
ssh_repos+=("${non_release_ssh_repos[@]}") | ||
fi | ||
|
||
name_pattern=".*/(.*).git" | ||
name_pattern=".*/(.*).git$" | ||
|
||
_checkout () | ||
{ | ||
|
@@ -97,7 +97,10 @@ _checkout () | |
do | ||
# Use Bash's regex match operator to capture the name of the repo. | ||
# Results of the match are saved to an array called $BASH_REMATCH. | ||
[[ $repo =~ $name_pattern ]] | ||
if [[ ! $repo =~ $name_pattern ]]; then | ||
echo "Cannot perform checkout on repo; URL did not match expected pattern: $repo" | ||
exit 1 | ||
fi | ||
name="${BASH_REMATCH[1]}" | ||
|
||
# If a directory exists and it is nonempty, assume the repo has been cloned. | ||
|
@@ -122,7 +125,10 @@ _clone () | |
do | ||
# Use Bash's regex match operator to capture the name of the repo. | ||
# Results of the match are saved to an array called $BASH_REMATCH. | ||
[[ $repo =~ $name_pattern ]] | ||
if [[ ! $repo =~ $name_pattern ]]; then | ||
echo "Cannot clone repo; URL did not match expected pattern: $repo" | ||
exit 1 | ||
fi | ||
name="${BASH_REMATCH[1]}" | ||
|
||
# If a directory exists and it is nonempty, assume the repo has been checked out | ||
|
@@ -196,7 +202,10 @@ reset () | |
|
||
for repo in ${repos[*]} | ||
do | ||
[[ $repo =~ $name_pattern ]] | ||
if [[ ! $repo =~ $name_pattern ]]; then | ||
echo "Cannot reset repo; URL did not match expected pattern: $repo" | ||
exit 1 | ||
fi | ||
name="${BASH_REMATCH[1]}" | ||
|
||
if [ -d "$name" ]; then | ||
|
@@ -227,7 +236,10 @@ status () | |
currDir=$(pwd) | ||
for repo in ${repos[*]} | ||
do | ||
[[ $repo =~ $name_pattern ]] | ||
if [[ ! $repo =~ $name_pattern ]]; then | ||
echo "Cannot check repo status; URL did not match expected pattern: $repo" | ||
exit 1 | ||
fi | ||
name="${BASH_REMATCH[1]}" | ||
|
||
if [ -d "$name" ]; then | ||
|
Oops, something went wrong.