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

Fixes #7858: Moved ingestion related make commands into Makefile in ingestion directory #13677

Merged
merged 9 commits into from
Oct 30, 2023
Merged

Conversation

TomBushell
Copy link
Contributor

Describe your changes:

Targets #7858.

I moved ingestion specific make commands in the root project Makefile into a new Makefile in the ingestion/ directory. These recipes can be run in either directory now. To do this I also modified some file paths in scripts/datamodel_code_generator.py.

Type of change:

  • Improvement

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • I have added tests around the new logic.
  • For connector/ingestion changes: I updated the documentation.

@TomBushell TomBushell requested a review from a team as a code owner October 22, 2023 07:09
@github-actions
Copy link

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

Comment on lines 31 to 32
ingestion_path = "./" if current_directory.endswith("OpenMetadata/ingestion") else "ingestion/"
directory_root = "../" if current_directory.endswith("OpenMetadata/ingestion") else "./"
Copy link
Member

Choose a reason for hiding this comment

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

@TomBushell chances are the directory would be named as something else for different users, we could keep endswith("/ingestion") to determine the ingestion directory, what do you think about that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, this will work.

@ayush-shah ayush-shah added the safe to test Add this label to run secure Github workflows on PRs label Oct 23, 2023
@github-actions
Copy link

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

Copy link
Member

@ayush-shah ayush-shah left a comment

Choose a reason for hiding this comment

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

@TomBushell also, the PR has formatting issues, if you can run the commands given in the comment above and fix it, Thanks

@github-actions
Copy link

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@@ -21,10 +21,10 @@ class FqnSplitListener(FqnListener):
def __init__(self):
self._list = []

def enterQuotedName(self, ctx: FqnParser.QuotedNameContext):
def enter_quoted_name(self, ctx: FqnParser.QuotedNameContext):
Copy link
Collaborator

Choose a reason for hiding this comment

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

we'll need to double-check why the server is unable to start. I am not sure if we might be overlooking anything by updating this method names since those are related to ANTLR.

I'd suggest to revert this changes and see if the py-tests pass properly, since the major topic in the github issue was about cleaning up the Makefile (which is beautifully done here already).

Thanks

@github-actions
Copy link

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@pmbrull
Copy link
Collaborator

pmbrull commented Oct 27, 2023

hi @TomBushell have you been able to identify why the sample data ingestion is not working? Looks like the "Sample Data DAG is not reachable".

Let us know if you have any questions on how to identify this.

Running sh docker/run_local_docker.sh would redo the same process that the CI is trying here.

Thanks

@TomBushell
Copy link
Contributor Author

TomBushell commented Oct 27, 2023

hi @TomBushell have you been able to identify why the sample data ingestion is not working? Looks like the "Sample Data DAG is not reachable".

Let us know if you have any questions on how to identify this.

Running sh docker/run_local_docker.sh would redo the same process that the CI is trying here.

Thanks

@pmbrull I'm not sure yet why this is happening. I have run sh docker/run_local_docker.sh and there are no problems.

@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2023

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@pmbrull
Copy link
Collaborator

pmbrull commented Oct 30, 2023

Ci looks good after merging main. Bringing this in, thanks~

@pmbrull pmbrull merged commit 33fe3b5 into open-metadata:main Oct 30, 2023
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants