Skip to content

Conversation

@joshuanapoli
Copy link
Member

@joshuanapoli joshuanapoli commented Nov 14, 2025

Summary

  • Replace requests dependency with urllib
  • Updated GitHub Actions workflow to use ubuntu-24.04 runner

Test plan

  • Verify CI passes on ubuntu-24.04

Update GitHub Actions to use ubuntu-24.04 runner.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@joshuanapoli joshuanapoli self-assigned this Nov 14, 2025
@linear
Copy link

linear bot commented Nov 14, 2025

PD1-242 Upgrade GitHub Actions to Report Licenses and use Ubuntu 24.04

License Checker

We need an Open Source license report for our new investor.

image.png

Each repo can write to one or more CSV license report file in a bucket owned by the audit account, cvecaudit-licenses. So s3://cvecaudit-licenses/cvec-backend.python.csv would have the license report for the Python dependencies of the cvec-backend repo. Some project, like ui, will have both Python and . Projects like cvec-grafana may have special cases and emit hard-coded reports.

I will need the CSV files to have a standard column structure. I will add a tool to cvec-management-account to accumulate all of the reports. The tool will iterate the list of unarchived repos, and load the CSV license report for each. This way, when we retire a repo, it is removed from the license report.

It looks like there is no way to report on Docker images. We can, however, scrape licenses from our Ubuntu systems from /usr/share/doc/*/copyright.

Ubuntu Upgrade

Standard support for Ubuntu 22.04 ends April 2027.

Ubuntu release cycle | Ubuntu

Standard support for Ubuntu 24.04 ends April 2029.

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

joshuanapoli and others added 4 commits November 20, 2025 15:30
Replace the requests library with Python's built-in urllib to eliminate external HTTP dependency. This change uses urllib.request, urllib.error, and urllib.parse for all HTTP operations while maintaining the same functionality.

Changes:
- Updated CVec class to use urllib instead of requests
- Modified test mocks to work with urllib
- Updated error handling in csv_import script
- Removed requests and types-requests from dependencies

All tests pass successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add checks to ensure _publishable_key is not None before using it in headers dictionaries. This fixes mypy strict mode type errors while also improving runtime safety.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

@CharlesKleeven CharlesKleeven left a comment

Choose a reason for hiding this comment

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

Thank you!

Add the missing import for HTTPError from urllib.error that was referenced but not imported after removing the requests dependency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@joshuanapoli joshuanapoli merged commit bbdd660 into main Nov 20, 2025
4 checks passed
@joshuanapoli joshuanapoli deleted the jn/project branch November 20, 2025 22:28
@joshuanapoli joshuanapoli changed the title [PD1-242] Update Ubuntu Version and [project] table [PD1-242] Replace requests dependency with urllib Nov 24, 2025
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