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

Refactor of Pipeline Tests #3203

Merged
merged 23 commits into from
Oct 30, 2023
Merged

Conversation

adamkells
Copy link
Contributor

@adamkells adamkells commented Oct 19, 2023

Description

To improve the fixtures and docstrings in the test_pipeline.py as described in this issue

Development notes

Have mostly changed function names and included docstrings for readability as well as some minor refactoring of code.

Have tested this by running tests locally.

Developer Certificate of Origin

We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a Signed-off-by line in the commit message. See our wiki for guidance.

If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.

Checklist

  • Read the contributing guidelines
  • Signed off each commit with a Developer Certificate of Origin (DCO)
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the RELEASE.md file
  • Added tests to cover my changes
  • Checked if this change will affect Kedro-Viz, and if so, communicated that with the Viz team

@adamkells adamkells marked this pull request as ready for review October 24, 2023 13:29
Copy link
Member

@merelcht merelcht left a comment

Choose a reason for hiding this comment

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

Thank you so much @adamkells ! Your changes have made it a lot easier to understand these tests and fixtures ⭐ ⭐

Don't forget to add your name to the contributors in the release notes. You can add a new section like "Community contributions" under upcoming release.

adamkells and others added 21 commits October 30, 2023 09:43
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
…_source (kedro-org#3145)

* Fix bug for config path containing dots

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update logic to work with lower python versions

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update release notes

Co-authored-by: IngerMathilde <42641352+IngerMathilde@users.noreply.github.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Remove os

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Co-authored-by: IngerMathilde <42641352+IngerMathilde@users.noreply.github.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* Move project setup to advanced section

Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com>

* Update index.rst 🤦‍♀️

---------

Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* feat(datasets): create custom `DeprecationWarning`

Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>

* feat(datasets): use the custom deprecation warning

Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>

* chore: del unneeded `_filter_deprecation_warnings`

Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>

* Use a simple filter inside `sys.warnoptions` block

Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>

* Also change FutureWarnings to KedroDeprecationWarnings

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Skip jupyter convert all e2e test(deprecated)

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Skip jupyter convert all e2e test(deprecated)

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Co-authored-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Co-authored-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com>
Co-authored-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
…set` (kedro-org#3170)

* Add deprecation warnings to Partitioned and Incremental Datasets

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update release notes

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* Make settings.py optional

Signed-off-by: Miguel Ortiz <miguel_ortiz_marin@mckinsey.com>

* Fix unit tests

Signed-off-by: Miguel Ortiz <miguel_ortiz_marin@mckinsey.com>

* Fix coverage

Signed-off-by: Miguel Ortiz <miguel_ortiz_marin@mckinsey.com>

* Update RELEASE.md and logging

Signed-off-by: Miguel Ortiz <miguel_ortiz_marin@mckinsey.com>

---------

Signed-off-by: Miguel Ortiz <miguel_ortiz_marin@mckinsey.com>
Co-authored-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* Update makefile to pin pip version to fix nightly CI

* Add more comments

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

* Update pip for RTD

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

* update RTD build

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

* hijack the pre_install steps

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

* Fix linting

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

---------

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* Add deprecation notice to archived starters

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Add '(deprecated)' to the names of the starters

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com>
Co-authored-by: Ankita Katiyar <110245118+ankatiyar@users.noreply.github.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
kedro-org#3186)

Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com>
Signed-off-by: Jo Stichbury <jo_stichbury@mckinsey.com>
Co-authored-by: Jo Stichbury <jo_stichbury@mckinsey.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* Remove 3.7 from CI

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Separate notifications into separate jobs

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update links

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update link

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Mustapha Abdullahi <mustious@gmail.com>
Signed-off-by: Mustapha Abdullahi <mustapha.abdullahi@quantumblack.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
…o-spark` (kedro-org#3226)

* Add condition for develop branch

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update if statement

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update if for make test-no-spark'

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
* Change the order of CI, run windows test before ubuntu

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

* try to optimise job

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>

---------

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>
Signed-off-by: Adam Kells <adamjkells93@gmail.com>
Signed-off-by: Adam Kells <adam.kells@artefact.com>
@merelcht merelcht requested review from AhdraMeraliQB and ankatiyar and removed request for astrojuanlu, stichbury and yetudada October 30, 2023 10:47
@merelcht merelcht added the Community Issue/PR opened by the open-source community label Oct 30, 2023
Copy link
Contributor

@ankatiyar ankatiyar left a comment

Choose a reason for hiding this comment

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

Thank you @adamkells! 💯

Signed-off-by: Merel Theisen <49397448+merelcht@users.noreply.github.com>
@merelcht merelcht enabled auto-merge (squash) October 30, 2023 11:30
@merelcht merelcht merged commit f89a504 into kedro-org:main Oct 30, 2023
44 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Issue/PR opened by the open-source community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants