-
Notifications
You must be signed in to change notification settings - Fork 2
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
Github Workflows #82
Draft
senkevinli
wants to merge
24
commits into
master
Choose a base branch
from
workflow
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Github Workflows #82
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
bf76d42
starting workflow?
senkevinli 68bfd37
fixed syntax
senkevinli f2658da
trying matrix
senkevinli e4d9210
fixed typo
senkevinli d9d901d
added testing stage
senkevinli 502c057
fixed typo in ci.yaml
senkevinli 1ea1420
removed tty
senkevinli 1fc815f
pinning aiohttp for now
senkevinli edf93df
adjusting tty in makefiles
senkevinli 04b0cb6
updating python version
senkevinli cc752a0
added more tests
senkevinli 05e9042
changing options again
senkevinli c11a287
changed python environment
senkevinli 28b4b8e
syntax fix
senkevinli 46418fd
factored out tests to jobs
senkevinli c0ddd6c
fixed syntax again
senkevinli fd092ba
fixed setup
senkevinli fe11c05
added another workflow for xavier
senkevinli 4789522
bring in master changes
senkevinli 67a7aa5
fix typo + add image-rec-auto
senkevinli 43d6a0c
it option to image-rec-auto makefile
senkevinli afb9e42
solve issue with imagery tests
senkevinli e4428dd
delete prod.yaml + get rid of clean up
senkevinli aeaec7e
stop redundant checks
senkevinli 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 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 |
---|---|---|
@@ -0,0 +1,146 @@ | ||
name: Orchestra | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
service: [ | ||
mavproxy, | ||
interop-proxy, | ||
telemetry, | ||
pong, | ||
forward-interop, | ||
imagery, | ||
image-rec-master, | ||
image-rec-auto, | ||
grafana | ||
] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Building services | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE: ${{ matrix.service }} | ||
|
||
test-interop-proxy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-elixir@v1 | ||
with: | ||
elixir-version: '1.8' | ||
otp-version: '20' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: interop-proxy | ||
OPTIONS: "-i" | ||
|
||
test-telemetry: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: telemetry | ||
OPTIONS: "-i" | ||
|
||
test-forward-interop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: forward-interop | ||
OPTIONS: "-i" | ||
|
||
test-pong: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: pong | ||
OPTIONS: "-i" | ||
|
||
test-imagery: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: imagery | ||
OPTIONS: "-i" | ||
|
||
test-image-rec-master: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: image-rec-master | ||
OPTIONS: "-i" | ||
|
||
test-image-rec-auto: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Testing service | ||
run: | | ||
./ci/script.sh | ||
env: | ||
SERVICE_TEST: image-rec-auto | ||
OPTIONS: "-i" |
This file contains 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 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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!/bin/sh -ex | ||
|
||
echo $SERVICE_TEST | ||
# Build a service if the env var is set. | ||
if [ -n "$SERVICE" ]; then | ||
make "$SERVICE" | ||
fi | ||
|
||
# Run tests if specified. | ||
if [ -n "$SERVICE_TEST" ]; then | ||
# Change options for tty | ||
make "$SERVICE_TEST"-test | ||
fi |
This file contains 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 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
Binary file not shown.
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.7-alpine | ||
FROM python:3.8-alpine | ||
|
||
WORKDIR /test | ||
|
||
|
This file contains 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 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
aiohttp | ||
aiohttp==3.6.2 | ||
aioredis | ||
protobuf>=3.6.1 |
This file contains 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 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 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 |
---|---|---|
|
@@ -82,7 +82,7 @@ export default class SyncBackend { | |
const { body: msg } = | ||
await request.get(this._syncUrl + '/api/available') | ||
.proto(imagery.AvailableImages) | ||
.timeout(5000); | ||
.timeout(3000); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 5 second timeout is causing some tests to fail intermittently. |
||
|
||
return msg.id_list; | ||
} | ||
|
This file contains 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 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 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 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
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.
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.
Solves issue of test flakiness mentioned in #59. Jest by default runs tests in parallel, so multiple tests were modifying the sqlite file at the same time (hence the unexplained behavior of rolling back a transaction that wasn't underway).