Update "Commiting Test Data" section to include build bot testing #77
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-developer-docs#77
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Alaska/blender-developer-docs:test-updates-guide"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit updates the "Commiting Test Data" section to include
information on how to test that your tests are working using the
build bot before commiting the changes to main.
Currently WIP due to the TODO. Input from others would be helpful here.
@ -165,2 +176,2 @@
cd ../..
git push origin main
TODO: Add commands?
I personally haven't done merging/squishing of branches into main so I'm not sure the correct approach here.
There should be something like
And then land the PR from the Gita interface.
Maybe would be good to have @weizhen, @Sirgienko, or @LukasStockner have a look. They were working with tests more recently than me.
The steps looks correct to me, but does it need to be a standard approach? My thought was to have an additional subsection, for people who need/want to guarantee that the tests pass. It might not always be necessary.
@ -158,1 +161,4 @@
git checkout -B add-x-tests-blender
git commit sourcefile1 sourcefile2 tests/data
git push me add-x-tests-blender
# then create a pull request for this branch
This should not be part of the code block, but a paragraph, preferably linked to https://developer.blender.org/docs/handbook/contributing/pull_requests/#create-a-pull-request
@ -159,3 +165,3 @@
```
Check everything is ok, and push to both repositories.
Ensure your tests pass on the build bot commenting `@blender-bot build`,
Should be in the same paragraph as "create a pull request". We can also add a link to the bot https://projects.blender.org/infrastructure/blender-bot/src/branch/main/README.md
@ -166,0 +179,4 @@
git push origin main
```
Preferably straight after pushing the updated tests, update
It's more straightforward to merge your PR from gitea, that would also close the PR.
Wrong button
I've made the requested changes and split the build bot testing out into a subsection.
A lot of information is repeated in the subsection, and I'm having a difficult time figure out what I can remove to compact it, while keeping the steps as clear as possible.
If you're okay with repeated information, then say so, if not feel free to give some suggestions on what could be removed.
I made some changes, mainly
#
should be interpreted as a comment of the next line, not additional steps that need to be done, so I have reverted the..
change. It's not very clear but I think it's better than ambiguous syntax.The repeated information with the main section is fine with me. I also changed some wording, if it reads well to me we can push it.
WIP: Update "Commiting Test Data" section to include build bot testingto Update "Commiting Test Data" section to include build bot testingSeems good. Thanks for the initiative for writing the info down, and iterating on the wording!
Think we can just land the PR and re-iterate on whatever we might have missed as a follow-up?