Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Commit 96c88f3

Browse files
Privacy Sandbox Teamformgit
authored andcommitted
Release 1.2.0 (2025-03-04)
### Features * Add Avro metadata support for data cli * Add metadata support when reading Avro files * Add UDF console logging * Use partition,compression_group_id to uniquely id a partition ### Bug Fixes * Add GCP Terraform parameter for data loading file format. * C++ compiler warnings * Check that partition ids are unique * Explicitly set confidential_instance_type * Pass chaffing to lookup * replace google internal link with public link for variables. * use gperftools github doc pages ### Documentation * Add Avro metadata spec * Remove AWS ssh from docs. Bug: N/A Change-Id: Iaeae0bce737274e636cf2b9738fceed5bceea181 GitOrigin-RevId: df689e65546aa76480debc79fef7298bcdcc3639
1 parent db6a0b8 commit 96c88f3

168 files changed

Lines changed: 1318 additions & 4354 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build --workspace_status_command="bash tools/get_workspace_status"
77
build --copt=-Werror=thread-safety
88
build --config=clang
99
build --config=noexcept
10+
1011
# Disable some ROMA error checking
1112
build --per_file_copt=.*sandboxed_api.*@-Wno-return-type
1213

@@ -32,13 +33,26 @@ build --@io_opentelemetry_cpp//api:with_abseil=true
3233
# Required to build OpenTelemtry with logs API.
3334
build --copt=-DENABLE_LOGS_PREVIEW
3435

36+
build:clang --config=cpp_nowarn
3537
build:clang --cxxopt=-fbracket-depth=512
3638
build:clang --client_env=CC=clang
3739
build:clang --cxxopt=-std=c++17
3840
build:clang --host_cxxopt=-std=c++17
3941
build:clang --client_env=BAZEL_CXXOPTS=-std=c++17
4042
build:clang --per_file_copt=external/nitrokmscli_.*\.c@-Wno-int-conversion
4143
build:clang --per_file_copt=external/(json_c|nitrokmscli_).*\.c@-Wno-implicit-function-declaration
44+
# Ignore deprecated declarations and redefined macro warnings from differential privacy library
45+
build:clang --per_file_copt=(components|public/data_loading)/.*@-Wno-macro-redefined,-Wno-deprecated-declarations
46+
build:clang --per_file_copt=production/packaging/gcp/data_server/bin/.*@-Wno-macro-redefined,-Wno-deprecated-declarations
47+
build:clang --per_file_copt=tools/(data_cli|request_simulation|udf)/.*@-Wno-macro-redefined,-Wno-deprecated-declarations
48+
# Use --host_per_file_copt to ignore warnings from genrule
49+
build:clang --host_per_file_copt=(components|public/data_loading)/.*@-Wno-macro-redefined,-Wno-deprecated-declarations
50+
build:clang --host_per_file_copt=production/packaging/gcp/data_server/bin/.*@-Wno-macro-redefined,-Wno-deprecated-declarations
51+
build:clang --host_per_file_copt=tools/(data_cli|request_simulation|udf)/.*@-Wno-macro-redefined,-Wno-deprecated-declarations
52+
# Ignore warnings from generated parser
53+
build:clang --per_file_copt=components/query/.*@-Wno-unused-but-set-variable
54+
# Telemetry has some unchecked results after registering observers.
55+
build:clang --per_file_copt=(tools/request_simulation/request_simulation_system.cc|components/data_server/server/server.cc)@-Wno-unused-variable
4256

4357
build:cpp_nowarn --copt=-Werror
4458
build:cpp_nowarn --per_file_copt=external/.*@-Wno-error

CHANGELOG.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## 1.2.0 (2025-03-04)
6+
7+
8+
### Features
9+
10+
* Add Avro metadata support for data cli
11+
* Add metadata support when reading Avro files
12+
* Add UDF console logging
13+
* Use partition,compression_group_id to uniquely id a partition
14+
15+
16+
### Bug Fixes
17+
18+
* Add GCP Terraform parameter for data loading file format.
19+
* C++ compiler warnings
20+
* Check that partition ids are unique
21+
* Explicitly set confidential_instance_type
22+
* Pass chaffing to lookup
23+
* replace google internal link with public link for variables.
24+
* use gperftools github doc pages
25+
26+
27+
### Documentation
28+
29+
* Add Avro metadata spec
30+
* Remove AWS ssh from docs.
31+
532
## 1.1.0 (2025-01-15)
633

734

@@ -11,15 +38,12 @@ All notable changes to this project will be documented in this file. See [commit
1138
* Add BatchExecuteCode function to UdfClient
1239
* Add custom metrics UDF callback hook to udf configuration
1340
* Add udf-enable-stacktrace parameter
14-
* Bump nltk from 3.8.1 to 3.9.1 in /third_party_deps
15-
* Bump tqdm that has a security fix to 4.67.1
1641
* Enable UDF custom metric hook for the server
1742
* Parallel UDF execution for multi partition requests
1843
* Switch AvroDeltaRecordStreamWriter to use native fb struct
1944
* Switch CsvDeltaRecordStreamWriter and consumers to fb native
2045
* Switch DeltaRecordLimitingFileWriter and consumers to native fb
2146
* Switch DeltaRecordStreamWriter and consumers to fb native
22-
* Upgrade common repo
2347

2448

2549
### Bug Fixes
@@ -31,16 +55,21 @@ All notable changes to this project will be documented in this file. See [commit
3155
* Do not require Delete KVMutations to have a value
3256
* Downgrade markdownlint
3357
* Drop `keyGroupOutput` objects that do not have keyValues
34-
* fix building failure of GitHub main
58+
* Fix building failure of GitHub main
3559
* Fix udf tester to recognize absl logging flags
3660
* Loading data in order for aws e2e workflow
3761
* Proto encoder should check that partition output is json object
3862
* Remove extra comma in request example json for log context
39-
* remove logging from default UDF
40-
* resolve e2e workflow key conflict
63+
* Remove logging from default UDF
64+
* Resolve e2e workflow key conflict
4165
* Sample UDFs should use logMessage instead of console.log
4266
* Udf code object should have mutex
4367

68+
### Dependencies
69+
70+
* Bump nltk from 3.8.1 to 3.9.1 in /third_party_deps
71+
* Bump tqdm that has a security fix to 4.67.1
72+
* Upgrade common repo
4473

4574
### Documentation
4675

WORKSPACE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ python_register_toolchains("//builders/bazel")
1515

1616
http_archive(
1717
name = "google_privacysandbox_servers_common",
18-
# commit 2fc3d6c 2024-12-26
19-
sha256 = "321893a0733f5172b4cfeb085551d4c7507a2683b01bf4af4ec4017f948477b6",
20-
strip_prefix = "data-plane-shared-libraries-2fc3d6cfa9a4ea6f424348a9b2740c025404b520",
18+
# commit 3c9816c 2025-02-14
19+
sha256 = "404abe9a8a1e269ef4f820937faac0815bf40bceefb07a87063e6732b86058a8",
20+
strip_prefix = "data-plane-shared-libraries-3c9816cddcdf4744b9bde85b9e1d44c6cef25ec8",
2121
urls = [
22-
"https://github.com/privacysandbox/data-plane-shared-libraries/archive/2fc3d6cfa9a4ea6f424348a9b2740c025404b520.zip",
22+
"https://github.com/privacysandbox/data-plane-shared-libraries/archive/3c9816cddcdf4744b9bde85b9e1d44c6cef25ec8.zip",
2323
],
2424
)
2525

builders/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## 0.77.0 (2025-01-13)
6+
7+
8+
### Features
9+
10+
* Add environment variables specified by the environment variable BUILDER_CUSTOM_ENV_VARS in builder.sh
11+
512
## 0.76.0 (2024-12-16)
613

714

builders/tools/builder.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ function builder::cbuild_al() {
177177
shift
178178
local -r cbuild="$(builder::get_tools_dir)"/cbuild
179179
declare -a env_vars
180+
IFS=':' read -r -a env_vars <<< "${BUILDER_CUSTOM_ENV_VARS}"
180181
builder::add_aws_env_vars env_vars
181182
declare env_args
182183
for evar in "${env_vars[@]}"; do

builders/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.76.0
1+
0.77.0

components/cloud_config/instance_client_gcp.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ class GcpInstanceClient : public InstanceClient {
8888
GcpInstanceClient(
8989
privacy_sandbox::server_common::log::PSLogContext& log_context)
9090
: instance_client_(google::scp::cpio::InstanceClientFactory::Create()),
91-
log_context_(log_context) {
92-
instance_client_->Init();
93-
}
91+
log_context_(log_context) {}
9492

9593
absl::StatusOr<std::string> GetEnvironmentTag() override {
9694
if (environment_.empty()) {

components/cloud_config/instance_client_local.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class LocalInstanceClient : public InstanceClient {
7171
}
7272

7373
absl::StatusOr<std::vector<InstanceInfo>> DescribeInstances(
74-
const absl::flat_hash_set<std::string>& instance_ids) {
74+
const absl::flat_hash_set<std::string>& instance_ids) override {
7575
auto id = GetInstanceId();
7676
if (!id.ok()) {
7777
return id.status();

components/data/blob_storage/blob_storage_change_notifier_gcp.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ class GcpBlobStorageChangeNotifier : public BlobStorageChangeNotifier {
3333
privacy_sandbox::server_common::log::PSLogContext& log_context)
3434
: notifier_(std::move(notifier)), log_context_(log_context) {}
3535

36-
~GcpBlobStorageChangeNotifier() override { sleep_for_.Stop(); }
36+
~GcpBlobStorageChangeNotifier() override {
37+
auto status = sleep_for_.Stop();
38+
if (!status.ok()) {
39+
PS_LOG(ERROR, log_context_)
40+
<< "Error stopping GcpBlobStorageChangeNotifier SleepFor:" << status;
41+
}
42+
}
3743

3844
absl::StatusOr<std::vector<std::string>> GetNotifications(
3945
absl::Duration max_wait,

components/data/blob_storage/blob_storage_change_notifier_local.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ namespace {
2323
class LocalBlobStorageChangeNotifier : public BlobStorageChangeNotifier {
2424
public:
2525
explicit LocalBlobStorageChangeNotifier(
26-
std::unique_ptr<ChangeNotifier> notifier,
27-
privacy_sandbox::server_common::log::PSLogContext& log_context)
28-
: notifier_(std::move(notifier)), log_context_(log_context) {}
26+
std::unique_ptr<ChangeNotifier> notifier)
27+
: notifier_(std::move(notifier)) {}
2928

3029
absl::StatusOr<std::vector<std::string>> GetNotifications(
3130
absl::Duration max_wait,
@@ -35,7 +34,6 @@ class LocalBlobStorageChangeNotifier : public BlobStorageChangeNotifier {
3534

3635
private:
3736
std::unique_ptr<ChangeNotifier> notifier_;
38-
privacy_sandbox::server_common::log::PSLogContext& log_context_;
3937
};
4038

4139
} // namespace
@@ -51,8 +49,7 @@ BlobStorageChangeNotifier::Create(
5149
return notifier.status();
5250
}
5351

54-
return std::make_unique<LocalBlobStorageChangeNotifier>(std::move(*notifier),
55-
log_context);
52+
return std::make_unique<LocalBlobStorageChangeNotifier>(std::move(*notifier));
5653
}
5754

5855
} // namespace kv_server

0 commit comments

Comments
 (0)