Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ci build is broken #80

Open
lwasser opened this issue Feb 21, 2025 · 3 comments
Open

Bug: ci build is broken #80

lwasser opened this issue Feb 21, 2025 · 3 comments
Assignees

Comments

@lwasser
Copy link
Member

lwasser commented Feb 21, 2025

I am getting an error when I run the ci build, which means our data isn't updating. I tried to look at the data locally but i can't figure out where it's erroring. My guess is it's a pydantic / model-related error, but it actually errors in the final steps of the sprint scripts save.

if you look at Ci it looks like a validation error where a none type value is received but not supported in the model 🤷‍♀

look at this build for specifics of the failure.

@pllim
Copy link

pllim commented Feb 21, 2025

Drive-by comment:

  File "metrics/scripts/get-sprint-data.py", line 326, in <module>
    project_id = get_project_id(project_pk, ACCESS_TOKEN)
  File "metrics/scripts/get-sprint-data.py", line 79, in get_project_id
    project_id = data["data"]["organization"]["projectV2"]["id"]
TypeError: 'NoneType' object is not subscriptable

One of the elements (except the last one called "id") is unexpectedly a None instead of a dictionary: data["data"]["organization"]["projectV2"]["id"]

@lwasser
Copy link
Member Author

lwasser commented Feb 21, 2025

thank you for this!!

@banesullivan
Copy link
Contributor

Debugging this and improving the CI workflow in #86

The CI job is failing when running get-sprint-data.py. If we look at the history of this CI job, it's been failing since we merged my PR #73 adding this script. We didn't catch this because I didn't realize this was running on CI, was only testing/validating locally, and we didn't have this script running in a CI check for that PR.

My impression is that the GITHUB_TOKEN automatically provided lacks the necessary permissions to access project boards.

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

No branches or pull requests

3 participants