Skip to content

Conversation

@pgm
Copy link
Contributor

@pgm pgm commented Oct 19, 2025

This branch contains changes which strive to make the testing and publishing of the breadbox client more reliable.

Specifically, this consists of:

  1. removal of cz and replacing it with a python script, which allows the logic to be more tailored to our precise needs.
  2. Moved logic out of github workflow steps into the python script which allows us to manually run the "bump and publish" process. (Either for real, or with --dryrun for debugging purposes.)
  3. Changes to the breadbox_client test configs such that it automatically starts up an instance of breadbox as a fixture. This allows us to run pytest within github workflow and makes it easier to run tests as necessary.

github-actions and others added 30 commits October 17, 2025 09:37
Work in progress because all the steps around publishing have been removed
added httpx dependency

added install of breadbox

Bumping poetry version in case that helps

more debugging build

more debugging build

more debugging build

more debugging build

more debugging

more debugging

more debugging

more debugging build

more debugging build

more debugging build

more debugging build

more debugging build

more debugging build

added a new function for running a poetry command in virtual env

added a new function for running a poetry command in virtual env

added a new function for running a poetry command in virtual env

added a new function for running a poetry command in virtual env

added a new function for running a poetry command in virtual env

added a new function for running a poetry command in virtual env

Dropped unused settings variables for configuring broker url and backend
pgm and others added 16 commits October 18, 2025 22:46
… regex and subprocess handling

Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
…nderstanding

Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
…ump script

Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
…y run mode

Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
Co-authored-by: aider (vertex_ai/claude-3-7-sonnet@20250219) <[email protected]>
@pgm pgm changed the title WIP: New process for building breadbox client New process for running tests and publishing breadbox client Oct 21, 2025
@pgm pgm marked this pull request as ready for review October 21, 2025 15:18
@pgm pgm requested a review from snwessel October 21, 2025 15:18
Copy link
Member

@snwessel snwessel left a comment

Choose a reason for hiding this comment

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

Looks good to me! I've found it really time consuming in the past to wait for the build/publish in github to finish before I can use the updated/published client. I really like that we'll be able to have a bit more control over when/where we run this!

And I like that there's now a separate build/test workflow for the client too! 🎉

def update_client():
"Update the code for the breadbox client based. (Also saving out a new 'latest-breadbox-api.json' file)"

_export_api_spec("../breadbox-client/latest-breadbox-api.json") # TODO: call helper
Copy link
Member

Choose a reason for hiding this comment

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

Is this a TODO that still needs to be done?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, but lets say "no" because no one is going to do this (or know what this refers to)

This is showing up as "new" because I moved commands.py from one directory to another and there were some changes so git doesn't seem to have figured out it was a rename and considers it as a delete+add.

I'll delete the TODO comment

print("env")
print(os.environ)
print("cwd")
print(os.getcwd())
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to leave these print statements in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope! I forgot about those. Left over from hacky debugging of what was going on when run by github.

Removing.

# looking at the VIRTUAL_ENV enviornment variable.
#
# If you delete that variable, then `poetry` calls will correctly identify the venv based on the
# current working directory.
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for the comment explaining this! I've definitely run into a similar issue before and had been very confused by it!

@snwessel
Copy link
Member

@pgm is this ready to be merged in, or did you want to wait to talk about it at TPP?

I am hoping to make some small breadbox client updates, and I don't want to create conflicts with your changes here - but my changes can wait if you wanted to talk about this before merging it in.

@pgm pgm merged commit 7ab29b8 into master Oct 24, 2025
16 checks passed
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.

2 participants