-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into group_error_prone
- Loading branch information
Showing
323 changed files
with
4,362 additions
and
1,375 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
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
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
git checkout -b "${head_ref}" fork/${head_ref} | ||
changed_directories="$(git diff --name-only "fork/${head_ref}" "origin/${base_ref}")" | ||
fi | ||
if [[ ${changed_directories} =~ "library_generation/" ]]; then | ||
if [[ ${changed_directories} =~ "hermetic_build/" ]]; then | ||
echo "should_run=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "should_run=false" >> $GITHUB_OUTPUT | ||
|
@@ -46,32 +46,21 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: install pyenv | ||
python-version: 3.12 | ||
- name: install python modules and dependencies | ||
shell: bash | ||
run: | | ||
set -ex | ||
curl https://pyenv.run | bash | ||
# setup environment | ||
export PYENV_ROOT="$HOME/.pyenv" | ||
export PATH="$PYENV_ROOT/bin:$PATH" | ||
echo "PYENV_ROOT=${PYENV_ROOT}" >> $GITHUB_ENV | ||
echo "PATH=${PATH}" >> $GITHUB_ENV | ||
set +ex | ||
- name: install python dependencies | ||
shell: bash | ||
run: | | ||
set -ex | ||
pushd library_generation | ||
pip install -r requirements.txt | ||
pip install . | ||
popd | ||
pip install --upgrade pip | ||
pip install --require-hashes -r hermetic_build/common/requirements.txt | ||
pip install hermetic_build/common | ||
pip install --require-hashes -r hermetic_build/library_generation/requirements.txt | ||
pip install hermetic_build/library_generation | ||
- name: Run integration tests | ||
shell: bash | ||
run: | | ||
set -x | ||
python -m unittest library_generation/test/integration_tests.py | ||
python -m unittest hermetic_build/library_generation/tests/integration_tests.py | ||
library-generation-unit-tests: | ||
runs-on: ubuntu-22.04 | ||
needs: should-run-library-generation-tests | ||
|
@@ -80,23 +69,26 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: install python dependencies | ||
python-version: 3.12 | ||
- name: install python modules and dependencies | ||
shell: bash | ||
run: | | ||
set -ex | ||
pushd library_generation | ||
pip install -r requirements.txt | ||
pip install . | ||
popd | ||
pip install --upgrade pip | ||
pip install --require-hashes -r hermetic_build/common/requirements.txt | ||
pip install hermetic_build/common | ||
pip install --require-hashes -r hermetic_build/library_generation/requirements.txt | ||
pip install hermetic_build/library_generation | ||
pip install --require-hashes -r hermetic_build/release_note_generation/requirements.txt | ||
pip install hermetic_build/release_note_generation | ||
- name: Run shell unit tests | ||
run: | | ||
set -x | ||
library_generation/test/generate_library_unit_tests.sh | ||
hermetic_build/library_generation/tests/generate_library_unit_tests.sh | ||
- name: Run python unit tests | ||
run: | | ||
set -x | ||
python -m unittest discover -s library_generation/test/ -p "*unit_tests.py" | ||
python -m unittest discover -s hermetic_build -p "*unit_tests.py" | ||
library-generation-lint-shell: | ||
runs-on: ubuntu-22.04 | ||
needs: should-run-library-generation-tests | ||
|
@@ -106,7 +98,7 @@ jobs: | |
- name: Run ShellCheck | ||
uses: ludeeus/[email protected] | ||
with: | ||
scandir: 'library_generation' | ||
scandir: 'hermetic_build' | ||
format: tty | ||
severity: error | ||
library-generation-lint-python: | ||
|
@@ -115,16 +107,23 @@ jobs: | |
if: needs.should-run-library-generation-tests.outputs.should_run == 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: install python dependencies | ||
shell: bash | ||
run: | | ||
set -ex | ||
pushd library_generation | ||
pip install -r requirements.txt | ||
popd | ||
pip install --upgrade pip | ||
pip install --require-hashes -r hermetic_build/common/requirements.txt | ||
pip install hermetic_build/common | ||
pip install --require-hashes -r hermetic_build/library_generation/requirements.txt | ||
pip install hermetic_build/library_generation | ||
pip install --require-hashes -r hermetic_build/release_note_generation/requirements.txt | ||
pip install hermetic_build/release_note_generation | ||
- name: Lint | ||
shell: bash | ||
run: | | ||
# exclude generated golden files | ||
# exclude owlbot until further refaction | ||
black --check library_generation --exclude "(library_generation/test/resources/goldens)" | ||
black --check hermetic_build --exclude "(library_generation/tests/resources/goldens)" |
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 @@ | ||
{ | ||
".": "2.47.0" | ||
".": "2.49.0" | ||
} |
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
Oops, something went wrong.