-
Notifications
You must be signed in to change notification settings - Fork 624
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
remove need to clone core repo #678
Conversation
@owais yah that's the last thing i need to fix for this PR to be done. will take a look sometimes this week. |
@owais |
@lzchen this file: https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py @codeboten I think I'll something that might help you with this today. |
@owais |
@owais |
@codeboten see if this helps: #681 Gen script in core can install the e |
Right. That's how it works today but with the changes @codeboten is making, it shouldn't be necessary going forward. |
@owais please take another look. I've updated
Let me know what you think. |
IIUR, this will tell the author that bootstrap_gen in core needs an update and then the author will have to go and create a PR in core by manually copying/generating the file. Is that right? |
It would be great if a bot could create PR in core repo every time the file changed in contrib main but I'm working on a proposal related to distros that might help avoid this completely. |
@owais yup that's correct. it's not great, but it seems the benefits of removing the core repo from regular dev workflow outweighs the burden to manually copy this file when necessary. I like the idea of removing the need for this altogether though, that sounds promising! Thoughts? |
Definitely! I wasn't against it. Just trying to verify if I understood the new flow properly. We should just document the workflow here so outside contributors know what they are supposed to do to fix the CI failure. |
current_path = os.path.join(tmpdir.name, "current.py",) | ||
|
||
core_repo = os.getenv("CORE_REPO_SHA", "main") | ||
url = "https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/{}/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py".format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to make this a f-string
@codeboten, please check |
@ocelotl fixed the lint errors |
Description
Companion PR to open-telemetry/opentelemetry-python#2108, this removes the need to clone the core repo in order to run tox. It uses pip instead.
NOTE: This change also removes lint ignore rules for the
opentelemetry-python-core
subdirectory. This means after this PR, contributors should remove that folder from their local environment.