Skip to content

Conversation

@mooperd
Copy link
Contributor

@mooperd mooperd commented Mar 5, 2025

No description provided.

@mooperd mooperd requested a review from robtaylor March 5, 2025 07:43
@github-actions
Copy link

github-actions bot commented Mar 5, 2025

Tests Skipped Failures Errors Time
11 0 💤 1 ❌ 0 🔥 1.390s ⏱️

@github-actions
Copy link

github-actions bot commented Mar 5, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://chipflow-lib.docs.chipflow-infra.com/pr-preview/pr-44/

Built to branch gh-pages at 2025-03-06 21:47 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@robtaylor robtaylor changed the base branch from main to multi-oe March 6, 2025 18:30
os.environ.get("CHIPFLOW_API_ENDPOINT", "https://app.chipflow-infra.com/api/builds"),
auth=(os.environ["CHIPFLOW_API_KEY_ID"], os.environ["CHIPFLOW_API_KEY_SECRET"]),
os.environ.get("CHIPFLOW_API_ENDPOINT", "https://build.chipflow.org/api/builds"),
auth=os.environ["CHIPFLOW_API_KEY"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auth takes a tuple: ('user', 'pass')

Copy link
Contributor

@robtaylor robtaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mooperd actually, could you add some more tests for the submit codepath in tests/test_silicon_step.py ?

Comment on lines -160 to -180
if resp.status_code == 403:
raise ChipFlowError(
"Authentication failed; please verify the values of the the CHIPFLOW_API_KEY_ID "
"and CHIPFLOW_API_KEY_SECRET environment variables, if the issue persists, "
"contact support to resolve it")
elif resp.status_code >= 400:
raise ChipFlowError(
f"Submission failed ({resp_data['statusCode']} {resp_data['error']}: "
f"{resp_data['message']}); please contact support and provide this error message")
elif resp.status_code >= 300:
assert False, "3xx responses should not be returned"
elif resp.status_code >= 200:
if not resp_data["ok"]:
raise ChipFlowError(
f"Submission failed ({resp_data['msg']}); please contact support and provide "
f"this error message")
else:
print(f"{resp_data['msg']} (#{resp_data['id']}: {resp_data['name']}); "
f"{resp_data['url']}")
else:
ChipFlowError(f"Unexpected response from API: {resp}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error handling is still needed. Auth failure, or other issues on cloud side - I just got a 404 for example. no idea why!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants