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

chore(deps): bump python from c24c34b to 15bad98 #206

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 16, 2024

Bumps python from c24c34b to 15bad98.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps python from `c24c34b` to `15bad98`.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 16, 2024
@dependabot dependabot bot requested a review from zkoppert as a code owner September 16, 2024 00:27
@dependabot dependabot bot added the docker Pull requests that update Docker code label Sep 16, 2024
This fixes dependency issue we're having.

We may want to pin it for safety.  Git-all includes UI stuff that I don't think we need.

Signed-off-by: jmeridth <[email protected]>
Dockerfile Outdated
@@ -17,7 +17,7 @@ COPY requirements.txt stale_repos.py /action/workspace/

RUN python3 -m pip install --no-cache-dir -r requirements.txt \
&& apt-get -y update \
&& apt-get -y install --no-install-recommends git-all=1:2.39.2-1.1 \
&& apt-get -y install --no-install-recommends git \
Copy link
Member

@jmeridth jmeridth Sep 16, 2024

Choose a reason for hiding this comment

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

@zkoppert this was my fix to get builds to pass. I imagine we'd want to pin git but We need to pin the Git version (on it) but I don't think we need git-all. Do you know why we might need that? github/contributors PRs experiencing same issue. I imagine the others will also.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for fixing this!

Looking at the dependencies of git-all I don't see any need for anything other than the git package for what we are doing. A GUI or git-docs for example are not needed in the docker container.

Feel free to make those changes across all of our actions too.

@jmeridth
Copy link
Member

jmeridth commented Sep 16, 2024

Yep. Need to pin git. Hadolint no happy. On it.

Update: pinned version is git=1:2.39.5-0+deb12u1

ran locally and changed Dockerfile from

```
CMD ["/action/workspace/stale_repos.py"]
ENTRYPOINT ["python3", "-u"]
```

to

```
ENTRYPOINT ["dpkg", "-l", "git"]
```

and then ran

`docker run -it --rm --name debug $(docker images --format "{{.ID}} {{.CreatedAt}}" | sort -rk 2 | awk 'NR==1{print $1}') -- /bin/sh`

to echo out the git version installed

`docker images --format "{{.ID}} {{.CreatedAt}}" | sort -rk 2 | awk 'NR==1{print $1}` gets the last image id created after sorting list by creation date

Signed-off-by: jmeridth <[email protected]>
@jmeridth
Copy link
Member

@zkoppert if there is a reason we need git-all I can update that pinned version to 2.39.5... and see if that fixes us.

@jmeridth jmeridth merged commit a93824b into main Sep 16, 2024
29 checks passed
@jmeridth jmeridth deleted the dependabot/docker/python-15bad98 branch September 16, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file docker Pull requests that update Docker code maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants