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

Migrate CircleCI build-and-test workflow to GitHub Actions (1/3) #2291

Merged
merged 2 commits into from
Dec 17, 2020

Conversation

AzfaarQureshi
Copy link
Contributor

@AzfaarQureshi AzfaarQureshi commented Dec 14, 2020

Which problem is this solving?

As part of #1234, this pull request migrates the windows-test, setup-environment, lint, and cross-compile workflow that was contained in the config.yml file to GitHub Actions. The remaining CI jobs will be migrated in PR 2/3 and the publish jobs will be migrated in 3/3

Migration Plan

We suggest having CircleCI and GitHub Action jobs run in parallel for a few weeks. After the GitHub Actions jobs are running fine for a week or so and then remove the CircleCI workflows from config.yml
cc- @alolita, @shovnik

windows-test,check-links,setup-environment,lint,cross-compile
@AzfaarQureshi AzfaarQureshi requested a review from a team December 14, 2020 20:48
Comment on lines +21 to +25
GITHUB_REF=${GITHUB_REF:-}

diff_files="$( git diff HEAD origin/master --name-only )"
check_all_files=1
if [[ "$GITHUB_REF" = "ref/heads/master" ]] || [[ -n "$( echo "$diff_files" | grep ".github/workflows/check-links" )" ]]; then
Copy link
Contributor Author

@AzfaarQureshi AzfaarQureshi Dec 14, 2020

Choose a reason for hiding this comment

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

copying over the contents of .circleci/check-links/ to .github/workflows/. Needed to tweak this script so it works with the GitHub Actions environment variables and container structure

@codecov
Copy link

codecov bot commented Dec 14, 2020

Codecov Report

Merging #2291 (135ff37) into master (7eb2628) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2291      +/-   ##
==========================================
- Coverage   92.04%   92.04%   -0.01%     
==========================================
  Files         272      272              
  Lines       15284    15292       +8     
==========================================
+ Hits        14068    14075       +7     
  Misses        837      837              
- Partials      379      380       +1     
Impacted Files Coverage Δ
internal/data/bytesid.go 80.95% <0.00%> (+4.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7eb2628...135ff37. Read the comment docs.

@AzfaarQureshi AzfaarQureshi changed the title Migrate CircleCI workflows to GitHub Actions (1/3) Migrate CircleCI build-and-test workflow to GitHub Actions (1/3) Dec 14, 2020
Comment on lines +1 to +4
{
"ignorePatterns": [
{
"pattern": "http(s)?://\\d+\\.\\d+\\.\\d+\\.\\d+"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy pasted from .circleci/check-links

pushd $HOME
npm install --save-dev [email protected]
popd
- run: ./.github/workflows/check-links/check-links.sh
Copy link
Member

Choose a reason for hiding this comment

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

I would move this in a separate action. This should not block a release or any testing/releasing steps, only merging :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh ok i see. So check_links should only be run on an open pull request?

Copy link
Member

Choose a reason for hiding this comment

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

Can be run on master as well, but should not block other actions if possible

@AzfaarQureshi
Copy link
Contributor Author

@bogdandrutu I've separated out check-links into its own workflow so it doesn't block build-and-test :)

@AzfaarQureshi
Copy link
Contributor Author

(its failing contrib-tests but @tigrannajaryan says thats not a blocker for collector-core PRs)

@bogdandrutu bogdandrutu merged commit 6196bd8 into open-telemetry:master Dec 17, 2020
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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.

2 participants