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

Moving common function from DistGitAPI to GitOperations and Dockerfile #73

Merged
merged 16 commits into from
Mar 20, 2023

Conversation

phracek
Copy link
Member

@phracek phracek commented Feb 27, 2023

What is done in this function:

  • Dockerfile.generator is moved from F34 -> F36
  • Dockerfile.tests is moved from F34->F36
  • Functions get_from_df, get_from, set_from, update_dockerfile, and update_dockerfile_rebuild are moved from distgit.py to dockerfile.py
  • Functions set_commit_msg, _do_git_reset, _clone_upstream, _get_unpushed_commits, show_git_changes, update_variable_in_string, update_test_openshift_yaml, get_commit_msg, _pull_upstream are moved from distgit.py to git_operations.py
  • Functions copy_upstream2downstream, handle_dangling_symlinks are moved from distgit.py to sync.py file.

All there changes are check by Test Suite.

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
@phracek
Copy link
Member Author

phracek commented Feb 27, 2023

/test

Copy link
Member

@frenzymadness frenzymadness left a comment

Choose a reason for hiding this comment

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

Let me know if anything here needs more context or if you want to have a meeting and discuss my comments here. A lot of them are just opinions.

container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
container_workflow_tool/sync.py Outdated Show resolved Hide resolved
tests/test_git_operations.py Show resolved Hide resolved
tests/test_git_operations.py Outdated Show resolved Hide resolved
tests/test_git_operations.py Outdated Show resolved Hide resolved
tests/test_git_operations.py Outdated Show resolved Hide resolved
phracek and others added 8 commits March 9, 2023 09:10
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Co-authored-by: Petr Kubat <pkubat@redhat.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Copy link
Member

@frenzymadness frenzymadness left a comment

Choose a reason for hiding this comment

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

Last two comments. I understand that the code is not all yours. If you'd like me to take a closer look at the code as a whole, feel free to ping me.

container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
tests/test_cli.py Outdated Show resolved Hide resolved
phracek and others added 3 commits March 15, 2023 12:37
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
@phracek
Copy link
Member Author

phracek commented Mar 15, 2023

/test

@phracek
Copy link
Member Author

phracek commented Mar 15, 2023

@frenzymadness Your comments are great. For now, that is enough. Last two comments, were addressed, including adding more tests.

Copy link
Member

@frenzymadness frenzymadness left a comment

Choose a reason for hiding this comment

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

Last couple of nitpicks.

container_workflow_tool/dockerfile.py Outdated Show resolved Hide resolved
container_workflow_tool/dockerfile.py Show resolved Hide resolved
tests/test_dockerfile.py Outdated Show resolved Hide resolved
tests/test_git_operations.py Show resolved Hide resolved
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Copy link
Member

@frenzymadness frenzymadness left a comment

Choose a reason for hiding this comment

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

I have nothing more to add. Good job!

@phracek phracek merged commit a716dda into master Mar 20, 2023
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