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
Introduce Poetry and bump up e2e #249
Conversation
* Replace venv/pip with Poetry * Update documentation to reflect poetry migration * Update PR template * Support slim python docker image * Bump up swctl & OAP version in e2e * fix kafka ignore (parenthesis missing) * fix meter e2e (nameing) * fix log list e2e, trace list e2e, service instance (.total, errorreason, layer concept)
@jiang1997 if you have time, please help to try the changes out (the poetry part), |
Got it. |
I cannot run this and failed to find a workable solution in Google, I did found some similar questions/issues but none works for me. Haven't dig deep to see why and how to fix this yet.
|
Seems like a macOS's built-in python (not for other python versions) issue here python-poetry/install.python-poetry.org#24 There isn't a final fix yet, but installing poetry from homebrew looks like an easy workaround for now. (Can you see if it works?) ifeq ($(OS),Windows_NT)
OS := Windows
else
OS := $(shell sh -c 'uname 2>/dev/null || echo Unknown')
endif
.PHONY: poetry
poetry:
ifeq ($(OS),Windows)
-powershell (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
poetry self update
else ifeq ($(OS),Darwin)
brew install poetry
poetry self update
else
-curl -sSL https://install.python-poetry.org | python3 -
poetry self update
endif |
I'm not sure whether that works for everyone, but at least it doesn't work for me, I don't have |
My bad I thought homebrew come in macOS as preinstalled. Then we have to use this then, which is among the official ways of installing poetry.
|
This looks good. |
.github/PULL_REQUEST_TEMPLATE
Outdated
@@ -1,9 +1,13 @@ | |||
<!-- Uncomment the following checklist WHEN AND ONLY WHEN you're adding a new plugin --> | |||
<!-- Fill the following checklists when a feature/plugin is added or modified--> |
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.
Contributors may just fill the checklist and keep the <!--
so these are not showing in the issue comment...
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.
Thank you, now I suppose using the main repo's PR template will be a better choice, I added an additional plugin section there.
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.
Changes pushed.
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
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.
Thanks!
A step in preparing the 1.0.0 release.
Slim docker images are tested in CI and produced by the
make build-image
process.The following changes are mostly side effects encountered during the migration.
Remove Python 3.6 from the testing matrix (removal of support will come in the next PR)
Poetry and planned os.register_at_fork API usage in agent requires 3.7+, and 3.6 has reached end of support.
Update documentation to reflect poetry migration
New docs on how to setup development env
make env
,make test
etc.Update PR template
Reflect ^ above changes.
Bump up swctl & OAP version in e2e
Bump up to 9.2.0
fix log list e2e, trace list e2e, service instance (.total, errorreason, layer concept)
Reflect changes in expected results due to the bump up.
fix kafka ignore (parenthesis missing)
Kafka plugin self data ignore
fix meter e2e (naming)
Fix meter e2e thanks to the help from @jiang1997 (fix typo that invalids python-runtime.yaml skywalking#9912)