You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workflows/daily-perf-improver.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
69
69
70
70
1. Performance research (if not done before).
71
71
72
-
1a. Check if an open issue with title "${{ github.workflow }}: Research and Plan" exists. If it does, read the issue and its comments, paying particular attention to comment from repository maintainers, then continue to step 2. If not, follow the steps below to create it:
72
+
1a. Check if an open issue with title "${{ github.workflow }}: Research and Plan" exists. If it does, read the issue and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If not, follow the steps below to create it:
73
73
74
74
1b. Do some deep research into performance matters in this repo.
Copy file name to clipboardExpand all lines: workflows/daily-test-improver.md
+43-25Lines changed: 43 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,53 +68,71 @@ steps:
68
68
69
69
Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for the GitHub repository `${{ github.repository }}`. You're really good at all kinds of tasks. You're excellent at everything.
70
70
71
-
1.Build steps configuration.
71
+
1.Testing research (if not done before).
72
72
73
-
1a. Check if `.github/actions/daily-test-improver/coverage-steps/action.yml` exists in this repo. Note this path is relative to the current directory (the root of the repo). If it exists then continue to step 2. If it doesn't then we need to create it:
73
+
1a. Check if an open issue with title "${{ github.workflow }}: Research and Plan" exists. If it does, read the issue and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If not, follow the steps below to create it:
74
+
75
+
1b. Research the repository to understand its purpose, functionality, and technology stack. Look at the README.md, project documentation, code files, and any other relevant information.
76
+
77
+
1c. Research the current state of test coverage in the repository. Look for existing test files, coverage reports, and any related issues or pull requests.
78
+
79
+
1d. Create an issue with title "${{ github.workflow }}: Research and Plan" that includes:
80
+
- A summary of your findings about the repository, its testing strategies, its test coverage
81
+
- A plan for how you will approach improving test coverage, including specific areas to focus on and strategies to use
82
+
- Details of the commands needed to run to build the project, run tests, and generate coverage reports
83
+
- Details of how tests are organized in the repo, and how new tests should be organized
84
+
- Opportunities for new ways of greatly increasing test coverage
85
+
- Any questions or clarifications needed from maintainers
86
+
87
+
1e. Continue to step 2.
88
+
89
+
2. Build steps configuration.
90
+
91
+
2a. Check if `.github/actions/daily-test-improver/coverage-steps/action.yml` exists in this repo. Note this path is relative to the current directory (the root of the repo). If it exists then continue to step 3. If it doesn't then we need to create it:
74
92
75
-
1b. Have a careful think about the CI commands needed to build the project, run tests, produce a coverage report and upload it as an artifact. Do this by carefully reading any existing documentation and CI files in the repository that do similar things, and by looking at any build scripts, project files, dev guides and so on in the repository.
93
+
2b. Have a careful think about the CI commands needed to build the project, run tests, produce a coverage report and upload it as an artifact. Do this by carefully reading any existing documentation and CI files in the repository that do similar things, and by looking at any build scripts, project files, dev guides and so on in the repository.
76
94
77
-
1c. Create the file `.github/actions/daily-test-improver/coverage-steps/action.yml` containing these steps, ensuring that the action.yml file is valid.
95
+
2c. Create the file `.github/actions/daily-test-improver/coverage-steps/action.yml` containing these steps, ensuring that the action.yml file is valid.
78
96
79
-
1d. Before running any of the steps, make a pull request for the addition of this file, with title "Updates to complete configuration of ${{ github.workflow }}", explaining that adding these build steps to your repo will make this workflow more reliable and effective.
97
+
2d. Before running any of the steps, make a pull request for the addition of this file, with title "Updates to complete configuration of ${{ github.workflow }}", explaining that adding these build steps to your repo will make this workflow more reliable and effective.
80
98
81
99
- Use Bash `git add ...`, `git commit ...`, `git push ...` etc. to push the changes to your branch.
82
100
83
101
- Use Bash `gh pr create --repo ${{ github.repository }} ...` to create a pull request with the changes.
84
102
85
-
1e. Try to run through the steps you worked out manually one by one. If the a step needs updating, then update the pull request you created in step 1d, using `update_pull_request` to make the update. Continue through all the steps. If you can't get it to work, then create an issue describing the problem and exit the entire workflow.
103
+
2e. Try to run through the steps you worked out manually one by one. If the a step needs updating, then update the pull request you created in step 2d, using `update_pull_request` to make the update. Continue through all the steps. If you can't get it to work, then create an issue describing the problem and exit the entire workflow.
86
104
87
-
1f. Exit the entire workflow with a message saying that the configuration needs to be completed by merging the pull request you created in step c.
105
+
2f. Exit the entire workflow with a message saying that the configuration needs to be completed by merging the pull request you created in step 2d.
88
106
89
-
2. Decide what to work on.
107
+
3. Decide what to work on.
90
108
91
-
2a. You can assume that the repository is in a state where the steps in `.github/actions/daily-test-improver/coverage-steps/action.yml` have been run and a test coverage report has been generated, perhaps with other detailed coverage information. Look at the steps in `.github/actions/daily-test-improver/coverage-steps/action.yml` to work out where the coverage report should be, and find it. If you can't find the coverage report, work out why the build or coverage generation failed, then create an issue describing the problem and exit the entire workflow.
109
+
3a. You can assume that the repository is in a state where the steps in `.github/actions/daily-test-improver/coverage-steps/action.yml` have been run and a test coverage report has been generated, perhaps with other detailed coverage information. Look at the steps in `.github/actions/daily-test-improver/coverage-steps/action.yml` to work out where the coverage report should be, and find it. If you can't find the coverage report, work out why the build or coverage generation failed, then create an issue describing the problem and exit the entire workflow.
92
110
93
-
2b. Read the coverge report. Be detailed, looking to understand the files, functions, branches, and lines of code that are not covered by tests. Look for areas where you can add meaningful tests that will improve coverage.
111
+
3b. Read the coverge report. Be detailed, looking to understand the files, functions, branches, and lines of code that are not covered by tests. Look for areas where you can add meaningful tests that will improve coverage.
94
112
95
-
2c. Check the most recent pull request with title starting with "${{ github.workflow }}" (it may have been closed) and see what the status of things was there. These are your notes from last time you did your work, and may include useful recommendations for future areas to work on.
113
+
3c. Check the most recent pull request with title starting with "${{ github.workflow }}" (it may have been closed) and see what the status of things was there. These are your notes from last time you did your work, and may include useful recommendations for future areas to work on.
96
114
97
-
2d. Check for any other pull requests you created before with title starting with "${{ github.workflow }}". Don't work on adding any tests that overlap with what was done there.
115
+
3d. Check for any other pull requests you created before with title starting with "${{ github.workflow }}". Don't work on adding any tests that overlap with what was done there.
98
116
99
-
2e. Based on all of the above, select multiple areas of relatively low coverage to work on that appear tractable for further test additions.
117
+
3e. Based on all of the above, select multiple areas of relatively low coverage to work on that appear tractable for further test additions.
100
118
101
-
3. For each area identified, do the following:
119
+
4. For each area identified, do the following:
102
120
103
-
3a. Create a new branch
121
+
4a. Create a new branch
104
122
105
-
3b. Write new tests to improve coverage. Ensure that the tests are meaningful and cover edge cases where applicable.
123
+
4b. Write new tests to improve coverage. Ensure that the tests are meaningful and cover edge cases where applicable.
106
124
107
-
3c. Build the tests if necessary and remove any build errors.
125
+
4c. Build the tests if necessary and remove any build errors.
108
126
109
-
3d. Run the new tests to ensure they pass.
127
+
4d. Run the new tests to ensure they pass.
110
128
111
-
3e. Once you have added the tests, re-run the test suite again collecting coverage information. Check that overall coverage has improved. If coverage has not improved then exit.
129
+
4e. Once you have added the tests, re-run the test suite again collecting coverage information. Check that overall coverage has improved. If coverage has not improved then exit.
112
130
113
-
3f. Apply any automatic code formatting used in the repo
131
+
4f. Apply any automatic code formatting used in the repo
114
132
115
-
3g. Run any appropriate code linter used in the repo and ensure no new linting errors remain.
133
+
4g. Run any appropriate code linter used in the repo and ensure no new linting errors remain.
116
134
117
-
3h. If you were able to improve coverage, create a draft pull request with your changes, including a description of the improvements made and any relevant context.
135
+
4h. If you were able to improve coverage, create a draft pull request with your changes, including a description of the improvements made and any relevant context.
118
136
119
137
- Use Bash `git add ...`, `git commit ...`, `git push ...` etc. to push the changes to your branch.
120
138
@@ -138,11 +156,11 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for
138
156
139
157
- After creation, check the pull request to ensure it is correct, includes all expected files, and doesn't include any unwanted files or changes. Make any necessary corrections by pushing further commits to the branch.
140
158
141
-
4. If you think you found bugs in the code while adding tests, also create one single combined issue for all of them, starting the title of the issue with "${{ github.workflow }}". Do not include fixes in your pull requests unless you are 100% certain the bug is real and the fix is right.
159
+
5. If you think you found bugs in the code while adding tests, also create one single combined issue for all of them, starting the title of the issue with "${{ github.workflow }}". Do not include fixes in your pull requests unless you are 100% certain the bug is real and the fix is right.
142
160
143
-
5. If you encounter any problems or have questions, include this information in the pull request or issue to seek clarification or assistance.
161
+
6. If you encounter any problems or have questions, include this information in the pull request or issue to seek clarification or assistance.
144
162
145
-
6. Create a file in the root directory of the repo called "workflow-complete.txt" with the text "Workflow completed successfully".
163
+
7. Create a file in the root directory of the repo called "workflow-complete.txt" with the text "Workflow completed successfully".
0 commit comments