Skip to content

[LFXV2-1283] fix: fix build errors after committee-service v0.2.22 upgrade and add publish-branch workflow#69

Merged
andrest50 merged 2 commits intomainfrom
andrest50/fix-ko-build
Mar 17, 2026
Merged

[LFXV2-1283] fix: fix build errors after committee-service v0.2.22 upgrade and add publish-branch workflow#69
andrest50 merged 2 commits intomainfrom
andrest50/fix-ko-build

Conversation

@andrest50
Copy link
Contributor

@andrest50 andrest50 commented Mar 17, 2026

Summary

  • Fix build errors caused by breaking changes in lfx-v2-committee-service v0.2.22: correct JoinMode assignment type, remove unavailable field from UpdateCommitteeBasePayload, and pass all 23 endpoints to committeeservice.NewClient
  • Add publish-branch.yaml GitHub Actions workflow to build and publish container images for both binaries on PRs targeting main

Ticket

LFXV2-1283

🤖 Generated with Claude Code

…rade

- Assign JoinMode as string value (not pointer) in CreateCommitteePayload
- Remove JoinMode assignment from UpdateCommitteeBasePayload (field not available)
- Pass all 23 endpoints to committeeservice.NewClient (added invite, application, join, leave endpoints)
- Bump lfx-v2-committee-service to v0.2.22 and lfx-v2-indexer-service to v0.4.16

Generated with [Claude Code](https://claude.ai/claude-code)

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
Adds a GitHub Actions workflow that builds and publishes container
images for both lfx-v1-sync-helper and dynamodb-stream-consumer on
pull requests targeting main, tagged with the commit SHA and branch name.

Generated with [Claude Code](https://claude.ai/claude-code)

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
@andrest50 andrest50 requested review from a team and emsearcy as code owners March 17, 2026 19:29
Copilot AI review requested due to automatic review settings March 17, 2026 19:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates this service to compile against lfx-v2-committee-service v0.2.22 (and related dependency bumps) and adds a GitHub Actions workflow to build/publish PR-branch container images when PRs target main.

Changes:

  • Bump lfx-v2-committee-service to v0.2.22 and lfx-v2-indexer-service to v0.4.16.
  • Adjust committee payload mapping/client initialization to match updated committee-service client APIs.
  • Add publish-branch.yaml workflow to publish PR branch images.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
go.mod Updates committee/indexer service dependency versions and tidies indirect deps.
go.sum Records new module checksums for the updated dependencies.
cmd/lfx-v1-sync-helper/lfx_v2_client.go Extends committee-service client initialization to include additional endpoints required by the new SDK.
cmd/lfx-v1-sync-helper/handlers_committees.go Updates committee create/update payload mapping to match breaking API changes.
.github/workflows/publish-branch.yaml Introduces PR-to-main workflow to build and publish branch-tagged images.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -412,7 +412,7 @@ func mapV1DataToCommitteeCreatePayload(ctx context.Context, v1Data map[string]an

// Map governance fields (requires lfx-v2-committee-service >= v0.3.0 with PR #61 merged).
@@ -489,10 +489,7 @@ func mapV1DataToCommitteeUpdateBasePayload(ctx context.Context, committeeUID str
// UpdateCommitteeBasePayload does not support BusinessEmailRequired field.

// Map governance fields (requires lfx-v2-committee-service >= v0.3.0 with PR #61 merged).
env:
HEAD_REF: "${{ github.head_ref }}"
run: |
container_tag=$(echo "$HEAD_REF" | sed 's/[^_0-9a-zA-Z]/-/g' | cut -c -127)
Comment on lines +42 to +45
BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
export BUILD_TIME
GIT_COMMIT=${GIT_COMMIT:0:7}
export GIT_COMMIT
Comment on lines +57 to +60
BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
export BUILD_TIME
GIT_COMMIT=${GIT_COMMIT:0:7}
export GIT_COMMIT
@@ -0,0 +1,66 @@
# Copyright The Linux Foundation and each contributor to LFX.
Copy link
Contributor

Choose a reason for hiding this comment

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

(not a blocker) If you want to keep the same name as project, committee, and meeting service, I think you can rename it to ko-build-branch.yaml.

@andrest50 andrest50 merged commit a98ac2a into main Mar 17, 2026
8 checks passed
@andrest50 andrest50 deleted the andrest50/fix-ko-build branch March 17, 2026 19:37
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.

3 participants