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

[KED-2961] Move scripts from private-kedro-sync #1107

Merged
merged 66 commits into from
Dec 17, 2021

Conversation

antonymilne
Copy link
Contributor

@antonymilne antonymilne commented Dec 9, 2021

Description

Builds on #1102 - take a look at that first!

I've migrated over the workflows we want from private-kedro-sync.

  • Added all the files from private-kedro-sync to our repo
  • These commits show what I changed/removed from them
  • These commits show how it's integrated into our CircleCI config

What's changed compared to previous jobs on private-kedro-sync:

  • clone_repo is no longer needed: we just do checkout. So this repo's root should be the cwd
  • following chat with @limdauto, sync job (which includes merging main to develop) now happens every time there's a push to main rather than at midnight. This should mean there's fewer conflicts
  • removed weekly_updates_checks job that sent an email no one ever looked at (or even received?) containing pip list --outdated)
  • removed SSH keys that are not needed any more
  • all bash scripts etc. in tools/circleci are exactly the same as they were in private-kedro-sync apart from the deleted files and this change to the merge PR message. All that's changed is the CircleCI config

Development notes

Still to do:

  • Testing
  • Make sure all the file paths like ./kedro are correct 😬
  • Figure out credentials and tokens - will need some help on this
  • Figure out SSH stuff - will need some help on this
  • Turn off private-kedro-sync - maybe rename directory at same time as this merges so it doesn't get triggered

After merging:

Checklist

  • Read the contributing guidelines
  • 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

Copy link
Contributor

@lorenabalan lorenabalan left a comment

Choose a reason for hiding this comment

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

Generally looks good to me but I'll have another closer look after some of the comments are answered.

tools/circleci/github_scripts/merge.sh Outdated Show resolved Hide resolved
tools/circleci/docker_build_img/build.sh Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
tools/circleci/requirements.txt Outdated Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
antonymilne and others added 2 commits December 15, 2021 14:30
Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>
Base automatically changed from feature/tidy-circleci-config#ked-2961 to main December 16, 2021 09:55
Copy link
Contributor

@lorenabalan lorenabalan left a comment

Choose a reason for hiding this comment

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

LGTM!

tools/circleci/github_scripts/merge.sh Outdated Show resolved Hide resolved
tools/circleci/requirements.txt Show resolved Hide resolved
@antonymilne
Copy link
Contributor Author

antonymilne commented Dec 17, 2021

Following much testing in #1121, I have made the following changes in addition to the original PR description:

  • 76b10d1: Make two different CIRCLE_TOKENs. Needed because we now have tokens to trigger workflows in both kedro (release workflow) and kedro-viz (build workflow) in the same repo
  • f86874e: Move automatic merging to hourly rather than main_updated. The automatic PR should be raised when we merge to main, but we should still try and merge it hourly rather than waiting till the next time main is updated
  • 34a0674: Move merge to above trigger release workflow. This solves the problem that triggering a release interrupted (and hence cancelled/failed) the currently running sync job so that the rest of it (merging to develop) would not complete. This change also necessitated b85cf09 so that "Maybe trigger the release workflow" worked on the right branch

Copy link
Contributor

@SajidAlamQB SajidAlamQB left a comment

Choose a reason for hiding this comment

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

Awesome! 💥

@datajoely datajoely merged commit 55b38b3 into main Dec 17, 2021
@antonymilne antonymilne deleted the feature/move-sync#ked-2961 branch December 17, 2021 17:03
rashidakanchwala pushed a commit that referenced this pull request Jan 10, 2022
* Pre-tidy

* Simplify linux e2e_tests

* Simplify linux e2e_tests

* Move e2e_tests from command to job

* String python version

* Comment out unwanted tests for now

* Try parametrised command name

* Try conditionals

* Indent

* Indent

* Urgh yaml

* Pass arguments

* Try win_e2e_tests separately

* Try win_e2e_tests separately

* Oops

* Fix windows hopefully

* URgh yaml

* Alter lint to matrix

* De-parametrise executor

* Rename executors

* Oops

* Add win_pip_compile

* Add win unit tests

* Add viz build

* Cosmetic changes

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Back to parametrised executor

* Back to parametrised executor

* Add unit_tests

* Clarify comment

* Add all files to tools/sync

* Remove unwanted workflows

* Alter file paths and remove clone_repo

* Replace build_kedro with one job

* Replace build_kedro with one job

* Trigger sync on merge to main

* Trigger on merge to main rather than nightly

* Remove old private-kedro ssh

* Merge into main config.yml file

* Add unless

* Correct to match schema

* Lint

* Tidy

* Hopefully correct a filepath?

* Alter PR message

* Update tools/circleci/github_scripts/merge.sh

Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>

* Update requirements

* Remove SSH and pre-commit install

* Post-merge fix

* Update text

* Make two different CIRCLE_TOKENs

* Update .circleci/config.yml

* Move automatic merging to hourly rather than main_updated

* Move merge to above trigger release workflow

* Add git checkout after merge.sh

* Add git checkout after merge.sh

* New line!

Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>
Signed-off-by: Rashida Kanchwala <rashida.kanchwala@quantumblack.com>
yetudada pushed a commit that referenced this pull request Jan 28, 2022
* Pre-tidy

* Simplify linux e2e_tests

* Simplify linux e2e_tests

* Move e2e_tests from command to job

* String python version

* Comment out unwanted tests for now

* Try parametrised command name

* Try conditionals

* Indent

* Indent

* Urgh yaml

* Pass arguments

* Try win_e2e_tests separately

* Try win_e2e_tests separately

* Oops

* Fix windows hopefully

* URgh yaml

* Alter lint to matrix

* De-parametrise executor

* Rename executors

* Oops

* Add win_pip_compile

* Add win unit tests

* Add viz build

* Cosmetic changes

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Back to parametrised executor

* Back to parametrised executor

* Add unit_tests

* Clarify comment

* Add all files to tools/sync

* Remove unwanted workflows

* Alter file paths and remove clone_repo

* Replace build_kedro with one job

* Replace build_kedro with one job

* Trigger sync on merge to main

* Trigger on merge to main rather than nightly

* Remove old private-kedro ssh

* Merge into main config.yml file

* Add unless

* Correct to match schema

* Lint

* Tidy

* Hopefully correct a filepath?

* Alter PR message

* Update tools/circleci/github_scripts/merge.sh

Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>

* Update requirements

* Remove SSH and pre-commit install

* Post-merge fix

* Update text

* Make two different CIRCLE_TOKENs

* Update .circleci/config.yml

* Move automatic merging to hourly rather than main_updated

* Move merge to above trigger release workflow

* Add git checkout after merge.sh

* Add git checkout after merge.sh

* New line!

Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>
Signed-off-by: Yetunde Dada <yetudada@users.noreply.github.com>
Galileo-Galilei pushed a commit to Galileo-Galilei/kedro that referenced this pull request Feb 19, 2022
lvijnck pushed a commit to lvijnck/kedro that referenced this pull request Apr 7, 2022
* Pre-tidy

* Simplify linux e2e_tests

* Simplify linux e2e_tests

* Move e2e_tests from command to job

* String python version

* Comment out unwanted tests for now

* Try parametrised command name

* Try conditionals

* Indent

* Indent

* Urgh yaml

* Pass arguments

* Try win_e2e_tests separately

* Try win_e2e_tests separately

* Oops

* Fix windows hopefully

* URgh yaml

* Alter lint to matrix

* De-parametrise executor

* Rename executors

* Oops

* Add win_pip_compile

* Add win unit tests

* Add viz build

* Cosmetic changes

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Refactor into setup and win_setup

* Back to parametrised executor

* Back to parametrised executor

* Add unit_tests

* Clarify comment

* Add all files to tools/sync

* Remove unwanted workflows

* Alter file paths and remove clone_repo

* Replace build_kedro with one job

* Replace build_kedro with one job

* Trigger sync on merge to main

* Trigger on merge to main rather than nightly

* Remove old private-kedro ssh

* Merge into main config.yml file

* Add unless

* Correct to match schema

* Lint

* Tidy

* Hopefully correct a filepath?

* Alter PR message

* Update tools/circleci/github_scripts/merge.sh

Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>

* Update requirements

* Remove SSH and pre-commit install

* Post-merge fix

* Update text

* Make two different CIRCLE_TOKENs

* Update .circleci/config.yml

* Move automatic merging to hourly rather than main_updated

* Move merge to above trigger release workflow

* Add git checkout after merge.sh

* Add git checkout after merge.sh

* New line!

Co-authored-by: Lorena Bălan <lorena.balan@quantumblack.com>
Signed-off-by: Laurens Vijnck <laurens_vijnck@mckinsey.com>
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.

4 participants