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

Skip building HotROD for all platforms for pull requests #5765

Merged
merged 8 commits into from
Jul 19, 2024

Conversation

Manoramsharma
Copy link
Contributor

@Manoramsharma Manoramsharma commented Jul 19, 2024

Which problem is this PR solving?

Description of the changes

  • Similar to the functionality we have for all-in-one image I tried to achieve same build configuration supported by corresponding script file.

Checklist

Signed-off-by: Manoramsharma <84619980+Manoramsharma@users.noreply.github.com>
@Manoramsharma Manoramsharma requested a review from a team as a code owner July 19, 2024 08:33
@Manoramsharma
Copy link
Contributor Author

@yurishkuro I am bit confused about adding the integration test for local build image and the support for debug image using add_debugger flag as we have in all-in-one-build script.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

lgtm, one small change needed

Signed-off-by: Manoramsharma <84619980+Manoramsharma@users.noreply.github.com>
@Manoramsharma
Copy link
Contributor Author

lgtm, one small change needed

Done. Thanks for the review 😄

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.65%. Comparing base (813ff32) to head (7d6539f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5765      +/-   ##
==========================================
- Coverage   96.66%   96.65%   -0.02%     
==========================================
  Files         341      341              
  Lines       16451    16451              
==========================================
- Hits        15902    15900       -2     
- Misses        361      362       +1     
- Partials      188      189       +1     
Flag Coverage Δ
badger_v1 8.05% <ø> (ø)
badger_v2 1.90% <ø> (ø)
cassandra-3.x-v1 16.61% <ø> (ø)
cassandra-3.x-v2 1.82% <ø> (ø)
cassandra-4.x-v1 16.61% <ø> (ø)
cassandra-4.x-v2 1.82% <ø> (ø)
elasticsearch-6.x-v1 18.77% <ø> (ø)
elasticsearch-7.x-v1 18.83% <ø> (-0.02%) ⬇️
elasticsearch-8.x-v1 19.03% <ø> (+0.01%) ⬆️
elasticsearch-8.x-v2 1.88% <ø> (ø)
grpc_v1 9.52% <ø> (+0.01%) ⬆️
grpc_v2 ?
kafka 9.74% <ø> (ø)
memory_v2 1.90% <ø> (ø)
opensearch-1.x-v1 18.89% <ø> (+0.01%) ⬆️
opensearch-2.x-v1 18.89% <ø> (ø)
opensearch-2.x-v2 1.90% <ø> (+0.01%) ⬆️
unittests 95.07% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Manoramsharma <84619980+Manoramsharma@users.noreply.github.com>
@Manoramsharma
Copy link
Contributor Author

@yurishkuro I have made changes for some failing checks too that I witnessed from the previous commit.

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro changed the title Enable build_flags for hotrod workflow Skip building HotROD for all platforms for pull requests Jul 19, 2024
# Extract the architecture from the platform string
arch=${platform##*/} # Remove everything before the last slash
make "build-all-in-one" GOOS=linux GOARCH="${arch}"
make "build-all-in-one" GOOS="${os}" GOARCH="${arch}"
Copy link
Member

Choose a reason for hiding this comment

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

This is actually incorrect. This script is for building & testing hotrod. You are not actually reducing platforms on which the hotrod is build (L40-43). On the other hand, all-in-one does not need to be built for other platforms at all, only once for the current platform "$(go env GOOS)/$(go env GOARCH)", because we only use it for e2e test and then discard.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay so I should leave build-all-in-one with the single build just for linux and should bring back the implementation for hotrod, something like this >

# Build for each platform for platform in $(echo "$PLATFORMS" | tr ',' ' '); do os=${platform%/*} # Extract OS (part before the slash) arch=${platform##*/} # Extract architecture (part after the slash) make build-examples GOOS="${os}" GOARCH="${arch}" done

Copy link
Member

Choose a reason for hiding this comment

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

Yes the loop is for hotrod, allinone only needs to be built locally

@yurishkuro yurishkuro added the changelog:ci Change related to continuous integration / testing label Jul 19, 2024
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro enabled auto-merge (squash) July 19, 2024 22:46
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro merged commit b2aded6 into jaegertracing:main Jul 19, 2024
43 checks passed
@yurishkuro
Copy link
Member

Thanks!

FlamingSaint pushed a commit to FlamingSaint/jaeger that referenced this pull request Jul 20, 2024
…ng#5765)

## Which problem is this PR solving?
- Resolves jaegertracing#5743 

## Description of the changes
- Similar to the functionality we have for all-in-one image I tried to
achieve same build configuration supported by corresponding script file.

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [ ] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `yarn lint` and `yarn test`

---------

Signed-off-by: Manoramsharma <84619980+Manoramsharma@users.noreply.github.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Co-authored-by: Yuri Shkuro <github@ysh.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:ci Change related to continuous integration / testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip building HotROD for all platforms for pull requests
2 participants