Skip to content

Support repo-config v0.9 properly#218

Merged
tiyash-basu-frequenz merged 1 commit intofrequenz-floss:v0.x.xfrom
tiyash-basu-frequenz:extend_repo_config_9_support
Mar 12, 2024
Merged

Support repo-config v0.9 properly#218
tiyash-basu-frequenz merged 1 commit intofrequenz-floss:v0.x.xfrom
tiyash-basu-frequenz:extend_repo_config_9_support

Conversation

@tiyash-basu-frequenz
Copy link
Copy Markdown
Contributor

This repo recently moved to repo-config v0.9. While the dependabot PR for the upgrade passed, the release notes for repo-config suggest more changes. This commit tries to add these additional requirements for repo-config v0.9 upgrade.

@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.15.4 milestone Mar 12, 2024
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Mar 12, 2024
@tiyash-basu-frequenz tiyash-basu-frequenz requested review from a team as code owners March 12, 2024 09:39
@github-actions github-actions Bot added part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Mar 12, 2024
Comment thread .github/labeler.yml
Copy link
Copy Markdown
Contributor

@Marenz Marenz left a comment

Choose a reason for hiding this comment

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

Without the labeler update this will break labeling after merge.
Also I notice you didn't add the fix to have git-support in pyproject for the test-installation ci job.
Which isn't a problem as long as git-urls are not used as repository dependencies..
Here is the patch in question:

patch -p1 <<'EOF'
diff --git a/.github/containers/test-installation/Dockerfile b/.github/containers/test-installation/Dockerfile
index 772b2ae..2494545 100644
--- a/.github/containers/test-installation/Dockerfile
+++ b/.github/containers/test-installation/Dockerfile
@@ -6,7 +6,12 @@

 FROM --platform=${TARGETPLATFORM} python:3.11-slim

-RUN python -m pip install --upgrade --no-cache-dir pip
+RUN apt-get update -y && \
+    apt-get install --no-install-recommends -y \
+    git && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/* && \
+    python -m pip install --upgrade --no-cache-dir pip

 COPY dist dist
 RUN pip install dist/*.whl && \
EOF

This repo recently moved to repo-config v0.9. While the dependabot PR for
the upgrade passed, the release notes for repo-config suggest more changes.
This commit tries to add these additional requirements for repo-config v0.9
upgrade.

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
@tiyash-basu-frequenz tiyash-basu-frequenz force-pushed the extend_repo_config_9_support branch from 3ad2244 to 0d15bd9 Compare March 12, 2024 12:40
@tiyash-basu-frequenz
Copy link
Copy Markdown
Contributor Author

Also I notice you didn't add the fix to have git-support in pyproject for the test-installation ci job.

It is because there is no test-installation step for this repo (which is by intention), so this step does not apply here.

Copy link
Copy Markdown

@thea-leake thea-leake left a comment

Choose a reason for hiding this comment

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

LGTM!

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Mar 12, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit f92bfb3 Mar 12, 2024
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the extend_repo_config_9_support branch March 12, 2024 15:53
@tiyash-basu-frequenz tiyash-basu-frequenz removed this from the v0.15.4 milestone Mar 25, 2024
# For more details read:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # 4.3.0
uses: actions/labeler@v5.0.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should use the hash here for security reasons.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants