Skip to content

Move FastAPI tests to third-party workflow#11164

Merged
sydney-runkle merged 1 commit intomainfrom
adapt-fastapi-ci
Dec 20, 2024
Merged

Move FastAPI tests to third-party workflow#11164
sydney-runkle merged 1 commit intomainfrom
adapt-fastapi-ci

Conversation

@Viicos
Copy link
Copy Markdown
Member

@Viicos Viicos commented Dec 20, 2024

Change Summary

Part of #11160

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@github-actions github-actions Bot added the relnotes-fix Used for bugfixes. label Dec 20, 2024
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Dec 20, 2024

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: bfc2efb
Status: ✅  Deploy successful!
Preview URL: https://ccab206e.pydantic-docs.pages.dev
Branch Preview URL: https://adapt-fastapi-ci.pydantic-docs.pages.dev

View logs

@Viicos Viicos mentioned this pull request Dec 20, 2024
16 tasks
Comment thread tests/test_fastapi.sh
Comment on lines -18 to -23
# This may be necessary if we make low-consequence changes to pydantic, such as minor changes the details of a JSON
# schema or the contents of a ValidationError
#
# To skip a specific test, add '--deselect path/to/test.py::test_name' to the end of this command
#
# To update the list of deselected tests, remove all deselections, run the tests, and re-add any remaining failures
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we loose the ability to skip failing tests. But the pytest command that we run in the third-party workflow can still be adapted to deselect tests.

And more generally, it might be that we get failing third-party tests if the main branch of the projects we test is broken. If this happens too often, we can checkout a specific revision instead (but we'll have to remind ourselves to update the revision regularly).

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Dec 20, 2024

CodSpeed Performance Report

Merging #11164 will improve performances by 5.89%

Comparing adapt-fastapi-ci (bfc2efb) with main (7b9561f)

Summary

⚡ 2 improvements
✅ 44 untouched benchmarks

Benchmarks breakdown

Benchmark main adapt-fastapi-ci Change
test_efficiency_with_highly_nested_examples 752.5 µs 716 µs +5.1%
test_simple_model_validation[__init__] 42.1 µs 39.7 µs +5.89%

@Viicos Viicos closed this Dec 20, 2024
@Viicos Viicos reopened this Dec 20, 2024
@github-actions
Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

Copy link
Copy Markdown
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@sydney-runkle sydney-runkle merged commit f958753 into main Dec 20, 2024
@sydney-runkle sydney-runkle deleted the adapt-fastapi-ci branch December 20, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes-fix Used for bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants