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

produce json of release info when publishing #95

Open
JamieDanielson opened this issue Aug 10, 2022 · 0 comments
Open

produce json of release info when publishing #95

JamieDanielson opened this issue Aug 10, 2022 · 0 comments
Labels
type: enhancement New feature or request

Comments

@JamieDanielson
Copy link
Contributor

Is your feature request related to a problem? Please describe.

It's nice to copy and paste layer version arns for docs, usage, etc., but right now it's done manually.

Describe the solution you'd like

Similar to what we did in our java distro, produce a JSON of release info on build.

Describe alternatives you've considered

Right now we manually update versions in our release details.

Additional context

@JamieDanielson JamieDanielson added the type: enhancement New feature or request label Aug 10, 2022
robbkidd added a commit that referenced this issue Oct 13, 2022
## Which problem is this PR solving?

Release woes, enumerated below with the changes.

## ~Short~ description of the changes

### Reorganize releasing

- Closes #82 
- Rename published layer in regions to
`honeycomb-lambda-extension-<arch>-<version tag>` so that our layer
versions will always be `:1`
- Some changes in service towards #95, but not fully producing a
release.json yet

Make is good at knowing how to _make_ files. This moves the layer
contents
zip creation from the publish script to the Makefile. There's some
duplication,
but I think that keeps the Making more readable. CI updated to use the
`zip`
make target to build the binaries _and_ the zip files for artifact
storage and
workflow pass-along.

Publish script updated to record the results of AWS API calls to files
instead of
to script variables or the console. With the results recorded on the
filesystem,
we can see success/failures after the fact and thereby build
release.json from
the data in the API responses.

### Use the CIRCLE_TAG as the version for a build

- Closes #66 

Include the build version in the user-agent (formatting updated to
spec).

If the CI workflow doesn't have a tag, default to an informative version
derived from the current state of the git repository. For example, this
git describe command returns the following from the branch this commit
will land on:

    » git describe --always --tags --match "v[0-9]*" HEAD
    v10.3.0-9-g834dbcb

Which is:
* the nearest tag in history that matches the pattern
* the number of commits the branch's HEAD is away from that tag/commit
* g + the sha of current HEAD


### Test against only a single Go version

- Closes #100 

This is a project released and consumed as a binary. We only need to
test
against the version of Go we build and release with.

Co-authored-by: Jamie Danielson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant