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

Upgrade bazel-ios-fork to v2.10.2 #6

Draft
wants to merge 317 commits into
base: bazel-ios-fork
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
317 commits
Select commit Hold shift + click to select a range
9ff8e64
Remove subscribeToBackplane, adjust failsafe op
werkt Sep 26, 2023
b21ab2e
Removing AWS/GCP Metrics and Admin controls
werkt Sep 28, 2023
f97f048
Remove unused setOnCancelHandler
werkt Oct 3, 2023
c2c1544
Update BWoB docs for ensureOutputsPresent
werkt Oct 4, 2023
09015c9
Disable Bzlmod explicitly in .bazelrc
meteorcloudy Oct 6, 2023
1041b57
Log write errors with worker address
amishra-u Sep 29, 2023
30412ad
Revert "Use integer ids for Sqlite bidirectional index"
80degreeswest Oct 8, 2023
8379068
Common String.format for PipelineStage
werkt Oct 3, 2023
fd20d13
Cleanup matched logic in SWC listener
werkt Oct 3, 2023
632fceb
Refactor SWC matcher and clarify Nullable
werkt Oct 3, 2023
7385c74
Interrupt matchStage to induce prepare shutdown
werkt Oct 3, 2023
79cf648
Specify example config with grpc target
werkt Oct 3, 2023
d73628b
Remove SpringBoot usage
werkt Oct 3, 2023
6f88e34
Enable graceful shutdown for server (#1490)
80degreeswest Oct 10, 2023
81122e7
refactor: code cleanup
jasonschroeder-sfdc Oct 6, 2023
ad44854
Log paths created on putDirectory
werkt Jun 22, 2023
b31ffed
Permit regex realInputDirectories
werkt Jul 7, 2023
1dec684
Log execPath rather than the cache dir path
werkt Jul 7, 2023
6af857a
Shore up OutputDirectory for silence on duplicates
werkt Jul 7, 2023
71a928c
Trigger realInputDirectories to have empty files
werkt Jul 7, 2023
f8017bd
Switch to positive check for linkInputDirectories
werkt Jul 8, 2023
5d88e54
docs(configuration): document --prometheus_port CLI argument
jasonschroeder-sfdc Oct 12, 2023
21448c3
docs(configuration): readability and typos
jasonschroeder-sfdc Oct 12, 2023
461cc5a
style(configuration.md): table formatting
jasonschroeder-sfdc Oct 12, 2023
b74531c
feat: support --redis_uri command line option
jasonschroeder-sfdc Oct 6, 2023
d860b27
docs(configuration): document the --redis_uri command line options
jasonschroeder-sfdc Oct 12, 2023
10bf139
Example should use `container_image` instead of `java_image`
sousajo-cc Oct 11, 2023
9d4c86c
chore: bump rules_jvm_external
jasonschroeder-sfdc Sep 22, 2023
5bc4564
chore: bump rules_cc
jasonschroeder-sfdc Sep 22, 2023
edf2211
Implement local resources for workers (#1282)
luxe Oct 17, 2023
97e3b90
build: override grpc dependencies with our dependencies
jasonschroeder-sfdc Oct 16, 2023
96f239d
chore(deps): bump protobuf runtime to 3.19.1
jasonschroeder-sfdc Oct 16, 2023
af3f34e
chore(deps) add transitive dependencies
jasonschroeder-sfdc Oct 16, 2023
380f8a1
feat: add Proto reflection service to shard worker
jasonschroeder-sfdc Oct 16, 2023
7e7979d
fixup! build: override grpc dependencies with our dependencies
jasonschroeder-sfdc Oct 16, 2023
1f9d01f
fixup! chore(deps) add transitive dependencies
jasonschroeder-sfdc Oct 16, 2023
578589f
Bug: Fix Blocked thread in WriteStreamObserver Caused by CASFile Writ…
amishra-u Oct 24, 2023
dfa5937
Pin the Java toolchain to `remotejdk_17` (#1509)
stefanobaghino Oct 24, 2023
f6459d1
docs: add markdown language specifiers for code blocks
jasonschroeder-sfdc Oct 18, 2023
018e177
Support OutputPaths in OutputDirectory
werkt Oct 25, 2023
8b37013
Permit Absolute Symlink Targets with configuration
werkt Oct 26, 2023
df9ce1d
chore: update bazel to 6.4.0 (#1513)
jasonschroeder-sfdc Oct 29, 2023
bd740c9
Rename instance types (#1514)
luxe Oct 30, 2023
2a61f77
Create SymlinkNode outputs during upload (#1515)
werkt Oct 30, 2023
76c2657
feat: Implement CAS lease extension (#1455)
amishra-u Oct 31, 2023
cfa2e18
Bump org.json:json from 20230227 to 20231013 in /admin/main (#1516)
dependabot[bot] Oct 31, 2023
ff00c8f
Re-add missing graceful shutdown functionality (#1520)
80degreeswest Nov 1, 2023
afb0603
Technically correct to unwrap EE on lock failure
werkt Jul 14, 2023
9b5ec43
Bump rules_oss_audit and patch for py3.11
werkt Oct 17, 2023
f9ef75a
Prevent healthStatusManager NPE on start failure
werkt Oct 17, 2023
20512f6
Consistent check for publicName presence
werkt Nov 1, 2023
654032e
Read through external with query THROUGH=true
werkt Nov 1, 2023
b4359c5
Add --port option to worker
werkt Nov 1, 2023
5195809
Restore worker --root cmdline specification
werkt Nov 1, 2023
938c789
Make bf-executor small blob names consistent
werkt Nov 1, 2023
87face1
Configured output size operation failure
werkt Nov 2, 2023
58faec9
Restore abbrev port as -p
werkt Nov 2, 2023
cf6fc58
Update zstd-jni for latest version
jerrymarino Oct 31, 2023
6bc70e1
Attempt to resolve windows stamping
werkt Nov 3, 2023
b226725
Bug: Fix workerSet update logic for RemoteCasWriter
amishra-u Nov 2, 2023
751ac90
Detail storage requirements
werkt Nov 4, 2023
2bf3eae
Fix worker execution env title
werkt Nov 4, 2023
b6bddff
Add storage example descriptions
werkt Nov 4, 2023
c490925
Check for context cancelled before responding to error (#1526)
justinwon777 Nov 6, 2023
2a51c31
chore(deps): bump com.google.errorprone:error-prone
jasonschroeder-sfdc Oct 16, 2023
7ea1a9f
Worker name execution properties matching
werkt Nov 8, 2023
a4822c1
updates
luxe Apr 21, 2023
f1ea9b5
updates
luxe Apr 21, 2023
ccf763d
updates
luxe Apr 21, 2023
b7f5661
updates
luxe Apr 21, 2023
72b40ae
updates
luxe Apr 23, 2023
14c759b
Update ShardWorkerContext.java
luxe Nov 8, 2023
ca9bb92
Update ShardWorkerContext.java
luxe Nov 8, 2023
10e68c4
[execution] allow tmpfs and cgroups enforcement
werkt Nov 9, 2023
35883a4
Release resources when not keeping an operation (#1535)
werkt Nov 9, 2023
9d80f4e
Update queues.md
werkt Nov 9, 2023
aac33b6
Implement custom label header support for Grpc metrics interceptor (#…
rastenis Nov 10, 2023
f9882f7
Specify direct guava dependency usage (#1538)
werkt Nov 11, 2023
69e0248
Update lombok dependency for jdk21 (#1540)
werkt Nov 11, 2023
339aa13
Reorganize DequeueMatchEvaluator (#1537)
werkt Nov 11, 2023
025305a
Upgrade com_google_protobuf for jvm compatibility (#1539)
werkt Nov 11, 2023
f720909
Create buildfarm-worker-base-build-and-deploy.yml (#1534)
80degreeswest Nov 11, 2023
b7daba3
Add base image generation scripts (#1532)
80degreeswest Nov 11, 2023
dcff4f0
Fix buildfarm-worker-base-build-and-deploy.yml (#1541)
80degreeswest Nov 11, 2023
52318f8
Add public buildfarm image generation actions (#1542)
80degreeswest Nov 14, 2023
e343393
Update base image building action (#1544)
80degreeswest Nov 16, 2023
dae7f78
Add release image generation action (#1545)
80degreeswest Nov 16, 2023
b01889d
Limit workflow to canonical repository (#1547)
werkt Nov 16, 2023
dcee798
Check for "cores" exec property as min-cores match (#1548)
werkt Nov 16, 2023
221eae9
Consider output_* as relative to WD (#1550)
werkt Nov 19, 2023
91587e7
Implement Persistent Workers as an execution path (#1260)
wiwa Nov 20, 2023
a56b161
Locate Output Paths relative to WorkingDirectory (#1553)
werkt Nov 22, 2023
53e1fba
Remove incorrect external resolve of WD on upload (#1554)
werkt Nov 22, 2023
dd5c87b
Instance cleanups (#1555)
werkt Nov 30, 2023
d249393
BuildfarmExecutors moved to its own target (#1557)
werkt Nov 30, 2023
a7ef693
Update Jedis connection error handling for addWorker (#1552)
amishra-u Dec 1, 2023
a06b095
add github action to package and publish the helm chart as a released…
andrewrothstein Dec 5, 2023
68182ec
Assert correct context called for WSO responses (#1561)
werkt Dec 6, 2023
e26a000
Write onNext requires onCompleted to follow (#1565)
werkt Dec 12, 2023
859abb6
chore: update maven dependencies (#1434)
jasonschroeder-sfdc Dec 12, 2023
27194c7
build: support compiling protobuf on macOS (#1563)
jasonschroeder-sfdc Dec 12, 2023
1046e97
tests: bump bazelversion for integration tests (#1566)
jasonschroeder-sfdc Dec 12, 2023
8d6e93f
[tests] add unit test for local resources (#1558)
luxe Dec 13, 2023
fe2eba2
refactor: swap HealthStatusManager (#1568)
jasonschroeder-sfdc Dec 13, 2023
284845a
Update log level for blob location adjust (#1573)
amishra-u Dec 16, 2023
8950953
feat: Redis password from file (#1569)
jasonschroeder-sfdc Dec 16, 2023
a4551f0
docs: update AUTHORS and CONTRIBUTORS (#1572)
jasonschroeder-sfdc Dec 16, 2023
f9140c4
Identify Graceful Shutdown errors with severe (#1574)
werkt Dec 16, 2023
f76893e
Remove orphaned DequeueResults (#1575)
werkt Dec 16, 2023
1fa3c43
Clean up bf-mount usage/refactor (#1576)
werkt Dec 16, 2023
cf3ac77
Clean up bf-mount usage/refactor (#1577)
werkt Dec 16, 2023
ce31446
Refactor WriteStreamObserver logging (#1578)
werkt Dec 16, 2023
2a6f68c
Determine PipelineStage exception severity (#1579)
werkt Dec 16, 2023
a0ec481
Authored sandbox asNobody behavior (#1580)
werkt Dec 16, 2023
9156123
Provide Additional sandbox write paths in config (#1581)
werkt Dec 16, 2023
b48032b
Declare stat block information for FuseCAS (#1582)
werkt Dec 18, 2023
2097ef9
Try a new version of jekyll (#1583)
werkt Dec 18, 2023
d4de791
include (un)zip in images (#1590)
andrewrothstein Dec 21, 2023
f320a81
Remove rules k8s (#1587)
jasonschroeder-sfdc Dec 21, 2023
2870a3f
chore: bump rules_license to 0.0.7 (#1585)
jasonschroeder-sfdc Dec 21, 2023
1b52ac0
Bump rules_go and gazelle (#1584)
jasonschroeder-sfdc Dec 21, 2023
78b001c
[CI] skip server/worker audit on mac (#1592)
luxe Jan 2, 2024
b5425e0
Helm Chart: latest image tags not v-prefixed (#1591)
andrewrothstein Jan 2, 2024
41b4494
Update helm values to use safe defaults (#1597)
werkt Jan 2, 2024
088b8e1
Properly balance over nodes, not slot ranges (#1598)
werkt Jan 3, 2024
6b5db62
fix the shard-worker HPA. it is a StatefulSet and not a Deployment (#…
andrewrothstein Jan 3, 2024
413021d
Use integer ids for Sqlite bidirectional index (#1599)
werkt Jan 3, 2024
16b3aea
Write cleanups (#1600)
werkt Jan 3, 2024
51608f7
fix: format without placeholders (#1586)
jasonschroeder-sfdc Jan 3, 2024
74b1f56
chore: Update proto file styling (#1594)
amishra-u Jan 3, 2024
e51f1e1
fix: Periodically Refresh Active Storage Workers With StartTime (#1549)
amishra-u Jan 3, 2024
c79b213
Revert "Use integer ids for Sqlite bidirectional index (#1599)" (#1603)
werkt Jan 4, 2024
044597e
Separate fields for storage and execute workers in BackplaneStatus (#…
amishra-u Jan 7, 2024
74316e7
Decode nodeId with jedis util SafeEncoder (#1607)
werkt Jan 8, 2024
b62a4ce
build: start adopting bzlmod (#1564)
jasonschroeder-sfdc Jan 9, 2024
373cb21
fix(coverage): coverage numbers are not accurate (#1609)
jasonschroeder-sfdc Jan 10, 2024
b40c14b
Add `helm lint` CI job. Split tag/release for the Helm chart from the…
andrewrothstein Jan 10, 2024
d155c0b
Publish storage worker and execute worker pool size in prometheus (#1…
amishra-u Jan 12, 2024
646d956
bf-cat Output salt/platform, deindent command (#1615)
werkt Jan 22, 2024
ea35e56
Provide hashedName in BackplaneStatus Queue Name (#1616)
werkt Jan 22, 2024
fe2c51c
set expire and drop invocationId (#1589)
coder1363691 Jan 25, 2024
b7980a0
Add OSSF scorecard (#1618)
jasonschroeder-sfdc Jan 25, 2024
8a7873b
chore: remove rules_oss_audit (#1617)
jasonschroeder-sfdc Jan 25, 2024
bb60196
Changes to upgrade to mockito 5.10.0 (#1623)
werkt Feb 4, 2024
8a3abb6
Fix com_grail_bazel_toolchain fetch (#1630)
werkt Feb 13, 2024
60b3890
fix template bugs with with (#1631)
andrewrothstein Feb 15, 2024
1eb0528
Update llvm-toolchains repo url (#1633)
werkt Feb 15, 2024
cab70f2
Describe maxSizeBytes default and sentinel (#1636)
werkt Feb 18, 2024
14810a4
migrate dependency to Bitnami Redis helm chart (#1637)
andrewrothstein Feb 19, 2024
7ec7fdb
Dequeue flags expire after timeout effect (#1642)
werkt Feb 23, 2024
b38568b
Update .bazelversion to use bazel 7.0.2 (#1641)
80degreeswest Feb 26, 2024
4318801
Disable rules_docker transitions (#1648)
80degreeswest Feb 29, 2024
535515b
style: buildifier (#1653)
jasonschroeder-sfdc Mar 1, 2024
6994b3c
chore: update CODEOWNERS (#1654)
jasonschroeder-sfdc Mar 1, 2024
ea78d25
build: pin python-dateutil (#1657)
jasonschroeder-sfdc Mar 1, 2024
9bc6b02
chore(deps): bump io_grpc_grpc_java to 1.62.2 (#1658)
jasonschroeder-sfdc Mar 2, 2024
55ac48c
build(protobuf): switch to protobuf from BCR (#1656)
jasonschroeder-sfdc Mar 2, 2024
f2166af
refactor(tests): replace ExpectedException with assertThrows (#1652)
jasonschroeder-sfdc Mar 2, 2024
c5335c0
docs(metrics): Update prometheus metrics (#1650)
jasonschroeder-sfdc Mar 2, 2024
80b5bde
chore: bump googleapis (#1655)
jasonschroeder-sfdc Mar 2, 2024
cf5f08f
build(bzlmod): turn off lockfile completely (#1651)
jasonschroeder-sfdc Mar 2, 2024
1fa529b
build: add cgroup-tools to the ubuntu base images (#1662)
jasonschroeder-sfdc Mar 6, 2024
04ff216
build: remove docker download install pkgs actions (#1663)
jasonschroeder-sfdc Mar 6, 2024
bc4156d
fix(common): do not log redis password on start-up
jasonschroeder-sfdc Mar 7, 2024
2490ada
[helm] Support autoscaling/{v2beta2,v2} for HPA.
monaka Mar 9, 2024
7376458
chores: bump google-java-format to 1.20.0 (#1649)
jasonschroeder-sfdc Mar 11, 2024
898033a
Include resources description
werkt Mar 13, 2024
581d30f
Correct typo in resource table definitions
werkt Mar 13, 2024
3b1b99a
build(bzlmod): Switch to rules_oci (#1667)
jasonschroeder-sfdc Mar 15, 2024
5968965
build: bump maven version to latest (#1670)
jasonschroeder-sfdc Mar 18, 2024
9c4014f
ci: Fix rules_oci docker publish (#1671)
jasonschroeder-sfdc Mar 18, 2024
f0d43d0
Fix link to IJ screenshot
stefanobaghino Mar 20, 2024
0918eef
chore(MODULE.bazel): bump gazelle
jasonschroeder-sfdc Mar 19, 2024
6dcf737
build: declare container_structure_test as dev dependency
jasonschroeder-sfdc Mar 19, 2024
14ba613
chore(MODULE.bazel): bump rules_go
jasonschroeder-sfdc Mar 19, 2024
236fb8c
build: pin ubuntu-mantic image
jasonschroeder-sfdc Mar 15, 2024
04478cc
add ingress for the server
andrewrothstein Mar 14, 2024
f653091
fix service.port reference
andrewrothstein Mar 18, 2024
abd0881
Switch to jedis-5
werkt Oct 26, 2023
76a1e00
Calculate slot lookup table once per app instance
werkt Jan 9, 2024
96a0c87
Switch jedis dequeue over to milli granularity
werkt Jan 8, 2024
7e3db2e
ci: bump buildifier to 6.4.0
jasonschroeder-sfdc Mar 21, 2024
719a022
Merge pull request #1679 from jasonschroeder-sfdc/bump_ci_buildifier
Wyverald Mar 22, 2024
2db583a
Prevent NPE on shutdown with null pipeline
werkt Feb 21, 2024
97d0093
Update to latest jedis release 5.1.2
werkt Mar 22, 2024
788f7ea
Update remaining references to redis 5.0.9
werkt Mar 23, 2024
1501dd4
build(bzlmod): update rules_pkg (#1646)
jasonschroeder-sfdc Mar 26, 2024
e1ad3ad
publish Helm chart as OCI artifact to ghcr.io (#1683)
andrewrothstein Mar 26, 2024
66ce90d
Create codeql.yml (#1689)
werkt Mar 29, 2024
2a8afb3
fix: remove redis hashtags from prometheus metrics (#1693)
jasonschroeder-sfdc Apr 1, 2024
c61e824
Rework Queue object pattern hierarchy (#1695)
werkt Apr 3, 2024
89a97d1
Support for BLAKE3 digest function (#1697)
werkt Apr 3, 2024
4cbcd4a
chore(deps): bump bazel to 7.1.1 (#1694)
jasonschroeder-sfdc Apr 3, 2024
0bc8a59
chore: remove bazel binary
jasonschroeder-sfdc Apr 3, 2024
b7bcda3
fix(ServerInstance): fix severe log message
jasonschroeder-sfdc Apr 1, 2024
684d79a
Remove switched_rules_by_language usage
werkt Apr 4, 2024
1366869
Fix jedismock tests on mac
werkt Apr 5, 2024
3d2383f
Terminate OperationQueue dequeue when interrupted
werkt Apr 5, 2024
12faac7
fix(metrics): convert Gauges to Counters
jasonschroeder-sfdc Apr 4, 2024
d0bbc5f
docs(metrics.md): update metric types
jasonschroeder-sfdc Apr 4, 2024
d270aa9
fix(RedisShardBackplane): fix backplaneStatus
jasonschroeder-sfdc Mar 27, 2024
5c19f87
refactor for clarity
jasonschroeder-sfdc Apr 4, 2024
d989027
build: remove macos-specific options
jasonschroeder-sfdc Mar 2, 2024
296427d
build(MODULE.bazel): add build_deps from extensions.bzl
jasonschroeder-sfdc Mar 19, 2024
8a4046f
build(MODULE.bazel): com_google_googleapis
jasonschroeder-sfdc Mar 19, 2024
5c618f8
build: add rules_java
jasonschroeder-sfdc Mar 1, 2024
36614cd
build: move maven things to MODULE.bazel
jasonschroeder-sfdc Mar 1, 2024
b1e9c36
build: remove IO_GRPC_JAVA_OVERRIDE_TARGETS from defs.bzl
jasonschroeder-sfdc Mar 21, 2024
4bb7d77
build(bzlmod): add grpc to MODULE.bazel
jasonschroeder-sfdc Mar 19, 2024
ce0084b
build(bzlmod): add rules_proto to MODULE.bazel
jasonschroeder-sfdc Mar 2, 2024
6f8631c
build(protobuf): remove protobuf_deps from defs.bzl
jasonschroeder-sfdc Mar 1, 2024
3033a95
build: move deps.bzl to extensions.bzl
jasonschroeder-sfdc Mar 2, 2024
c2a1119
chore(MODULE.bazel): remove googleapis from build_deps extension
jasonschroeder-sfdc Mar 19, 2024
cf0af56
build: remove compat_repositories() from WORKSPACE
jasonschroeder-sfdc Mar 1, 2024
f340082
build: remove everything from WORKSPACE
jasonschroeder-sfdc Feb 29, 2024
f7f9eda
temp: remove llvm toolchain
jasonschroeder-sfdc Mar 2, 2024
8e65eea
build: bazel_remote_apis bzlmod
jasonschroeder-sfdc Mar 19, 2024
2bacdd4
build: grpc is working now
jasonschroeder-sfdc Mar 19, 2024
69b2190
build: simplify maven dependencies
jasonschroeder-sfdc Apr 1, 2024
f85f05e
build(third_party/googleapis): add BUILD and patch
jasonschroeder-sfdc Mar 19, 2024
62b5689
build(third_party/googleapis): add google_longrunning_operations_java…
jasonschroeder-sfdc Mar 19, 2024
edc8809
build(third_party/googleapis): add more _java_grpc
jasonschroeder-sfdc Mar 19, 2024
4c7ed16
chore: re-write a ton of dependencies
jasonschroeder-sfdc Mar 4, 2024
23396ec
chore: remove dead code from extensions.bzl
jasonschroeder-sfdc Mar 14, 2024
0b2ce12
build(bzlmod): add bazel_skylib
jasonschroeder-sfdc Mar 21, 2024
2f9c85e
chore: buildifier complaints in extensions.bzl
jasonschroeder-sfdc Mar 21, 2024
29e8114
chore: remove defs.bzl
jasonschroeder-sfdc Mar 21, 2024
4b9b2fb
chore: remove unused patches
jasonschroeder-sfdc Mar 29, 2024
3814203
chore(bzlmod): bump rules_go
jasonschroeder-sfdc Mar 29, 2024
e7bf216
chore(bzlmod): bump rules_jvm_external
jasonschroeder-sfdc Mar 29, 2024
013fd4d
chore(bzlmod): bump rules_python
jasonschroeder-sfdc Mar 29, 2024
745d7d2
build: swap grpc for grpc-java and googleapis from BCR
jasonschroeder-sfdc Mar 30, 2024
cd71055
chore: rewrite @bazel_remote_apis to @remoteapis
jasonschroeder-sfdc Apr 1, 2024
65f8923
chore: rewrite //third_party/googleapis to @@com_google_googleapis
jasonschroeder-sfdc Apr 1, 2024
2581a29
build: remove io_grpc_grpc_java
jasonschroeder-sfdc Apr 1, 2024
5d56d30
build: googleapis
jasonschroeder-sfdc Apr 1, 2024
880771a
build: add com_github_grpc_grpc
jasonschroeder-sfdc Apr 1, 2024
9169a4e
chore: delete third_party/BUILD.remote_apis
jasonschroeder-sfdc Apr 4, 2024
813ac03
build: BUILD
jasonschroeder-sfdc Apr 1, 2024
808a01c
chore: pin maven deps
jasonschroeder-sfdc Apr 1, 2024
2b3f0b2
build: leave a comment about remoteapis
jasonschroeder-sfdc Apr 1, 2024
91a7a7e
fixup! chore: rewrite @bazel_remote_apis to @remoteapis
jasonschroeder-sfdc Apr 1, 2024
910714b
fixup! build: BUILD
jasonschroeder-sfdc Apr 3, 2024
27e8d2e
build: don't make buildifier a dev dependency
jasonschroeder-sfdc Apr 3, 2024
481d627
build: re-add lost file from a merge
jasonschroeder-sfdc Apr 4, 2024
bb1f766
Prevent write completion starvation for duplicates
werkt May 30, 2024
ece844a
Reduce DUPLICATE_OUTPUT_STREAM future to write
werkt May 31, 2024
8bbaada
Revert "Temporary fix to use the official Blake3 support"
chenj-hub Aug 13, 2024
26cb1df
Merge commit 'ece844a103eb0561a2bd1bf91129c12915a28ea8' into jackies/…
chenj-hub Aug 13, 2024
64b71b2
Remediate some issues to successfully pass bazel tests
chenj-hub Aug 13, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .bazelci/cache_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# We ensure that the system can build a set of bazel targets.

# Run redis container
docker run -d --name buildfarm-redis --network host redis:5.0.9 --bind localhost
docker run -d --name buildfarm-redis --network host redis:7.2.4 --bind localhost

# Build a container for buildfarm services
cp `which bazel` bazel
Expand Down
2 changes: 1 addition & 1 deletion .bazelci/docker_unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Build a container for unit tests and run them
cp `which bazel` bazel
docker build -t buildfarm .
docker run buildfarm /bin/bash -c "cd buildfarm; ./bazel test --build_tests_only --test_tag_filters=-integration,-redis ..."
docker run buildfarm /bin/bash -c "cd buildfarm; ./bazel test --build_tests_only --test_tag_filters=-container,-integration,-redis ..."
22 changes: 1 addition & 21 deletions .bazelci/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@

FORMAT_JAVA=true
REMOVE_NEWLINES_AFTER_START_BRACKET=true
JAVA_FORMATTER_URL=https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
JAVA_FORMATTER_URL=https://github.com/google/google-java-format/releases/download/v1.20.0/google-java-format-1.20.0-all-deps.jar
LOCAL_FORMATTER="java_formatter.jar"

FORMAT_PROTO=true
CLANG_FORMAT=@llvm_toolchain//:clang-format
if [ -z "$BAZEL" ]; then
BAZEL=bazel
fi
Expand Down Expand Up @@ -71,20 +69,6 @@ run_java_formatter () {
java -jar $LOCAL_FORMATTER -i $files
}

run_proto_formatter () {
# Check whether any formatting changes need to be made.
# This is intended to be done by the CI.
if [[ "$@" == "--check" ]]
then
find $PWD -name '*.proto' -exec $BAZEL run $CLANG_FORMAT -- -i --dry-run --Werror {} +
handle_format_error_check
return
fi

# Fixes formatting issues
find $PWD -name '*.proto' -exec $BAZEL run $CLANG_FORMAT -- -i {} +
}

run_buildifier () {
$BAZEL run $BUILDIFIER -- -r > /dev/null 2>&1
}
Expand All @@ -93,10 +77,6 @@ if [ "${FORMAT_JAVA:-false}" = true ]; then
run_java_formatter "$@"
fi;

if [ "${FORMAT_PROTO:-false}" = true ]; then
run_proto_formatter "$@"
fi;

if [ "${FORMAT_BUILD:-false}" = true ]; then
run_buildifier "$@"
fi;
2 changes: 1 addition & 1 deletion .bazelci/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# We ensure that the system can build a set of bazel targets.

# Run redis container
docker run -d --name buildfarm-redis --network host redis:5.0.9 --bind localhost
docker run -d --name buildfarm-redis --network host redis:7.2.4 --bind localhost

# Build a container for buildfarm services
cp `which bazel` bazel
Expand Down
16 changes: 12 additions & 4 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
buildifier: 4.2.5
buildifier: 6.4.0
tasks:

# Linting jobs
Expand Down Expand Up @@ -41,6 +41,8 @@ tasks:
name: "Unit Tests"
build_targets:
- "..."
build_flags:
- "--build_tag_filters=-container"
test_flags:
- "--test_tag_filters=-integration,-redis"
test_targets:
Expand All @@ -49,28 +51,34 @@ tasks:
name: "Unit Tests"
build_targets:
- "..."
build_flags:
- "--build_tag_filters=-container"
test_flags:
- "--test_tag_filters=-integration,-redis"
test_targets:
- "..."
macos:
name: "Unit Tests"
environment:
USE_BAZEL_VERSION: 17be878292730359c9c90efdceabed26126df7ae
build_flags:
- "--cxxopt=-std=c++14"
- "--build_tag_filters=-container"
build_targets:
- "..."
test_flags:
- "--test_tag_filters=-integration,-redis"
- "--test_tag_filters=-container,-integration,-redis"
test_targets:
- "..."
windows:
name: "Unit Tests"
build_flags:
- "--build_tag_filters=-container,-audit"
- "--build_tag_filters=-container"
build_targets:
- "..."
test_flags:
- "--test_tag_filters=-integration,-redis"
- "--@rules_jvm_external//settings:stamp_manifest=False"
- "--test_tag_filters=-container,-integration,-redis"
test_targets:
- "..."
rpm_builds:
Expand Down
4 changes: 3 additions & 1 deletion .bazelci/redis_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# However this runs unit tests that interact directly with redis.

# Run redis container
docker run -d --rm --name buildfarm-redis --network host redis:5.0.9 --bind localhost
docker run -d --rm --name buildfarm-redis --network host redis:7.2.4 --bind localhost

# Run tests that rely on redis
bazel test --build_tests_only --test_tag_filters=redis src/test/java/...

docker stop buildfarm-redis
6 changes: 3 additions & 3 deletions .bazelci/run_server_test.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash

# Start redis container
docker run -d --rm --name buildfarm-redis --network host redis:5.0.9 --bind localhost
docker run -d --rm --name buildfarm-redis --network host redis:7.2.4 --bind localhost

# Build worker and server targets
bazel build //src/main/java/build/buildfarm:buildfarm-shard-worker
bazel build //src/main/java/build/buildfarm:buildfarm-server

# Start a single worker
bazel run //src/main/java/build/buildfarm:buildfarm-shard-worker $(pwd)/examples/config.minimal.yml > server.log 2>&1 &
bazel run //src/main/java/build/buildfarm:buildfarm-shard-worker $(pwd)/examples/config.minimal.yml > worker.log 2>&1 &
echo "Started buildfarm-shard-worker..."

# Start a single server
bazel run //src/main/java/build/buildfarm:buildfarm-server $(pwd)/examples/config.minimal.yml > worker.log 2>&1 &
bazel run //src/main/java/build/buildfarm:buildfarm-server $(pwd)/examples/config.minimal.yml > server.log 2>&1 &
echo "Started buildfarm-server..."

echo "Wait for startup to finish..."
Expand Down
15 changes: 15 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
build --java_language_version=17
build --java_runtime_version=remotejdk_17

build --tool_java_language_version=17
build --tool_java_runtime_version=remotejdk_17


common --enable_platform_specific_config

build:fuse --define=fuse=true
Expand All @@ -14,3 +21,11 @@ test --test_tag_filters=-redis,-integration
# Ensure buildfarm is compatible with future versions of bazel.
# https://buildkite.com/bazel/bazelisk-plus-incompatible-flags
common --incompatible_disallow_empty_glob

common --enable_bzlmod

# See also https://bazel.build/external/lockfile.
common --lockfile_mode=off
# It's off because we have mac/windows/linux developers who may not have access
# to all three to update the platform-specific bits of the lockfile.

2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.1.2
7.1.1
24 changes: 24 additions & 0 deletions .github/workflows/buildfarm-helm-chart-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Lint Helm Chart

on:
push:
paths:
- kubernetes/helm-charts/buildfarm/**

env:
CHART_ROOT: kubernetes/helm-charts/buildfarm

jobs:
lint:
name: Lint Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- id: helm-lint
name: Lint Helm Chart
run: |-
set -ex
helm dep up "${CHART_ROOT}"
helm lint "${CHART_ROOT}"
58 changes: 58 additions & 0 deletions .github/workflows/buildfarm-helm-chart-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: Package and Publish Helm Chart

on:
push:
tags:
- 'helm/*'

env:
CHART_NAME: buildfarm
CHART_ROOT: ${{ github.workspace }}/kubernetes/helm-charts/buildfarm
GHCR_REPO: ghcr.io/${{ github.repository_owner }}

jobs:
build:
name: Lint, Package, and Release BuildFarm Helm Chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- id: get-chart-ver
name: Extracting Helm Chart Version from Tag
run: |
set -ex
echo "chart_ver=$(echo $GITHUB_REF | cut -d / -f 4)" >> $GITHUB_OUTPUT
- id: set-chart-yaml-version
name: Etching Helm Chart Version into Chart.yaml for Packaging
run: |
set -ex
echo setting Chart version to \
"${{ steps.get-chart-ver.outputs.chart_ver }}" \
in ${CHART_ROOT}/Chart.yaml
yq -i \
'.version |= "${{ steps.get-chart-ver.outputs.chart_ver }}"' \
${CHART_ROOT}/Chart.yaml
- id: helm-lint
name: Helm Chart Lint
run: |-
set -ex
helm dep up "${CHART_ROOT}"
helm lint "${CHART_ROOT}"
- id: helm-bundle-push
name: Helm Chart Bundle and Push
run: |-
set -e
echo ${{ secrets.GITHUB_TOKEN }} | \
helm registry \
login "${GHCR_REPO}" \
--username "${{ github.repository_owner }}" \
--password-stdin
set -ex
helm dep up "${CHART_ROOT}"
helm package "${CHART_ROOT}"
export CHART_BUNDLE="${CHART_NAME}-${{ steps.get-chart-ver.outputs.chart_ver }}.tgz"
ls -l "${CHART_BUNDLE}"
helm push \
"${CHART_BUNDLE}" \
"oci://${GHCR_REPO}"
31 changes: 31 additions & 0 deletions .github/workflows/buildfarm-images-build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Push Latest Buildfarm Images

on:
push:
branches:
- main

jobs:
build:
if: github.repository == 'bazelbuild/bazel-buildfarm'
name: Build Buildfarm Images
runs-on: ubuntu-latest
steps:
- uses: bazelbuild/setup-bazelisk@v2

- name: Checkout
uses: actions/checkout@v3

- name: Login to Bazelbuild Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.BAZELBUILD_DOCKERHUB_USERNAME }}
password: ${{ secrets.BAZELBUILD_DOCKERHUB_TOKEN }}

- name: Build Server Image
id: buildAndPushServerImage
run: bazel run public_push_buildfarm-server -- --tag latest

- name: Build Worker Image
id: buildAndPushWorkerImage
run: bazel run public_push_buildfarm-worker -- --tag latest
30 changes: 30 additions & 0 deletions .github/workflows/buildfarm-release-build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Push Buildfarm Releases

on:
release:
types: [published]

jobs:
build:
if: github.repository == 'bazelbuild/bazel-buildfarm'
name: Build Buildfarm Images
runs-on: ubuntu-latest
steps:
- uses: bazelbuild/setup-bazelisk@v2

- name: Checkout
uses: actions/checkout@v3

- name: Login to Bazelbuild Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.BAZELBUILD_DOCKERHUB_USERNAME }}
password: ${{ secrets.BAZELBUILD_DOCKERHUB_TOKEN }}

- name: Build Server Image
id: buildAndPushServerImage
run: bazel run public_push_buildfarm-server -- --tag ${{ github.event.release.tag_name }}

- name: Build Worker Image
id: buildAndPushWorkerImage
run: bazel run public_push_buildfarm-worker -- --tag ${{ github.event.release.tag_name }}
39 changes: 39 additions & 0 deletions .github/workflows/buildfarm-worker-base-build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Push Base Buildfarm Worker Images

on:
push:
branches:
- main
paths:
- ci/base-worker-image/jammy/Dockerfile
- ci/base-worker-image/mantic/Dockerfile
jobs:
build:
if: github.repository == 'bazelbuild/bazel-buildfarm'
name: Build Base Buildfarm Worker Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Login to Bazelbuild Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.BAZELBUILD_DOCKERHUB_USERNAME }}
password: ${{ secrets.BAZELBUILD_DOCKERHUB_TOKEN }}

- name: Build Jammy Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./ci/base-worker-image/jammy/Dockerfile
push: true
tags: bazelbuild/buildfarm-worker-base:jammy

- name: Build Mantic Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./ci/base-worker-image/mantic/Dockerfile
push: true
tags: bazelbuild/buildfarm-worker-base:mantic
Loading