-
Notifications
You must be signed in to change notification settings - Fork 1
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
Run integration tests on released versions as well #63
Comments
@SebastianSchildt Fixing this behavior works against master or against latest but it can't be "fixed" for both :D We could of course remove the tests as we did here but I don't think that's the best solution :D |
This is a hard question. First idea: Could we configure it as such, that latest ins mandatory but the "master" test can not block the merge? That way whatever you do, defintely shoudl work with the latest released version, and in the optimal case towards master as well, i.e. when introducting a breaking change in databroker, with the intent to release, you better make sure master works as well. I know this has corner cases, and in case of intended breaking changes might need to have two code paths in the library at some point for backwards compatibility, but it still seems like a reasonable approach, until it fails us :) I certain cases (assume we ADD functionality) we might need to make test cases a bit more intelligent, that they check which version they run agains, and skip tests of fancy new features when running agains an older version |
While building the app on GitLab I saw some tasks marked as "allowed-to-fail". If there is some similar functionality on GitHub it should be a no-brainer. A short google for it (actions/runner#2347), shows that there only seems to be "continue-on-error", which will simply mark the failing task green / as succeeded and therefore hides the real result of the test. Might be possible, but probably takes some time of try-and-error and fiddling around to make it work.
Yes, this sounds like the correct way to do it, however for this we need to know the version of the Databroker from the Databroker itself (on connection, via separate api, ...). Is this already possible or something which needs to be implemented on Databroker side? |
In recent releases (0.4.1)
|
To just throw this question in here: First of all: Does it make sense to adapt our PRs to test against databroker:latest instead of master? Because like @SebastianSchildt said this is what people actually use. With this in mind: Not sure if we need this really on a PR level. Because it feels more like a warning system that the current unstable "master:Databroker" is not compatible with our main:SDK or broke something. I agree this would be interesting to see this warning on our "SDK:main" branch but on PR it feels a bit off because one day the PR may be green and on a re-run it shows a warning. As soon as we know that the current "SDK:main" throws a warning we could create a ticket to adapt the SDK to breaking changes. But this would normally not happen in the current PR because the change will be out of scope most likely and only confuses the PR developer. So the proposed solution:
My 2 cents. This also fixes the mentioned issue. |
Tickets were created. This discussion can be closed. FYI @SebastianSchildt |
See #55 for discussion.
Currently CI runs against databroker:master
That is good to check whether we (or databroker) did break something, but we should additionally at lest also test aginst ":latest" which is the latest release, as this is what people should/could expect to work
The text was updated successfully, but these errors were encountered: