Skip to content

Commit e6d904c

Browse files
committed
fix: corrected the github urls for repos
1 parent 3656bc6 commit e6d904c

2 files changed

Lines changed: 11 additions & 15 deletions

File tree

repo.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ repos=(
3434
"https://github.com/edx/frontend-app-learner-record.git"
3535
"https://github.com/edx/frontend-app-payment.git"
3636
"https://github.com/edx/frontend-app-publisher.git"
37-
"https://github.com/edx/edx-analytics-dashboard.git"
3837
"https://github.com/edx/edx-analytics-data-api.git"
3938
"https://github.com/openedx/enterprise-catalog.git"
4039
"https://github.com/edx/portal-designer.git"
@@ -63,7 +62,6 @@ non_release_repos=(
6362
"https://github.com/edx/frontend-app-learner-portal-programs.git"
6463
"https://github.com/edx/frontend-app-communications.git"
6564
"https://github.com/edx/frontend-app-discussions.git"
66-
"https://github.com/edx/frontend-app-enterprise-api-doc.git"
6765
"https://github.com/edx/frontend-app-enterprise-public-catalog.git"
6866
"https://github.com/edx/frontend-app-support-tools.git"
6967
"https://github.com/edx/frontend-app-authoring.git"
@@ -87,7 +85,6 @@ ssh_repos=(
8785
"git@github.com:edx/frontend-app-learner-record.git"
8886
"git@github.com:edx/frontend-app-payment.git"
8987
"git@github.com:edx/frontend-app-publisher.git"
90-
"git@github.com:edx/edx-analytics-dashboard.git"
9188
"git@github.com:edx/edx-analytics-data-api.git"
9289
"git@github.com:edx/portal-designer.git"
9390
"git@github.com:openedx/license-manager.git"
@@ -115,7 +112,6 @@ non_release_ssh_repos=(
115112
"git@github.com:edx/frontend-app-learner-portal-programs.git"
116113
"git@github.com:edx/frontend-app-communications.git"
117114
"git@github.com:edx/frontend-app-discussions.git"
118-
"git@github.com:edx/frontend-app-enterprise-api-doc.git"
119115
"git@github.com:edx/frontend-app-enterprise-public-catalog.git"
120116
"git@github.com:edx/frontend-app-support-tools.git"
121117
"git@github.com:edx/frontend-app-authoring.git"
@@ -338,7 +334,6 @@ FORKED_REPOS=(
338334
["frontend-app-communications"]="edx"
339335
["frontend-app-discussions"]="edx"
340336
["frontend-app-profile"]="edx"
341-
["frontend-app-enterprise-api-doc"]="edx"
342337
["frontend-app-enterprise-public-catalog"]="edx"
343338
["frontend-app-publisher"]="edx"
344339
["frontend-app-support-tools"]="edx"

test_repo.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ create_test_repo() {
5555
echo "TEST 1: EDX Origin Repository"
5656
TOTAL_TESTS=$((TOTAL_TESTS + 1))
5757
cd "$TEST_WORKSPACE"
58-
create_test_repo "ecommerce" "https://github.com/edx/ecommerce.git"
59-
show_remotes "ecommerce" "BEFORE"
58+
create_test_repo "frontend-app-gradebook" "https://github.com/edx/frontend-app-gradebook.git"
59+
show_remotes "frontend-app-gradebook" "BEFORE"
6060
cd /workspaces/devstack
6161
echo " Output:"
6262
DEVSTACK_WORKSPACE="$TEST_WORKSPACE" make dev.setup-remotes
6363
cd "$TEST_WORKSPACE"
64-
show_remotes "ecommerce" "AFTER"
65-
cd ecommerce
64+
show_remotes "frontend-app-gradebook" "AFTER"
65+
cd frontend-app-gradebook
6666
if git remote | grep -q "edx" && git remote | grep -q "openedx" && ! git remote | grep -q "origin"; then
6767
print_pass "EDX origin handling"
6868
else
@@ -99,7 +99,8 @@ DEVSTACK_WORKSPACE="$TEST_WORKSPACE" make dev.setup-remotes
9999
cd "$TEST_WORKSPACE"
100100
show_remotes "course-discovery" "AFTER"
101101
cd course-discovery
102-
if git remote | grep -q "openedx" && git remote | grep -q "edx" && ! git remote | grep -q "origin"; then
102+
# course-discovery should be renamed from origin to openedx, and get an edx remote
103+
if git remote get-url openedx | grep -q "openedx/course-discovery" && git remote get-url edx | grep -q "edx/course-discovery" && [ $(git remote | wc -l) -eq 2 ]; then
103104
print_pass "OpenEDX origin handling (course-discovery)"
104105
else
105106
print_fail "OpenEDX origin handling (course-discovery)"
@@ -145,19 +146,19 @@ cd ..
145146
echo
146147
echo "TEST 6: Idempotent Operations"
147148
TOTAL_TESTS=$((TOTAL_TESTS + 1))
148-
create_test_repo "ecommerce" "https://github.com/edx/ecommerce.git"
149-
show_remotes "ecommerce" "BEFORE (fresh repo)"
149+
create_test_repo "frontend-app-gradebook" "https://github.com/edx/frontend-app-gradebook.git"
150+
show_remotes "frontend-app-gradebook" "BEFORE (fresh repo)"
150151
cd /workspaces/devstack
151152
echo " First run output:"
152153
DEVSTACK_WORKSPACE="$TEST_WORKSPACE" make dev.setup-remotes
153154
cd "$TEST_WORKSPACE"
154-
show_remotes "ecommerce" "AFTER FIRST RUN"
155+
show_remotes "frontend-app-gradebook" "AFTER FIRST RUN"
155156
cd /workspaces/devstack
156157
echo " Second run output (should be idempotent):"
157158
DEVSTACK_WORKSPACE="$TEST_WORKSPACE" make dev.setup-remotes
158159
cd "$TEST_WORKSPACE"
159-
show_remotes "ecommerce" "AFTER SECOND RUN (should be identical)"
160-
cd ecommerce
160+
show_remotes "frontend-app-gradebook" "AFTER SECOND RUN (should be identical)"
161+
cd frontend-app-gradebook
161162
if [ $(git remote | wc -l) -eq 2 ] && git remote | grep -q "edx" && git remote | grep -q "openedx"; then
162163
print_pass "Idempotent operations"
163164
else

0 commit comments

Comments
 (0)