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

ci: use common definition of C++ versions #103

Merged
merged 2 commits into from
May 15, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented May 14, 2024

This consolidates some of the places we need to specify C++ version numbers into a single cpp-sdk-versions.env file.

This is a similar approach to Relay Proxy.

Updating this file will update:

  1. CI unit tests
  2. Docker example tests

But it won't update the versions found in README or in the Docker files themselves (as they have default values for the new build arg I've introduced.)

We need to consider the testing strategy going forward. Should we test a min version, and then also a "current" version? And if so, is that current going to float somehow (like using github's releases API to grab the latest), or be pinned to the latest explicitly (via a workflow, or Renovate or something.)

@cwaldren-ld cwaldren-ld force-pushed the cw/sc-237167/shared-cpp-versions branch 5 times, most recently from 48e5cc9 to 9f245a4 Compare May 14, 2024 19:54
@@ -4,6 +4,8 @@ FROM debian:bookworm
ARG VERSION=2.1.0
# {{ x-release-please-end }}

ARG CPP_SDK_VERSION=3.3.3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In these dockerfiles, the CPP_SDK_VERSION arg is injected by CI. But since it's also hardcoded in the file (so that people can run these examples locally), we'd still have to remember to update these manually.

See PR body for a solution.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review May 14, 2024 20:04
@cwaldren-ld cwaldren-ld requested a review from a team May 14, 2024 20:04
@cwaldren-ld cwaldren-ld force-pushed the cw/sc-237167/shared-cpp-versions branch from 9f245a4 to b0a1281 Compare May 14, 2024 20:04
@cwaldren-ld cwaldren-ld requested a review from keelerm84 May 14, 2024 22:50
@cwaldren-ld cwaldren-ld merged commit 35bb4f4 into main May 15, 2024
15 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sc-237167/shared-cpp-versions branch May 15, 2024 18:45
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