gemini refactored runtest.py#4821
Conversation
|
Nit: |
|
If the model is to improve the flow, it does that, but now we've got a |
|
The CI error is that it oversimplified one case. Old code: # did we end up with any tests?
if not tests:
sys.stderr.write(parser.format_usage() + """
error: no tests matching the specification were found.
See "Test selection options" in the help for details on
how to specify and/or exclude tests.
""")
sys.exit(1)New code: if not tests:
sys.stderr.write("error: no tests matching the specification were found.\n")
sys.exit(1)Not entirely sure why it would want to do that... |
And the answer is, after the refactoring, the |
|
From the plan it proposed:
It didn't do this, and I'm fine with that. I did experiment once with using the |
Yes. I only asked it do do phase 1 and 2.
Asking gemini to refactor to allow that to stay the same. |
What's this from? |
|
After refactoring here's the size in LOC for each function in runtest.py |
…as well as GEMINI.md and CONTEXT.md). Most LLM's will read AGENTS.md for initial context for the project
pulling down the patch and applying it ( |
|
Although only minor changes, I'd call this round an improvement. |
…rings Updated all docstrings in runtest.py to be Sphinx-compatible. Renamed report_results function to display_results. Assisted-by: Gemini Signed-off-by: William Deegan <bill@baddogconsulting.com>
Updated all docstrings in runtest.py from Sphinx-compatible to Google style. Assisted-by: Gemini Signed-off-by: William Deegan <bill@baddogconsulting.com>
Experimenting with Gemini refactoring runtest.py
I asked it to update the code to current best python practices.
Also added config file to get gemini to use the AGENTS.md (and not just gemini.md).
In theory most LLM's should read this now or at some point in the future.
Added an AGENTS.md file which tells LLMs info about our source tree and practices.
Contributor Checklist:
CHANGES.txtandRELEASE.txt(and read theREADME.rst).