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

[backport][3.8][PR#5809] Integrate autobahn tests with pytest #6074

Merged
merged 1 commit into from
Oct 19, 2021
Merged

[backport][3.8][PR#5809] Integrate autobahn tests with pytest #6074

merged 1 commit into from
Oct 19, 2021

Conversation

anesabml
Copy link
Contributor

What do these changes do?

Automate running autobahn test suite.

Are there changes in behavior for the user?

No.

Related issue number

#4247

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@anesabml anesabml changed the title Integrate autobahn tests with pytest (#5809) [backport][3.8][PR#5809] Integrate autobahn tests with pytest Oct 11, 2021
* Integrate autobahn tests with pytest

* Fix docker compose file paths

* Fix typo in CHANGES file

* Fix add python-on-whales dependency to .in file instead of .txt

* Use pathlib instead of os

* Use buildx instead of compose build

* Regenerate dev requirements

* Rename changes file

* Use request fspath instead of hard coded path

* Create a sepearte builder when building aiohttp

* Use subprocess instead of python-on-whales

* Extract failed tests and make assertions on them

* Fix lint issues

* Fix fixture scope

* Add ports to docker-compose files

* Add wait-for-it package

* Use xfail instead of fail

* Use wstest cmd tool instead of the docker image

* Fix lint issues

* Use assert statement with custom output

Co-authored-by: Sviatoslav Sydorenko <[email protected]>

* Code cleanup

* Use docker instead of docker-compose

* Add xfail decorator

* Add tmp_path

* Remove gitignore

* Skip tests only on macOS

* Check if docker is available

* Regenerate dev.txt

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
(cherry picked from commit a45c7c5)
@anesabml
Copy link
Contributor Author

python-on-whales requires python 3.7 and above.

@webknjaz
Copy link
Member

Oh, so it may need to be reimplemented with pure subprocess calls probably.

@asvetlov asvetlov merged commit 4642333 into aio-libs:3.8 Oct 19, 2021
@webknjaz
Copy link
Member

@asvetlov I'd rather not merge things into 3.8 that break tests. Especially while I'm working on recovering the broken CI.

@webknjaz
Copy link
Member

Hotfixed by #6103.

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