dialogos-project / dialogos

The DialogOS dialog system.
https://www.dialogos.app
GNU General Public License v3.0
20 stars 7 forks source link

artifacts built in the wrong order by jitpack #191

Open akoehn opened 5 years ago

akoehn commented 5 years ago

The dialogos-alexa plugin failed to build for both 2.1.0 and 2.1.1 because when jitpack tried to build it, dialogos was not available in the same version. We need to make sure that everything is in place before building takes place.

I would have guessed that everything is nicely tagged in the git repos, but it seems like it was not. @alexanderkoller, can you make an educated guess as to what went wrong?

I fixed for now it by removing the failed builds on jitpack. (BTW, 2.1.0 still fails, see the build log, but as it works with 2.1.1, I am not opening a new issue for that)

timobaumann commented 5 years ago

could this be related to the ordering of dependencies in the build.gradles?

akoehn commented 5 years ago

Not really. jitpack build everything on demand and as long as there is no demand for dialogos-2.1.2 before there is a git tag 2.1.2 for dialogos, this problem should not arise.

If I understand correctly, the problem is triggered as follows:

timobaumann commented 5 years ago

then it's the ordering of tagging/building/pushing the tag to github in the build script?

timobaumann commented 5 years ago

my guess for what really happens (in the terminology from above):

maybe our make-release.py script should build some sort of dummy package that depends on dialogos-2.1.2 from jitpack? that way we ensure that at least stuff on jitpack that directly depends on dialogos will build correctly.

akoehn commented 5 years ago

Interesting hypothesis, might be correct!

maybe our make-release.py script should build some sort of dummy package that depends on dialogos-2.1.2 from jitpack?

That should be possible with a simple wget to https://jitpack.io/com/github/dialogos-project/dialogos/X.X.X/dialogos-X.X.X.pom.

timobaumann commented 5 years ago

hard to test though, because jitpack says "Tag builds older than 7 days can't be deleted."

timobaumann commented 4 years ago

@akoehn , can you add the wget to the release-script so that we can monitor whether this works in the future?

akoehn commented 4 years ago

Not until in about a week or so :-/