forked from google/digitalbuildings
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
447 changed files
with
25,397 additions
and
9,009 deletions.
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,7 @@ | ||
Dockerfile | ||
.git/ | ||
ontology/docs | ||
/tools/**/build | ||
/tools/**/dist | ||
/tools/**/*.egg-info* | ||
**/venv/** |
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 |
---|---|---|
|
@@ -7,6 +7,13 @@ assignees: '' | |
|
||
--- | ||
|
||
**IMPORTANT** | ||
DO NOT INCLUDE ANY PROJECT-SPECIFIC INFORMATION IN THIS TICKET! | ||
ANY PROJECT-SPECIFIC CONTEXT (E.G. BUILDING CONFIG INPUTS) SHOULD BE | ||
EMAILED DIRECTLY TO: [email protected] | ||
|
||
PLEASE REFERENCE THIS ISSUE LINK IN YOUR EMAIL TO THAT GROUP | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
|
@@ -28,3 +35,5 @@ OS where the bug is reported (ubuntu, macos, windows, or others) | |
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
|
||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,80 @@ | ||
# This workflow adds guids to any newly added entity types in the ontology and validates the ontology | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Ontology Validator | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- ontology/yaml/** | ||
|
||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- ontology/yaml/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the branch the PR is coming from if PR | ||
if: github.event_name == 'pull_request' | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Checkout head if push | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies for ontology YAML validator | ||
run: | | ||
python setup.py install | ||
working-directory: ./tools/validators/ontology_validator | ||
|
||
### Only generate type guids if triggered by a push ### | ||
|
||
- name: Get modified entity type files | ||
id: changed-entity-type-files | ||
if: github.event_name == 'push' | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: '**/ontology/yaml/**/entity_types/*.yaml' | ||
|
||
- name: Run types GUID generator if any entity types files are changed | ||
if: github.event_name == 'push' && steps.changed-entity-type-files.outputs.any_changed == 'true' | ||
run: | | ||
python setup.py install | ||
for file in ${{ steps.changed-entity-type-files.outputs.all_changed_files }}; do | ||
python types_guid_generator/types_guid_generator.py -f=../../../$file | ||
done | ||
working-directory: ./tools/guid_generator/ontology | ||
|
||
- name: Commit files changed by types GUID generator | ||
if: github.event_name == 'push' && steps.changed-entity-type-files.outputs.any_changed == 'true' | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: db-robot | ||
author_email: [email protected] | ||
message: 'Add GUIDs to new entity types' | ||
|
||
- name: Run ontology YAML validator with type guid checks if push | ||
if: github.event_name == 'push' | ||
run: | | ||
python validator.py --original=../../../../ontology/yaml/resources --interactive=False | ||
working-directory: ./tools/validators/ontology_validator/yamlformat | ||
|
||
### End of type guid generation ### | ||
|
||
- name: Run ontology YAML validator without type guid checks if PR | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
python validator.py --original=../../../../ontology/yaml/resources --interactive=False --allow_missing_type_guids | ||
working-directory: ./tools/validators/ontology_validator/yamlformat |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
*.DS_Store | ||
package-lock.json | ||
yarn.lock | ||
venv/ |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM python:3.10 | ||
WORKDIR /source | ||
COPY . /source | ||
RUN /source/tools/scripts/docker_setup.sh | ||
WORKDIR /work | ||
ENTRYPOINT ["/source/tools/scripts/docker_entry.sh"] |
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
Oops, something went wrong.