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

execute runner jobs in container #1154

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

demisx
Copy link
Collaborator

@demisx demisx commented Feb 28, 2023

Goal

The goal of this PR is to move jobs to docker executor in the following workflows:

  1. Verify PR Commit
  2. Run Post PR Merge Actions

Part of #1136

@demisx demisx linked an issue Feb 28, 2023 that may be closed by this pull request
9 tasks
@demisx demisx self-assigned this Feb 28, 2023
@demisx demisx force-pushed the 1136-run-ci-jobs-in-container branch 26 times, most recently from 8ba48c5 to 29f5480 Compare March 1, 2023 04:45
@demisx demisx force-pushed the 1136-run-ci-jobs-in-container branch 3 times, most recently from 78e53e1 to 8781cae Compare March 2, 2023 22:47
cargo llvm-cov -v --no-fail-fast --workspace --lcov --output-path lcov.info \
--ignore-filename-regex "^.*\/(mock\.rs|weights(\.rs)?|benchmarking\.rs).*$" \
--exclude "frequency,frequency-cli,frequency-runtime,frequency-service" \
--features all-frequency-features
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Making sure the same crate is used to generate coverage in this workflow as in "Verify PR" one.

run-integration-tests:
- '**/*.rs'
- '**/Cargo.toml'
- 'integration-tests/**/*.{ts,json}'
- '.github/**/*.yml'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I want changes in .github/ folder trigger all jobs as a sanity check. I found myself constantly adding a temporary delete file just to do the same.


# Workaround to handle skipped required check inside matrix
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks
build-binaries-dummy:
needs: changes
if: needs.changes.outputs.build-binary != 'true'
runs-on: ubuntu-20.04
container: ubuntu:20.04
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using official Ubuntu 20.04 image for now. I will probably create CI dedicated image in a subsequent PR with preinstalled tools and libs.

@demisx demisx force-pushed the 1136-run-ci-jobs-in-container branch from 8781cae to d510e3f Compare March 2, 2023 23:04
@demisx demisx marked this pull request as ready for review March 2, 2023 23:04
@demisx demisx force-pushed the 1136-run-ci-jobs-in-container branch from d510e3f to 0ee68f6 Compare March 3, 2023 15:30
- name: Check Out Repo
uses: actions/checkout@v3
- name: Reset Runner
uses: ./.github/workflows/common/reset-self-hosted-runner
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No need for manually resetting anymore.

@demisx demisx force-pushed the 1136-run-ci-jobs-in-container branch 13 times, most recently from a8eaf1a to c4faf7c Compare March 6, 2023 16:29
@demisx demisx force-pushed the 1136-run-ci-jobs-in-container branch from c4faf7c to fe26f9b Compare March 7, 2023 02:00
@demisx demisx enabled auto-merge (squash) March 7, 2023 02:02
@demisx demisx merged commit 6b3643f into main Mar 7, 2023
@demisx demisx deleted the 1136-run-ci-jobs-in-container branch March 7, 2023 02:25
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.

Run CI jobs in container
3 participants