Skip to content

Using common member variables in integration tests#1532

Merged
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
alyssawilk:test
Aug 24, 2017
Merged

Using common member variables in integration tests#1532
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
alyssawilk:test

Conversation

@alyssawilk
Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk commented Aug 24, 2017

For #1518

The first step to reducing boilerplate is to use member variables so we can have helper functions.

This is a test only change and should be a functional no-op, just using consistent member variables for 80% of the test (those with single request and response)

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

you are my hero. thanks!

@mattklein123 mattklein123 merged commit a8507f6 into envoyproxy:master Aug 24, 2017
@alyssawilk alyssawilk deleted the test branch August 24, 2017 19:14
@alyssawilk alyssawilk mentioned this pull request Sep 6, 2017
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: JP Simard <jp@jpsim.com>
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Description**

The compiled binaries report the Git SHA in the version. For example,
the `v0.4.0` downloaded CLI prints this:
```
$ ./aigw-darwin-arm64 version
Envoy AI Gateway CLI: ad5f75e
```

This is not particularly useful to users, so this change updates how
versions are encoded in the binary:

```
# Binary compiled from a tag -> version is just the name of the tag:
$ ./aigw-darwin-arm64 version
Envoy AI Gateway CLI: 0.4.0

# Binary is compiled from a non-tag commit -> version shows the SHA, the closest tag and the number of commits ahead of that tag:
$ ./aigw-darwin-arm64 version
Envoy AI Gateway CLI: c662744d (v0.4.0, +8)
```

Users insterested in the exact Git SHA can still get it with:
```
$ go version -m ./aigw-darwin-arm64 | grep vcs
	build	vcs=git
	build	vcs.revision=c662744d6485424945d41d044797e3883c91605a
	build	vcs.time=2025-11-11T14:24:44Z
	build	vcs.modified=false
```

**Related Issues/PRs (if applicable)**

N/A

**Special notes for reviewers (if applicable)**

N/A

Signed-off-by: Ignasi Barrera <nacx@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants