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

Remove ./tools/fetch-tags invocation from Makefile #8854

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Mar 21, 2023

What this PR does / why we need it:

This invocation causes problems when make targets are executed in the build image container (BUILD_IN_CONTAINER=true), e.g. the yacc target, because git tries to fetch tags from origin using ssh, causing error message like these:

Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin

This is because local ssh keys are not mounted into the build container.

In order not to break CI builds
(#8232) we need to manually fetch the tags as the first step in release pipelines. This is added to the Drone configuration.

This invocation causes problems when make targets are executed in the
build image container (`BUILD_IN_CONTAINER=true`), e.g. the `yacc`
target, because git tries to fetch tags from `origin` using ssh, causing
error message like these:

```
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin
```

This is because local ssh keys are not mounted into the build container.

In order not to break CI builds
(#8232) we need to manually fetch
the tags as the first step in release pipelines. This is added to the
Drone configuration.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum force-pushed the chaudum/remove-git-fetch-from-makefile-v2 branch from 7c8cefc to 188d789 Compare March 21, 2023 14:28
Comment on lines +1413 to +1417
- commands:
- apk add --no-cache bash git
- git fetch origin --tags
image: alpine
name: fetch-tags
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding git fetch to this pipeline assures that we do not revert the change that introduced git fetch in the Makefile here.

Copy link
Contributor

@vlad-diachenko vlad-diachenko left a comment

Choose a reason for hiding this comment

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

LGTM 🍾

Copy link
Contributor

@MichelHollands MichelHollands left a comment

Choose a reason for hiding this comment

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

LGTM

@chaudum chaudum merged commit b502ee2 into main Mar 21, 2023
@chaudum chaudum deleted the chaudum/remove-git-fetch-from-makefile-v2 branch March 21, 2023 14:47
chaudum added a commit that referenced this pull request Jul 14, 2023
**What this PR does / why we need it**:

This invocation causes problems when make targets are executed in the build image container (`BUILD_IN_CONTAINER=true`), e.g. the `yacc` target, because git tries to fetch tags from `origin` using ssh, causing
error message like these:

```
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin
```

This is because local ssh keys are not mounted into the build container.

In order not to break CI builds (#8232) we need to manually fetch the tags as the first step in release pipelines. This is added to the Drone configuration.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
MichelHollands pushed a commit that referenced this pull request Jul 14, 2023
**This is a backport of #8854**

---

**What this PR does / why we need it**:

This invocation causes problems when make targets are executed in the
build image container (`BUILD_IN_CONTAINER=true`), e.g. the `yacc`
target, because git tries to fetch tags from `origin` using ssh, causing
error message like these:

```
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin
```

This is because local ssh keys are not mounted into the build container.

In order not to break CI builds
(#8232) we need to manually fetch
the tags as the first step in release pipelines. This is added to the
Drone configuration.

**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:
Fixes #<issue number>

**Special notes for your reviewer**:

**Checklist**
- [ ] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
- [ ] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e)

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants