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

Module refactor #815

Merged
merged 13 commits into from
Mar 12, 2024
Merged

Module refactor #815

merged 13 commits into from
Mar 12, 2024

Conversation

hellais
Copy link
Member

@hellais hellais commented Mar 11, 2024

As part of this PR based on top of oonirunv2-improvements branch I implement the new pattern for building microservices in the new ooni api.

The main things it achieves are the following:

  • Switch to using hatch for dependency management instead of poetry
  • Create a more robust directory structure for the project
  • Implement a re-usable pattern for creating new services trying to minimize boilerplate to the extent possible
  • Add basic Readme
  • Promote new ooniapi to the top level directory tree

@hellais
Copy link
Member Author

hellais commented Mar 11, 2024

What's missing:

  • Fixing the measurements module to work with the new pattern
  • Come up with a better pattern for handling config settings so they are not shared in the common folder (this requires refactoring the common/utils though)
  • Updating the CI/CD pipeline to use the new directory structure

Copy link
Contributor

@DecFox DecFox left a comment

Choose a reason for hiding this comment

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

The changes look good to me! The docker image name was fixed here: 748b2d7. As discussed with @hellais, the measurements component is WIP and still needs some refactoring but apart from that, this should be good to go.

@hellais hellais merged commit f0b6d49 into oonirunv2-improvements Mar 12, 2024
1 check passed
@hellais hellais deleted the module-refactor branch March 12, 2024 07:20
hellais added a commit that referenced this pull request Mar 12, 2024
The main things this achieves are the following:

* Switch to using hatch for dependency management instead of poetry
* Create a more robust directory structure for the project
* Implement a re-usable pattern for creating new services trying to minimize boilerplate to the extent possible
* Add basic Readme
* Promote new ooniapi to the top level directory tree

More detailed changelog:
* Setup tests to run against real postgresql instance instead of sqlite

* Move into monorepo structure for ooniapi

* Setup monorepo structure for oonirun

* Add proper fix for timezone issues and update tests

* Fix running of tests

* Refactor build workflow with make

* Promote ooniapi to the root of the repo

* Fix uppercase

* Fix uppercase

* Fix tests

* Fix image name

Thanks to @DecFox for spotting it

* Fix variables in codepipeline buildspec

* Build the imagedefinitions in a single step
hellais added a commit that referenced this pull request Mar 12, 2024
The main things this achieves are the following:

* Switch to using hatch for dependency management instead of poetry
* Create a more robust directory structure for the project
* Implement a re-usable pattern for creating new services trying to minimize boilerplate to the extent possible
* Add basic Readme
* Promote new ooniapi to the top level directory tree

More detailed changelog:
* Setup tests to run against real postgresql instance instead of sqlite

* Move into monorepo structure for ooniapi

* Setup monorepo structure for oonirun

* Add proper fix for timezone issues and update tests

* Fix running of tests

* Refactor build workflow with make

* Promote ooniapi to the root of the repo

* Fix uppercase

* Fix uppercase

* Fix tests

* Fix image name

Thanks to @DecFox for spotting it

* Fix variables in codepipeline buildspec

* Build the imagedefinitions in a single step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants