Skip to content

Commit e2718ca

Browse files
committed
fix ci
1 parent da359e8 commit e2718ca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/update_dashboard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
env:
4646
BASE_PATH: '/${{ github.event.repository.name }}'
4747
run: |
48-
curl https://install.duckdb.org | sh
48+
python3 -m pip install -r requirements.txt
4949
export PATH='/home/runner/.duckdb/cli/latest':$PATH
5050
make generate_sources
5151
make build

feeds/ci_metrics/ci_metrics_feed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def update_workflows():
4040
is_inital_run = False
4141
_, workflows, error = fetch_github_record_list(GITHUB_WORKFLOWS_ENDPOINT, 'workflows', rate_limit, detail_log=True)
4242
if error:
43-
print(error, file=sys.stderr, flush=True)
43+
print(error)
4444
else:
4545
store_workflows(workflows, is_inital_run)
4646

@@ -105,7 +105,7 @@ def update_run_jobs():
105105
endpoint = GITHUB_JOBS_ENDPOINT.format(GITHUB_REPO=GITHUB_REPO, RUN_ID=run_id)
106106
_, jobs, error = fetch_github_record_list(endpoint, 'jobs', adjusted_rate_limit, detail_log=True)
107107
if error:
108-
print(error, file=sys.stderr, flush=True)
108+
print(error)
109109
else:
110110
new_jobs.extend(jobs)
111111
count += 1
@@ -186,8 +186,8 @@ def fetch_github_actions_runs(initial_run, rate_limit, latest_previously_stored=
186186
params = {"per_page": 100, "page": page}
187187
resp = requests.get(GITHUB_RUNS_ENDPOINT, headers=headers, params=params)
188188
if resp.status_code != 200:
189-
print(f"fetching from: {GITHUB_RUNS_ENDPOINT}", file=sys.stderr, flush=True)
190-
print(f"GitHub API error: {resp.status_code} {resp.text}", file=sys.stderr, flush=True)
189+
print(f"fetching from: {GITHUB_RUNS_ENDPOINT}")
190+
print(f"GitHub API error: {resp.status_code} {resp.text}")
191191
exit(1)
192192
data = resp.json().get("workflow_runs", [])
193193
fetched_workflow_runs.extend(data)

0 commit comments

Comments
 (0)