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

Add pre-commit script and job for syncing scripts to ansible playbooks #7

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

Wecros
Copy link
Contributor

@Wecros Wecros commented Jan 16, 2024

ref: OAMG-9893

pre-commit serves to stage the file without the developer having to do it manually.

github job serves to notify the developer if they forgot to run the pre-commit or if they forgot to stage the playbooks changes.

The playbooks were generated from the new wrap_ script.

@Wecros Wecros self-assigned this Jan 16, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7bd3516) 100.00% compared to head (aa60972) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #7   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          305       305           
=========================================
  Hits           305       305           

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

@Wecros Wecros force-pushed the mirror-testing branch 8 times, most recently from caa7076 to 7ca1ca6 Compare January 16, 2024 22:21
@Wecros
Copy link
Contributor Author

Wecros commented Jan 16, 2024

example of failing check for scripts folder: https://github.com/oamg/leapp-insights-tasks/actions/runs/7548234455/job/20549874644?pr=7

pre-commit serves to stage the file without the developer having to do
it manually.

github job serves to notify the developer if they forgot to run the
pre-commit or if they forgot to stage the playbooks changes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Monnte please take a look, I would be more in favor to keep the sync from your PR because it's same in conversion repo, would it be adjustable for pre-commit as well as the worker sync? should be almost same right?

Copy link
Member

Choose a reason for hiding this comment

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

Yep, the sync in my PR should work too. Maybe a little change will be needed to choose target folder to save playbooks.

Copy link
Collaborator

@andywaltlova andywaltlova left a comment

Choose a reason for hiding this comment

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

Looks good, basically just want answer from @Monnte, but we could merge it and then he can adjust it in his PR

Copy link
Collaborator

@andywaltlova andywaltlova left a comment

Choose a reason for hiding this comment

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

Alright, it can be merged then, we can adjust the sync in the merge script PR #6

@andywaltlova andywaltlova merged commit 88d5e68 into main Jan 22, 2024
2 checks passed
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