-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fixed merge-publish and disabled circleci publish workflow #45
Conversation
Codecov Report
@@ Coverage Diff @@
## main #45 +/- ##
=========================================
Coverage 80.71% 80.71%
- Complexity 222 245 +23
=========================================
Files 27 27
Lines 752 752
Branches 56 56
=========================================
Hits 607 607
Misses 98 98
Partials 47 47
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2.3.4 | ||
with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need the below condition to take changes from the forked pull request otherwise it will checkout only the main
branch code
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup. forgot about this earlier
Another issue I forgot til now - the tag generation for docker non-release images is based off the circle ci branch - we should update that: |
As we will have to publish docker artifacts on we will have to expose a branch
|
addressed by hypertrace/hypertrace-gradle-docker-plugins#21 |
run: ./gradlew jacocoIntegrationTestReport | ||
|
||
- name: Copy integration test reports | ||
run: ./gradlew copyAllReports --output-dir=/tmp/integration-test-reports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The artifacts produced by this are the same as the artifacts reported by the previous step I believe since we're not cleaning out. We can either clean between the two test phases, or a single upload for both runs is probably fine too.
As a next step (can be a separate PR) it would make things much nicer to extract the results so they're visible in the GH UI (looks like it doesn't let viewing the artifacts, only downloading them). Something like this action:
https://github.com/marketplace/actions/publish-unit-test-results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. Makes sense to me.
verbose: true | ||
flags: unit | ||
|
||
- name: Archive unit test report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to archive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: branch name tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this now as you moved the extraction of BRANCH_NAME in the Gradle plugin - https://github.com/hypertrace/hypertrace-gradle-docker-plugins/pull/21/files?
|
||
- name: Cache packages | ||
id: cache-packages | ||
uses: actions/cache@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the same version v2.3.4
everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few minor comments, can you take care of it in follow up PR if you think they are valid.
LGTM
@kotharironak , will do that. |
Description
merge-publish
andrelease-publish
workflow.closed
and the merged key be true (as per: https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/webhook-events-and-payloads#pull_request). So, changed condition and also triggers for PR.Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:
Documentation