Skip to content

Commit

Permalink
build: extract sqldb generation in repo health job
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Nov 22, 2023
1 parent c897be7 commit 238ba36
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions scripts/repo-health-artifact.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e -v

# Click requires this to work cause it interfaces weirdly with python 3 ASCII default
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

WORKSPACE=$PWD

# Install checks and dashboarding script, this should also install pytest-repo-health
pip-sync -q edx-repo-health/requirements/base.txt
pip install -q -e edx-repo-health

# Generate sql file from the yaml files
cd "${WORKSPACE}/individual_repo_data"
repo_health_dashboard --data-dir . --configuration "${WORKSPACE}/edx-repo-health/repo_health_dashboard/configuration.yaml" \
--output-sqlite "${WORKSPACE}/dashboards/dashboard"
2 changes: 1 addition & 1 deletion scripts/repo-health-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ failed_repo_names=$(echo "${failed_repos[*]}")
echo "Pushing data"
cd "${WORKSPACE}/individual_repo_data"
repo_health_dashboard --data-dir . --configuration "${WORKSPACE}/edx-repo-health/repo_health_dashboard/configuration.yaml" \
--output-csv "${WORKSPACE}/dashboards/dashboard" --output-sqlite "${WORKSPACE}/dashboards/dashboard"
--output-csv "${WORKSPACE}/dashboards/dashboard"

cd "${WORKSPACE}"
# Only commit the data if running with master and no REPORT_DATE is set.
Expand Down

0 comments on commit 238ba36

Please sign in to comment.