Skip to content

Conversation

@bigmstone
Copy link
Contributor

Runners now get their version dynamically from st2common's version variable.

@Kami
Copy link
Member

Kami commented Jun 28, 2018

That works for me.

We just need to be careful if we ever publish runner packages to PyPi that we also publish st2common.

I assume we plan to merge this post v2.8.0, or?

nmaludy added a commit to nmaludy/st2 that referenced this pull request Jun 28, 2018
@Kami
Copy link
Member

Kami commented Jun 29, 2018

I wonder if that will break the wheel build changes you made in StackStorm/st2-packages#572.

I can merge it and see. If it breaks, I can revert and and we find a better approach for v2.9.0.

@Kami Kami added this to the 2.8.0 milestone Jun 29, 2018
@Kami Kami modified the milestones: 2.8.0, 2.9.0 Jun 29, 2018
@Kami
Copy link
Member

Kami commented Jun 29, 2018

To be on the safe side and not delay release any longer, I'm tagging this as v2.9.0.

@Kami
Copy link
Member

Kami commented Jul 9, 2018

@bigmstone It looks like the build is failing.

It's a chicken and the egg problem (st2common is not present), so this needs more work.

If we can't get this approach to work (e.g. we encounter cyclic dependency issue) we can also go with the approach where we bump / set version in our release workflow.

@Kami
Copy link
Member

Kami commented Jul 9, 2018

Looking at the build failure and package build pipeline - we can probably make it work by adding st2common as a dependency for all the runner packages or maybe by injecting st2common as a dependency into every runner package during the build, similar as we do for st2client - https://github.com/StackStorm/st2-packages/blob/306b826fde833f1ee9e730974f2953a4fde0e270/packages/st2/Makefile#L110.

We just need to be careful it doesn't introduce some kind of cyclic dependency and weird issues down the road.

If possible, I would prefer first approach since it's more explicit and transparent compared to injecting a dependency during build time.

@Kami Kami mentioned this pull request Jul 9, 2018
7 tasks
@Kami
Copy link
Member

Kami commented Jul 12, 2018

@bigmstone https://circleci.com/gh/StackStorm/st2/8002?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

So as I assumed, the problem is indeed a cyclic dependency and this change - StackStorm/st2-packages#572

We have st2 depending on stackstorm-runner-orchestra and runner itself depends on st2common which causes a cyclic dependency.

Perhaps the best way might indeed be to simply update those versions inside the release workflows. We can probably do the same as we do for st2client - read __version__ from st2common and set it inside each runner __init___.__version__ attribute.

@Kami
Copy link
Member

Kami commented Jul 13, 2018

Superseded by #4239.

@Kami Kami closed this Jul 13, 2018
@arm4b arm4b deleted the issue-4210/runners-version branch July 13, 2018 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants