Skip to content

Conversation

@paulz
Copy link
Contributor

@paulz paulz commented Mar 5, 2025

No description provided.

paulz and others added 6 commits March 5, 2025 11:30
update unique ID format in reporter.py

Signed-off-by: Paul Zabelin <[email protected]>
remove extra packages in test,
rename test files for clarity

Signed-off-by: Paul Zabelin <[email protected]>
Signed-off-by: Paul Zabelin <[email protected]>
for github action:
Error: The path for one of the files in artifact is not valid: /test_allocations_hallucinating-0305-20:12:08/0-True.json. Contains the following character:  Colon :

Invalid characters include:  Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?, Carriage return \r, Line feed \n

The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.

Signed-off-by: Paul Zabelin <[email protected]>
@paulz paulz changed the title Solo work cleanup code, improve folder names Mar 5, 2025
@paulz paulz merged commit 8048c87 into main Mar 5, 2025
1 check passed
@paulz paulz deleted the solo-work branch March 5, 2025 23:18
@tkersey tkersey requested a review from Copilot March 5, 2025 23:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR focuses on cleaning up the code and improving folder naming conventions. The changes include:

  • Updating the timestamp format in the Reporter class for creating unique IDs.
  • Renaming a test function for increased clarity.
  • Removing an unused import in an example test file.

Reviewed Changes

File Description
src/cat_ai/reporter.py Updated the timestamp format used in unique ID generation, which affects folder naming.
tests/test_reporter.py Renamed the test function to better reflect its purpose.
examples/team_recommender/tests/example_4_loop_no_hallucinating/test_allocations_hallucinating.py Removed an unused import to clean up the code.

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment on lines +14 to 15
return datetime.now().strftime("%m%d-%H_%M_%S")

Copy link

Copilot AI Mar 5, 2025

Choose a reason for hiding this comment

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

The new timestamp format omits the year, which may reduce uniqueness over different years if the output directory is reused. Consider including the year (e.g., "%Y%m%d-%H_%M_%S") to ensure folder names remain distinct.

Suggested change
return datetime.now().strftime("%m%d-%H_%M_%S")
return datetime.now().strftime("%Y%m%d-%H_%M_%S")

Copilot uses AI. Check for mistakes.
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