Enable devcontainer in Workflows#411
Enable devcontainer in Workflows#411MaximilianSoerenPollak wants to merge 1 commit intoeclipse-score:mainfrom
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //src:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
e355b24 to
8e28246
Compare
| { | ||
| "name": "eclipse-s-core", | ||
| "image": "ghcr.io/eclipse-score/devcontainer:1.0.0", | ||
| "image": "ghcr.io/eclipse-score/devcontainer:v1.2.0", |
There was a problem hiding this comment.
Can you add this and tell me if you stell need PIPX_BIN_DIR to execute pre-commit?
| "image": "ghcr.io/eclipse-score/devcontainer:v1.2.0", | |
| "image": "ghcr.io/eclipse-score/devcontainer:v1.2.0", | |
| "postCreateCommand": "echo \"export PATH=$PIPX_BIN_DIR:$PATH\" | sudo tee /etc/bash_completion.d/add_pipx_to_path", |
There was a problem hiding this comment.
This only works in conjunction with devcontainer/cli. If this works I can add this to the image.
There was a problem hiding this comment.
Now I found a solution, which works in /etc/profile.d/. This took me way too long time
| "image": "ghcr.io/eclipse-score/devcontainer:v1.2.0", | |
| "image": "ghcr.io/eclipse-score/devcontainer:v1.2.0", | |
| "postCreateCommand": "echo \"export PATH=$PIPX_BIN_DIR:$PATH\" | sudo tee /etc/profile.d/add_pipx_to_path.sh", |
There was a problem hiding this comment.
Will be taken care of with eclipse-score/devcontainer#98
|
Converted to Draft, as currently unsure if this PR is in the right direction of the Repo. |
|
@MaximilianSoerenPollak have fun merging/rebasing. Looks like there are some conflicts. |
| run: bash scripts/run-linters.sh | ||
| cacheFrom: ghcr.io/eclipse-score/devcontainer | ||
| push: never | ||
| runCmd: ${PIPX_BIN_DIR}/pre-commit run -a |
There was a problem hiding this comment.
With the current main tag PIPX_BIN_DIR is now part of $PATH
| runCmd: ${PIPX_BIN_DIR}/pre-commit run -a | |
| runCmd: pre-commit run -a |
| - name: Setup Bazel with cache | ||
| uses: bazel-contrib/[email protected] |
There was a problem hiding this comment.
We should keep an eye on build times and if we can use a cache with the devcontainer
| export PYTHONUNBUFFERED="1" | ||
| export CONSUMER="${{ matrix.consumer }}" | ||
| export PYTHONPATH=. | ||
| uv run pytest -s -v src/tests/ \ |
There was a problem hiding this comment.
pytest is preinstalled in the devcontainer and should be accessible without uv. Maybe uv just runs what is already there
There was a problem hiding this comment.
Yes pytest is there, but the packages this test needs arent'.
So i installe eveyrthing via uv then running it
9492a27 to
92f9c8b
Compare
|
I honestly do not know why some of the changes it says they are new here ? |
b64929d to
4d840de
Compare
4d840de to
a19c097
Compare
Benefits:
Drawbacks: