Skip to content

Conversation

@ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Jul 18, 2025

Closes #14122

@ohmayr ohmayr requested a review from a team as a code owner July 18, 2025 16:39
@ohmayr ohmayr requested a review from vchudnov-g July 21, 2025 18:27
Base automatically changed from initial-setup-for-librarian-workflow to main July 21, 2025 19:31
@ohmayr ohmayr force-pushed the read-generate-request-file branch from 89b9518 to 7b60921 Compare July 21, 2025 19:33
@ohmayr ohmayr force-pushed the read-generate-request-file branch from 7b60921 to fbb164e Compare July 21, 2025 19:36
@@ -0,0 +1,10 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Real generation requests will go in this path, correct? So this actual file is just test data? If so; I suggest

  • place this file under some sort of test directory (call it $LIBRARIAN_TEST_DIR in this discussion)
  • configure the CLI to set the variable $LIBRARIAN to the value of the environment variable $LIBRARIAN_DIR if it exists, or otherwise the default you already have
  • when you run test_handle_generate, set $LIBRARIAN_DIR to have the value of $LIBRARIAN_TEST_DIR so it reads the input from the test dir.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've addressed this comment. However, my initial intention was to remove this file once we complete the work since we don't need it (i.e. we only need it for local testing). We won't be testing bazelisk commands in our unit tests. Let me know what you think.

parthea
parthea previously approved these changes Jul 22, 2025
@ohmayr ohmayr merged commit 98f98e3 into main Jul 22, 2025
23 checks passed
@ohmayr ohmayr deleted the read-generate-request-file branch July 22, 2025 18:05
Copy link
Contributor

@vchudnov-g vchudnov-g 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. Thanks for your changes.

Returns:
dict: The parsed JSON content.
Raises:
Copy link
Contributor

Choose a reason for hiding this comment

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

The exceptions specify the file path? Cool.

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.

Create a CloudBuild.yaml file for Build Triggers

3 participants