Skip to content

ci: migrating to GitHub actions - #57

Merged
JBAhire merged 13 commits into
mainfrom
gha-ci
Jan 6, 2021
Merged

JBAhire merged 13 commits into
mainfrom
gha-ci

Conversation

@JBAhire

@JBAhire JBAhire commented Jan 6, 2021

Copy link
Copy Markdown
Member

Description

Migrating to GitHub actions from CircleCI as per hypertrace/hypertrace#144

Testing

changes are updates as per discussions and workflow here: hypertrace/query-service#47

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread .github/workflows/merge-publish.yml Outdated
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jan 6, 2021

Copy link
Copy Markdown

Unit Test Results

0 files  0 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌

Results for commit 11e673c.

@JBAhire

JBAhire commented Jan 6, 2021

Copy link
Copy Markdown
Member Author

removed codecov, upload-artifact and publish action here as this repo doesn't generate any test reports: https://app.circleci.com/pipelines/github/hypertrace/hypertrace-service/257/workflows/f9676140-16d4-406b-8d14-afb568f57951/jobs/773/parallel-runs/0/steps/0-112

@JBAhire

JBAhire commented Jan 6, 2021

Copy link
Copy Markdown
Member Author

waiting for hypertrace/hypertrace-gradle-docker-plugins#22 to get merged as there's tag issue with e2e test here.

In case of PR, value of env variable GITHUB_REF is in the format of refs/pull/57/merge and docker image tag is returned as refspull57merge which results in e2e failure as we were using test tag.

I have made change in docker-compose file here so it will use GITHUB_HEAD_REF as tag for hypertrace service image.


hypertrace:
image: hypertrace/hypertrace:test
image: hypertrace/hypertrace:${GITHUB_HEAD_REF}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this running as part of PR or after the merge to main?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it runs on both push and pull_request

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

But, github_head_ref will not be available on on push right? on push , we will get github.ref?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah. I can see the issue now. As we have colon : here it will be syntax error rather than pulling latest image. One solution I can think of is running this in pull_request_target so even while building github_ref will be always main as we can see here: https://github.com/hypertrace/attribute-service/runs/1654802662?check_suite_focus=true#step:6:804 and build always happens before test so this image will be already there.

this will solve the issue.

making changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What was wrong with test?

@JBAhire

JBAhire commented Jan 6, 2021

Copy link
Copy Markdown
Member Author

waiting for hypertrace/hypertrace-gradle-docker-plugins#22 to get merged as there's tag issue with e2e test here.

In case of PR, value of env variable GITHUB_REF is in the format of refs/pull/57/merge and docker image tag is returned as refspull57merge which results in e2e failure as we were using test tag.

I have made change in docker-compose file here so it will use GITHUB_HEAD_REF as tag for hypertrace service image.

This is no longer an dependency. We can move ahead without this change: #57 (comment)

- '**/*.md'
- '**/*.txt'
pull_request:
pull_request_target:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you go with this, we will need it during checkout

ref: ${{github.event.pull_request.head.ref}}
          repository: ${{github.event.pull_request.head.repo.full_name}}

@JBAhire JBAhire Jan 6, 2021 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

addressed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See as followup PR if we can move to pull_request context.

@JBAhire
JBAhire merged commit c89616c into main Jan 6, 2021
@JBAhire
JBAhire deleted the gha-ci branch January 6, 2021 14:11
findingrish pushed a commit that referenced this pull request Jan 26, 2021
* feat: add spaces support to gateway

* chore: update query api

* test: update gateway tests for spaces

* refactor: moving protos around, code cleanup

* fix: tricked by an out of order proto field
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