New buildbot ignores sub-module branches #88432

Closed
opened 2021-05-20 16:23:15 +02:00 by Julian Eisel · 15 comments

Some branches (including one used in the Spright Fright production) require a certain add-ons branch to be used. So far the way to do this was by setting a submodule branch in Blender's make update. E.g. like here {https://developer.blender.org/diffusion/B/browse/asset-browser-poselib/build_files/utils/make_update.py$177-183}:

submodules = [
	        ("release/scripts/addons", "asset-browser-poselib"),
	        ("release/scripts/addons_contrib", branch),
	        ("release/datafiles/locale", branch),
	        ("source/tools", branch),
	    ]

The new buildbot doesn't checkout the branch as specified anymore, meaning the builds might not be usable for testing.

In the Blender Studio, animators use this to work with the asset-browser-poselib branch, which is developed in partnership with Spright Fright production.

Some branches (including one used in the Spright Fright production) require a certain add-ons branch to be used. So far the way to do this was by setting a submodule branch in Blender's `make update`. E.g. like here {https://developer.blender.org/diffusion/B/browse/asset-browser-poselib/build_files/utils/make_update.py$177-183}: ```lang=py submodules = [ ("release/scripts/addons", "asset-browser-poselib"), ("release/scripts/addons_contrib", branch), ("release/datafiles/locale", branch), ("source/tools", branch), ] ``` The new buildbot doesn't checkout the branch as specified anymore, meaning the builds might not be usable for testing. In the Blender Studio, animators use this to work with the `asset-browser-poselib` branch, which is developed in partnership with Spright Fright production.
Author

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
James Monteath was assigned by Julian Eisel 2021-05-20 16:23:43 +02:00

I actually fixed an issue regarding how it this was done as it was not working correctly.
I will add a config to override the default being master.
I will run test on your this specific branch.

You can check in the logs in the update-code step too verify that it was done correctly.

I actually fixed an issue regarding how it this was done as it was not working correctly. I will add a config to override the default being master. I will run test on your this specific branch. You can check in the logs in the `update-code` step too verify that it was done correctly.

Do you want this branch to be nightly also ?

Do you want this branch to be nightly also ?

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Author

Thanks @ponderz! I can't spend time on this right now unfortunately, but will keep an eye on things.

In #88432#1163474, @ponderz wrote:
Do you want this branch to be nightly also ?

That would be great! (Not sure if the builds are triggered manually currently. I think @ZedDB handles that.)

Thanks @ponderz! I can't spend time on this right now unfortunately, but will keep an eye on things. > In #88432#1163474, @ponderz wrote: > Do you want this branch to be nightly also ? That would be great! (Not sure if the builds are triggered manually currently. I think @ZedDB handles that.)

I guess these could be updated nightly, yes.
This way the artists at the studio don't have to manually trigger builds (that can take a long time to finish for windows)

I guess these could be updated nightly, yes. This way the artists at the studio don't have to manually trigger builds (that can take a long time to finish for windows)

For branch this output is expected.
Can be reviewed in the update-code step

Updating Submodules

git fetch origin
git checkout asset-browser-poselib
Switched to branch 'asset-browser-poselib'
Your branch is up to date with 'origin/asset-browser-poselib'.
git pull --rebase origin asset-browser-poselib
From git.blender.org:blender-addons
 * branch              asset-browser-poselib -> FETCH_HEAD
Already up to date.
Current branch asset-browser-poselib is up to date.
git pull --rebase origin master
From git.blender.org:blender-addons-contrib
 * branch            master     -> FETCH_HEAD
Already up to date.
Current branch master is up to date.
git pull --rebase origin master
From git.blender.org:blender-translations
 * branch            master     -> FETCH_HEAD
Already up to date.
Current branch master is up to date.
git pull --rebase origin master
From git.blender.org:blender-dev-tools
 * branch            master     -> FETCH_HEAD
Already up to date.
For branch this output is expected. Can be reviewed in the `update-code` step ``` Updating Submodules git fetch origin git checkout asset-browser-poselib Switched to branch 'asset-browser-poselib' Your branch is up to date with 'origin/asset-browser-poselib'. git pull --rebase origin asset-browser-poselib From git.blender.org:blender-addons * branch asset-browser-poselib -> FETCH_HEAD Already up to date. Current branch asset-browser-poselib is up to date. git pull --rebase origin master From git.blender.org:blender-addons-contrib * branch master -> FETCH_HEAD Already up to date. Current branch master is up to date. git pull --rebase origin master From git.blender.org:blender-translations * branch master -> FETCH_HEAD Already up to date. Current branch master is up to date. git pull --rebase origin master From git.blender.org:blender-dev-tools * branch master -> FETCH_HEAD Already up to date. ```

Added subscriber: @brecht

Added subscriber: @brecht

Can't we just use the make_update.py from the Blender repo, that auto-detects branches?

There are some cases where it makes sense to move code into the buildbot repo, but this one doesn't make sense to me.

Can't we just use the `make_update.py` from the Blender repo, that auto-detects branches? There are some cases where it makes sense to move code into the buildbot repo, but this one doesn't make sense to me.

Can't do that.
That script did not work in certain circumstances.

We could eventually merge it back in once we proper configurations that can drive it.

Can't do that. That script did not work in certain circumstances. We could eventually merge it back in once we proper configurations that can drive it.

I do need to explain a bit more though.
But that's lengthy discussion.

I do need to explain a bit more though. But that's lengthy discussion.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

The approach has been reworked as discussed with @brecht
Will update Wiki with details during deployment today.

The approach has been reworked as discussed with @brecht Will update Wiki with details during deployment today.

Wiki updated with summary of changes.

Wiki updated with summary of changes.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
5 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/blender-buildbot#88432
No description provided.