Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-bee committed Oct 22, 2024
2 parents 825dcca + 53f3997 commit 4713eb3
Show file tree
Hide file tree
Showing 764 changed files with 77,963 additions and 5,648 deletions.
10 changes: 9 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
commons-libs
user-documentation
yaku-apps-python
yaku-apps-typescript
yaku-apps-python/packages/autopilot-utils/tests-pex
yaku-apps-python/packages/autopilot-utils/tests/app_chained_multi_evaluator
yaku-apps-python/packages/autopilot-utils/tests/app_multi_command
yaku-apps-python/packages/autopilot-utils/tests/app_multi_evaluator
yaku-apps-python/packages/autopilot-utils/tests/app_single_command
yaku-apps-python/packages/autopilot-utils/tests/app_single_evaluator
yaku-apps-python/packages/autopilot-utils/tests/app_subprocess_steps
yaku-apps-python/packages/autopilot-utils/tests/app_super_simple_evaluator
yaku-apps-python/packages/autopilot-utils/tests/demo_app
qg-api-service/qg-api-service/node_modules
qg-api-service/node_modules
node_modules
15 changes: 14 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
common --@aspect_rules_ts//ts:skipLibCheck=always
common --@aspect_rules_ts//ts:skipLibCheck=always
build:ci --build_metadata=ROLE=CI
build:ci --bes_results_url=https://app.buildbuddy.io/invocation/
build:ci --bes_backend=grpcs://remote.buildbuddy.io
build:ci --remote_cache=grpcs://yaku.buildbuddy.io
build:ci --remote_timeout=3600
build:ci --experimental_remote_cache_compression
build:ci --experimental_remote_cache_compression_threshold=100
build:ci --nolegacy_important_outputs
build:ci --remote_executor=grpcs://yaku.buildbuddy.io
build:ci --jobs=50
build:ci --noslim_profile
build:ci --experimental_profile_include_target_label
build:ci --experimental_profile_include_primary_output
20 changes: 16 additions & 4 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
env:
REGISTRY: ghcr.io

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -26,11 +30,19 @@ jobs:
disk-cache: ${{ github.workflow }}
repository-cache: true

- name: Build with Bazel
run: bazel build //...
- name: Build
run: |
bazel build \
--config=ci \
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} \
//...
- name: Test with Bazel
run: bazel test //...
- name: Test
run: |
bazel test \
--config=ci \
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} \
//...
####
## only on push to main
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.idea/
bazel-*
node_modules
htmlcov/
25 changes: 25 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"cSpell.words": [
"bazel",
"genhtml",
"htmlcov",
"lcov",
"papsr",
"yaku"
],
"coverage-gutters.coverageFileNames": [
"bazel-out/_coverage/_coverage_report.dat"
],
"coverage-gutters.ignoredPathGlobs": "**/{node_modules,venv,.venv,vendor,bazel-bin,bazel-out,bazel-testlogs}/**",
"[python]": {
"diffEditor.ignoreTrimWhitespace": false,
"gitlens.codeLens.symbolScopes": [
"!Module"
],
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnType": true,
"editor.formatOnSave": false,
"editor.wordBasedSuggestions": "off"
},
"python.defaultInterpreterPath": "yaku-apps-python/3rdparty/.venv/bin/python"
}
27 changes: 26 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,36 @@ go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//onyx:go.mod")
use_repo(go_deps, "com_github_azure_azure_sdk_for_go_sdk_azcore", "com_github_azure_azure_sdk_for_go_sdk_azidentity", "com_github_azure_azure_sdk_for_go_sdk_storage_azblob", "com_github_chigopher_pathlib", "com_github_invopop_jsonschema", "com_github_invopop_yaml", "com_github_netflix_go_iomux", "com_github_pkg_errors", "com_github_spf13_afero", "com_github_spf13_cobra", "com_github_spf13_viper", "com_github_stretchr_testify", "com_github_xeipuuv_gojsonschema", "in_gopkg_natefinch_lumberjack_v2", "in_gopkg_yaml_v3", "org_uber_go_zap")

###
# Python
###

PYTHON_VERSION = "3.11"

# Update the version to the release found here:
# https://github.com/bazelbuild/rules_python/releases.
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.36.0")

bazel_dep(name = "aspect_rules_py", version = "1.0.0-rc0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = PYTHON_VERSION, configure_coverage_tool = True)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

pip.parse(
hub_name = "pip",
python_version = PYTHON_VERSION,
requirements_lock = "//yaku-apps-python:3rdparty/requirements_lock.txt",
)

use_repo(pip, "pip")

###
# core image
###

bazel_dep(name = "aspect_bazel_lib", version = "2.8.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.9.1")
bazel_dep(name = "rules_oci", version = "2.0.1")
bazel_dep(name = "rules_pkg", version = "0.10.1")
bazel_dep(name = "container_structure_test", version = "1.15.0")
Expand Down
Loading

0 comments on commit 4713eb3

Please sign in to comment.