Skip to content

build: limit supported Connexion versions - #185

Merged
uniqueg merged 1 commit into
docs/add-readthedocs-configfrom
build/readthedocs-add-config
Dec 2, 2023
Merged

uniqueg merged 1 commit into
docs/add-readthedocs-configfrom
build/readthedocs-add-config

Conversation

@alohamora

@alohamora alohamora commented Nov 30, 2023 •

Copy link
Copy Markdown
Contributor

Description

This PR adds the following changes

  1. upper limit for connexion requirement set as (3.0.0) i.e connexion dependency now has the following version specifier connexion>=2.11.2,<3.0.0. This change is added because foca is not compatible with the new major version release of connexion, and until that is fixed, we need to limit the requirement specifier for foca as all other PR builds are failing.

The failure screenshot with the latest version of connexion

[2023-11-30 16:56:26,255: INFO    ] Log formatting configured. [foca.foca]
[2023-11-30 16:56:26,255: INFO    ] Configuration file 'config.yaml' parsed. [foca.foca]
Traceback (most recent call last):
  File "app.py", line 25, in <module>
    main()
  File "app.py", line 13, in main
    app = foca.create_app()
  File "/Users/adityaarora/opt/miniforge3/envs/cloud-registry/lib/python3.8/site-packages/foca/foca.py", line 94, in create_app
    cnx_app = create_connexion_app(self.conf)
  File "/Users/adityaarora/opt/miniforge3/envs/cloud-registry/lib/python3.8/site-packages/foca/factories/connexion_app.py", line 25, in create_connexion_app
    app = App(
TypeError: __init__() got an unexpected keyword argument 'skip_error_handlers'

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation (or documentation does not need to be updated)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have not reduced the existing code coverage

@alohamora alohamora changed the title build: add readthedocs config and requirements for sphinx build: add readthedocs config and freeze requirement for connexion Nov 30, 2023
@codecov

codecov Bot commented Nov 30, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d4c1280) 100.00% compared to head (4bc0518) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #185   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines          978       978           
=========================================
  Hits           978       978           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @alohamora - changes are fine. But can you please create two PRs out of this? One build: limit supported Connexion versions and the other docs: add Read the Docs config file?

Btw, our PR titles should have 50 chars or less (including the commit type keyword according to Angular conventions), the message/info part should start with a lower-case verb in imperative form, and the title should otherwise comply with the Conventional Commits specs. The last two or fine here, but the message is way too long.

@alohamora alohamora changed the title build: add readthedocs config and freeze requirement for connexion build: limit supported Connexion versions Dec 2, 2023
@alohamora
alohamora changed the base branch from dev to docs/add-readthedocs-config December 2, 2023 12:49
@alohamora

alohamora commented Dec 2, 2023 •

Copy link
Copy Markdown
Contributor Author

sure, I have separated out the documentation changes in the following PR - #186
Please note it would fail checks due to connexion changes not being present.
I had merged the changes into one PR because we needed both the changes to pass the build checks

@alohamora
alohamora requested a review from uniqueg December 2, 2023 12:52
@uniqueg
uniqueg merged commit 7f4bee1 into docs/add-readthedocs-config Dec 2, 2023
@uniqueg
uniqueg deleted the build/readthedocs-add-config branch December 2, 2023 14:37
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