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 to monorepo #249

Merged
merged 45 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b7d0b2a
Remove raye lpath repo
patrick-5546 Mar 8, 2024
19ef453
Do not use vcs to clone repos
patrick-5546 Mar 8, 2024
a31a3e3
Remove checkout action
patrick-5546 Mar 8, 2024
0f5ee0b
Remove test_definition inputs
patrick-5546 Mar 8, 2024
c025d23
Merge remote-tracking branch 'origin/main' into patrick-5546/monorepo
patrick-5546 Mar 8, 2024
f06d479
Update docs site url
patrick-5546 Mar 8, 2024
52c993f
Migrate test definitions to tests
patrick-5546 Mar 8, 2024
31127d6
Add notebooks PR 23
patrick-5546 Mar 8, 2024
0070418
Remove docs and notebooks folders from file explorer
patrick-5546 Mar 8, 2024
4114757
Migrate notebooks infrastructure
patrick-5546 Mar 8, 2024
5a469a5
Do not ignore src dir
patrick-5546 Mar 8, 2024
505be96
Add boat_simulator at PR 77
patrick-5546 Mar 8, 2024
db2be71
Make release category for each sub-team
patrick-5546 Mar 9, 2024
1db291f
Migrate boat simulator infrastructure
patrick-5546 Mar 9, 2024
03c0764
Add controller at PR 30
patrick-5546 Mar 9, 2024
e08d4c7
Migrate controller infrastructure
patrick-5546 Mar 9, 2024
a8eaed8
Add diagnostics at pr 26
patrick-5546 Mar 9, 2024
6eae499
Migrate diagnostics infrastructure
patrick-5546 Mar 9, 2024
4179ac7
Add local pathfinding at pr 70
patrick-5546 Mar 9, 2024
841a7cf
Merge local pathfinding infrastructure
patrick-5546 Mar 9, 2024
379fdf2
Enable markdown formatting
patrick-5546 Mar 9, 2024
7acbdca
Add markdownlint ignore file
patrick-5546 Mar 9, 2024
ad08d5b
Add network systems at pr 99
patrick-5546 Mar 9, 2024
815d2f8
Merge network systems infrastructure
patrick-5546 Mar 9, 2024
c37d39f
Add custom interfaces at pr 34
patrick-5546 Mar 9, 2024
8ac1ce3
Merge custom interfaces infrastructure
patrick-5546 Mar 9, 2024
16c31f9
Add virtual iridium at pr 2
patrick-5546 Mar 9, 2024
70eb99a
Add website at pr 100
patrick-5546 Mar 9, 2024
6b916a3
Merge website infrastructure
patrick-5546 Mar 9, 2024
9b91c0e
markdownlint ignore virtual iridium
patrick-5546 Mar 9, 2024
5fdbabc
Add docs site badge
patrick-5546 Mar 9, 2024
c728520
Increase markdown link check timeout
patrick-5546 Mar 9, 2024
439accd
Add ignore patterns
patrick-5546 Mar 9, 2024
11b4027
Fix dead link
patrick-5546 Mar 9, 2024
d0f9705
Decrease markdown link check timeout
patrick-5546 Mar 9, 2024
c245637
Cleanup test action
patrick-5546 Mar 9, 2024
f450b4c
Remove unneeded ignore
patrick-5546 Mar 9, 2024
39ec881
Combine actions
patrick-5546 Mar 9, 2024
ea50197
Fix bugs
patrick-5546 Mar 9, 2024
7d6f540
Remove codespace permissions for other repos
patrick-5546 Mar 9, 2024
6964434
Try fixing version warning
patrick-5546 Mar 9, 2024
c946116
Use relative links in docs snippets
patrick-5546 Mar 9, 2024
826dc11
Remove docs references to polaris.repos
patrick-5546 Mar 9, 2024
dbea211
Update url to docs site
patrick-5546 Mar 9, 2024
e8b2859
Cleanup docs ci prereqs
patrick-5546 Mar 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .devcontainer/base-dev/base-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ RUN apt-get update \
protobuf-compiler \
python3-colcon-common-extensions \
python3-rosdep \
python3-vcstool \
tzdata \
&& apt-get autoremove -y \
&& apt-get clean -y \
Expand Down
13 changes: 0 additions & 13 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,6 @@
"postCreateCommand": "./setup.sh",
// Set *default* container specific settings.json values on container create.
"customizations": {
"codespaces": {
"repositories": {
"UBCSailbot/boat_simulator": {"permissions": "write-all"},
"UBCSailbot/controller": {"permissions": "write-all"},
"UBCSailbot/custom_interfaces": {"permissions": "write-all"},
"UBCSailbot/local_pathfinding": {"permissions": "write-all"},
"UBCSailbot/network_systems": {"permissions": "write-all"},
"UBCSailbot/notebooks": {"permissions": "write-all"},
"UBCSailbot/raye-local-pathfinding": {"permissions": "write-all"},
"UBCSailbot/website": {"permissions": "write-all"},
"UBCSailbot/virtual_iridium": {"permissions": "write-all"}
}
},
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
Expand Down
24 changes: 24 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,29 @@
# review when someone opens a pull request.
* @patrick-5546

# boat_simulator
/notebooks/boat_simulator @DFriend01
/src/boat_simulator @DFriend01

# custom_interfaces
/src/custom_interfaces @UBCSailbot/soft-leads

# controller
/notebooks/controller @DFriend01
/src/controller @DFriend01

# diagnostics
/src/diagnostics @samdai01

# docs
/docs/ @DFriend01

# local_pathfinding
/notebooks/local_pathfinding @jamenkaye
/src/local_pathfinding @jamenkaye

# network_systems
/src/network_systems @hhenry01

# website
/src/website @jahn18
25 changes: 0 additions & 25 deletions .github/actions/ament-lint/action.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/actions/checkout/action.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/actions/clang-tidy/action.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/actions/run-in-container/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# documentation: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: 'Run in Container'
description: 'Run script using our Docker image'

inputs:
script:
description: 'Script to run'
required: true
run-website:
description: 'Whether to run the website image'
required: false
default: 'false'
linter:
description: 'For the lint script, the linter to run'
required: false

runs:
using: "composite"
steps:
- name: Run sailbot workspace image
shell: bash
run: docker compose -f .devcontainer/docker-compose.yml up -d

- name: Run website image
if: inputs.run-website == 'true'
shell: bash
run: docker compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.website.yml up -d

- name: Run script inside sailbot workspace image
shell: bash
run: docker compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export LINTER=${{ inputs.linter }} && cd /workspaces/sailbot_workspace && .github/actions/run-in-container/${{ inputs.script }}.sh"
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [[ $LOCAL_RUN != "true" ]]; then
fi

# Exclude repos and files we don't want to lint
VALID_SRC_DIRS=$(ls src | grep -v -e virtual_iridium -e raye-local-pathfinding -e website -e notebooks -e polaris.repos)
VALID_SRC_DIRS=$(ls src | grep -v -e virtual_iridium -e website)
lint_errors=0

# Loop over each directory and lint it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if [[ $LOCAL_RUN != "true" ]]; then
./build.sh RelWithDebInfo OFF
fi

python3 .github/actions/clang-tidy/ament_clang_tidy.py build/compile_commands.json --jobs 8
python3 .github/actions/run-in-container/ament_clang_tidy.py build/compile_commands.json --jobs 8
25 changes: 0 additions & 25 deletions .github/actions/test/action.yml

This file was deleted.

29 changes: 21 additions & 8 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,40 @@ changelog:
- dependabot
- imgbot

# emoji reference (outdated): https://gist.github.com/rxaviers/7360908
categories:
- title: "Bug Fixes :beetle:"
labels:
- bug

- title: "Dev Container Configuration Changes :whale:"
- title: "Website Changes :computer:"
labels:
- devcontainer
- web

- title: "VS Code Configuration Changes :computer:"
- title: "Pathfinding Changes :earth_americas:"
labels:
- vscode
- path

- title: "GitHub Configuration Changes :octocat:"
- title: "Boat Simulator Changes :video_game:"
labels:
- github
- sim

- title: "Docs Site Updates :book:"
- title: "Controller Changes :boat:"
labels:
- ctrl

- title: "Network Systems Changes :artificial_satellite:"
labels:
- net

- title: "Docs Site Changes :book:"
labels:
- docs

- title: "Other Changes :hammer_and_wrench:"
- title: "Infrastructure Changes :hammer_and_wrench:"
labels:
- infrastructure

- title: "Other Changes"
labels:
- "*"
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# https://github.com/gaurav-nelson/github-action-markdown-link-check
markdown-link-check:
runs-on: ubuntu-latest
timeout-minutes: 1
timeout-minutes: 2
steps:
- name: Checkout workspace
uses: actions/checkout@v4
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
name: Deploy Docs version
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.action != 'closed'
needs: [markdownlint, markdown-link-check, markdown-link-redirection-check, docs-build]
needs: [docs-build]
permissions:
contents: write
steps:
Expand Down
Loading