Following up on this.
Hi there,
- This process will not generate the delta for you, this will return only existing data. If, for some reasons, deltas are disabled as explained here https://www.balena.io/docs/learn/deploy/delta, the
getDeltamethod will returnnull. Just for info, we’ve opened an internal discussion to create a delta manually. - to compare multiple commits, you just need to use the process shared above by my colleague. The above process is to have the delta of a single release. Calculate the delta size of each release and then make the difference between the results obtained.
to get all release informations with commitId you can run :
await sdk.pine.get({
resource: 'release',
options: {
$filter: {
belongs_to__application: <APP_ID>
}
}
})
does this answer your questions? if you prefer I can send you a full example.
I just need to compare the size of two arbitrary commits.
I don’t need to compare multiple commits at once.
In most cases, I won’t have deltas calculated between the two arbitrary commits.
I need to be able to trigger the delta calculation in some way.
Putting desired starting commit on a device then pushing the desired ending commit to the same device is not a satisfactory option. It takes much too long and could interrupt development work.
Is there a way of calculating delta for supervisor versions instead of releases?