-
-
Notifications
You must be signed in to change notification settings - Fork 394
Add test-backend from Zulip server. #123
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
base: main
Are you sure you want to change the base?
Conversation
3b8486b
to
2b4a438
Compare
d49ffbe
to
4335b09
Compare
@rht what's the thinking behind running the Zulip server's backend tests here? |
This is to automate the integration test to check for PRs which require such, such as #18. The caveat is that it will slow down the aggregate CI test time. The other option is to add this commit only for the PRs where this test is needed, so the test is run once only. The integration test will be required once again to test the stage 2 of Slack data import. |
@derAnfaenger @eeshangarg what are your thoughts on this? |
I think this might actually be a fine way to test for changes here that impact the integration with the backend... |
This is really cool, but it brings up the effective testing time from 1 minute to 11 minutes and goes over the magic five test jobs. Ultimately, I think we should merge this, but if it isn't urgent, maybe with a tweak similar to facebook/react#2000 ? Here, Travis checks the diff of the changes before running a suite - this would allow us to run the backend tests iff e.g. |
@derAnfaenger agreed on the test duration and the limitation of the parallel tests ! Should the test be triggered in main only when https://github.com/zulip/python-zulip-api/tree/master/zulip/zulip is patched? I really need this to test the slack data import PR (this (#908) has been in the roadmap for ages who knows when). |
Testing when |
@rht would it be sufficient in this case to just run |
Ahh, right, right, let me check how long the test takes with just |
50bde01
to
54df05a
Compare
7fbaa7a
to
6e55581
Compare
@rht what's the state of this? We're possibly doing some iterations on the api code in the next days, so it'd be good to have the api tests set up by then. If you're working on other things right now, feel free to tell and I'd be happy to finish this :) |
The only blocker is that I was testing between various Git clone ssh paths:
|
Most likely wrong URL formatting. If you have any idea on what's going on, and unblock this, I'm totally up for this. |
I will have to update this to use the circleci script. |
We can also mitigate the performance impact here by having the tool only run the subset of backend tests that's related to the subsystem. |
Heads up @rht, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
@PIG208 I think this would be a good effort to pick up. We probably won't end up reusing much of the exact code here, because we've moved to GitHub Actions since then, but I do think it'd be really nice if we can run the relevant part of the server's test suites against new python-zulip-api commits in CI. The main things I'm imagining are:
but once we have this setup, we can add other things as well. |
Also fixes a bug where the match variable `m` wasn't being reset in the unlikely event that the message was completely empty.
Also fixes a bug where the match variable `m` wasn't being reset in the unlikely event that the message was completely empty.
test prworks!