-
Notifications
You must be signed in to change notification settings - Fork 674
otelmongo: Use a mock deployment for testing against a MongoDB server #5749
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
190e822
otelmongo#39 Convert to unit tests
prestonvasquez 236658d
Merge branch 'main' into otelmongo#39
prestonvasquez 74daa57
otelmongo#39 Fix linting errors
prestonvasquez bccc451
Merge branch 'otelmongo#39' of github.com:prestonvasquez/opentelemetr…
prestonvasquez 5b20239
otelmongo#39 Add test-default back to precommit
prestonvasquez 14448ad
otelmongo#39 Add empty line back to Makefile
prestonvasquez 1bb7956
otelmongo#39 Remove empty line form Makefile
prestonvasquez a3297ca
otelmongo#39 Remove update to CHANGELOG
prestonvasquez efbef54
otelmongo#39 Make CI pass with third-party code
prestonvasquez 67a9747
Merge branch 'main' into otelmongo#39
prestonvasquez 7a41be0
Merge branch 'main' into otelmongo#39
prestonvasquez 9840536
Merge branch 'main' into otelmongo#39
prestonvasquez e06df49
Update instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/te…
prestonvasquez e153791
Update instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/te…
prestonvasquez 74892a2
Use mtest for mocking otelmongo
prestonvasquez f30710d
Revert changes to license-check Makefile
prestonvasquez f001417
Resolve merge conflicts
prestonvasquez 167b222
Revert changes to license-check Makefile
prestonvasquez 3021fc6
otelmongo#39 Resolve merge conflicts
prestonvasquez fe128ba
Merge branch 'main' into otelmongo#39
prestonvasquez d4731d4
#39 Resolve merge conflicts
prestonvasquez 71cf7be
Merge branch 'otelmongo#39' of github.com:prestonvasquez/opentelemetr…
prestonvasquez 1c01674
#39 Revert changes to ci
prestonvasquez 9b43a52
#39 re-add removing ci integration
prestonvasquez aef92ac
Merge branch 'main' into otelmongo#39
prestonvasquez bafa299
otelmongo#39 Reomve parallel tests
prestonvasquez a26c56c
Merge branch 'otelmongo#39' of github.com:prestonvasquez/opentelemetr…
prestonvasquez 81f250b
otelmongo#39 resolve merge conflict
prestonvasquez 0a92c0d
Merge branch 'main' into otelmongo#39
pellared 64afe72
Resolve merge conflicts
prestonvasquez e126410
Merge branch 'otelmongo#39' of github.com:prestonvasquez/opentelemetr…
prestonvasquez dd36791
Merge branch 'main' into otelmongo#39
prestonvasquez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,47 +137,3 @@ jobs: | |
echo ${{ needs.compatibility-test.result }} | ||
test ${{ needs.compatibility-test.result }} == "success" | ||
|
||
integration: | ||
strategy: | ||
matrix: | ||
target: [test-mongo-driver] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.DEFAULT_GO_VERSION }} | ||
check-latest: true | ||
cache-dependency-path: "**/go.sum" | ||
- name: Run coverage tests ${{ matrix.target }} | ||
env: | ||
INTEGRATION: ${{ matrix.target }} | ||
run: | | ||
make ${{ matrix.target }} | ||
mkdir -p $TEST_RESULTS | ||
find . -name 'coverage.html' > "${TEST_RESULTS}/coverage.lst" | ||
tar -n -cf - -T "${TEST_RESULTS}/coverage.lst" | tar -C "${TEST_RESULTS}" -xvf - | ||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
if: hashFiles('coverage.out') != '' | ||
with: | ||
file: ./coverage.out | ||
fail_ci_if_error: true | ||
verbose: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Store coverage test output | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: opentelemetry-go-contrib-integration-test-output | ||
path: ${{ env.TEST_RESULTS }} | ||
|
||
test-integration: | ||
runs-on: ubuntu-latest | ||
needs: [integration] | ||
steps: | ||
- name: Test if integration workflow passed | ||
run: | | ||
echo ${{ needs.integration.result }} | ||
test ${{ needs.integration.result }} == "success" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.