Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on all branches #47

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Build on all branches #47

merged 1 commit into from
Feb 16, 2024

Conversation

volodymyrss
Copy link
Member

No description provided.

@dsavchenko
Copy link
Member

What is the purpose?
Probably better to do this for PR (also labeled?)

@volodymyrss
Copy link
Member Author

What is the purpose? Probably better to do this for PR (also labeled?)

Well, the previous one just did not build it on master, only on main, so it was not complete.
This way it will build it for every commit on every branch, including PR. Practically in normal use it would be identical to build on PR and also master.
Why would labelled help? It does not rely on particular labels so there is no change when relabel and no reason to rebuild.

@dsavchenko
Copy link
Member

I mean, I'm not sure we really need the container for every push.
For example, when we change the galaxy functionality, it will not affect the mmoda deployment (container for galaxy is being built differently)

@volodymyrss
Copy link
Member Author

I mean, I'm not sure we really need the container for every push. For example, when we change the galaxy functionality, it will not affect the mmoda deployment (container for galaxy is being built differently)

I am not sure I understand, building container for every push was merged in there which you approved?

If the package changes, containers which use it should be rebuilt. Or you suggest to have different versions of this package in mmoda and galaxy bot versions?

@dsavchenko
Copy link
Member

Pushing to master is not so often, it's ok.
But there is no reason to rebuild the container for mmoda functionality with every push to the branch where I work on galaxy part.

@volodymyrss
Copy link
Member Author

Pushing to master is not so often, it's ok. But there is no reason to rebuild the container for mmoda functionality with every push to the branch where I work on galaxy part.

As long as it is part of this project, the branch will be merged eventually and will end up installed in mmoda bot container too. So it's important that the container build passes, so it functions as a test. If you are making many small commits and do not want to see failures you can exclude it temporarily.

If the galaxy feature is so divergent that it should not be part of the mmoda instance of oda-bot, it can be moved out of this repository. Although I think it's rather related it makes sense that it is part if of.

@dsavchenko
Copy link
Member

As long as it is part of this project, the branch will be merged eventually and will end up installed in mmoda bot container too. So it's important that the container build passes, so it functions as a test. If you are making many small commits and do not want to see failures you can exclude it temporarily.

OK, building container as a kind of test makes sense. Temporarily excluding branch could be an option. I will then probably propose the other way around, kind of "no-container" label instead of "build-container" label. Will do in galaxy branch.

@volodymyrss volodymyrss merged commit 1aec36e into master Feb 16, 2024
3 checks passed
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.

2 participants