Skip to content

Commit

Permalink
Release version v2.6.0
Browse files Browse the repository at this point in the history
  - release: cut off new release 2.6.0
  - doc: changelog update for AgS release 2.6
  - internal: Add AWS e2e tests for Contribution Filtering.
  - fix: Rename SERVICE_ERROR to INTERNAL_ERROR
  - [INFRA] [AUTO] Update container dependencies.
  - internal: Upgrade commons-compress version to fix vulnera...
  - feat: Bump up shared libraries version to 1.9.0-rc03
  - internal: Remove FakePrivateKeyFetchingService
  - [PBS] [347971432] build files to publish release jars for...
  - doc: Update API documentation
  (And 26 more changes)

GitOrigin-RevId: 8a40b1d1885b8829512e51702faec8fd6199842f
  • Loading branch information
Privacy Sandbox Team authored and copybara-github committed Jul 31, 2024
1 parent 765459b commit ec108b9
Show file tree
Hide file tree
Showing 70 changed files with 2,783 additions and 829 deletions.
1 change: 0 additions & 1 deletion .markdownlint-cli2.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

config:
line-length:
line_length: 120
#stern: true
code_blocks: false
tables: false

# these are apparently in conflict with prettier's markdown formatting
list-marker-space: false
list-indent: false
ul-indent: false

headings: false

proper-names:
code_blocks: false
names:
- CommonMark
- JavaScript
- Markdown
- markdown-it
- markdownlint
- markdownlint-cli2
- Node.js

fix: true

ignores:
- CHANGELOG.md
- google_internal/LATEST_RELEASE.md
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [2.6.0](https://github.com/privacysandbox/aggregation-service/compare/v2.5.0...v2.6.0) (2024-07-19)

- Enabled support for
[Aggregate Debug Reporting API](https://github.com/WICG/attribution-reporting-api/blob/main/aggregate_debug_reporting.md).
- Reduced memory usage by making `AggregatedFacts` mutable and removing redundant object creation.
- Updated dependencies to address security vulnerabilities.
- Upgraded control plane shared library dependency to
[v1.9.0-rc03](https://github.com/privacysandbox/coordinator-services-and-shared-libraries/releases/tag/v1.9.0-rc03)

## [2.5.1](https://github.com/privacysandbox/aggregation-service/compare/v2.5.0...v2.5.1) (2024-07-19)

- Updated dependencies to address security vulnerabilities.

## [2.5.0](https://github.com/privacysandbox/aggregation-service/compare/v2.4.2...v2.5.0) (2024-05-22)

### Changes
Expand All @@ -25,6 +38,12 @@
- Upgraded control plane shared library dependency to
[v1.8.0-rc01](https://github.com/privacysandbox/coordinator-services-and-shared-libraries/releases/tag/v1.8.0-rc01)

## [2.4.4](https://github.com/privacysandbox/aggregation-service/compare/v2.4.3...v2.4.4) (2024-07-19)

### Changes

- Updated dependencies to address security vulnerabilities.

## [2.4.3](https://github.com/privacysandbox/aggregation-service/compare/v2.4.2...v2.4.3) (2024-05-20)

### Changes
Expand Down Expand Up @@ -60,6 +79,12 @@
- Used RxJava for domain reading, reducing overall job execution time and memory consumption.
- Upgraded Bazel version to 6.5.0.

## [2.3.4](https://github.com/privacysandbox/aggregation-service/compare/v2.3.3...v2.3.4) (2024-07-19)

### Changes

- Updated dependencies to address security vulnerabilities.

## [2.3.3](https://github.com/privacysandbox/aggregation-service/compare/v2.3.2...v2.3.3) (2024-05-20)

### Changes
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0
2.6.0
4 changes: 3 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PROTOBUF_CORE_VERSION = "3.25.2"

PROTOBUF_SHA_256 = "3c83e4301b968d0b4f29a0c29c0b3cde1da81d790ffd344b111c523ba1954392"

COORDINATOR_VERSION = "v1.8.0-rc01" # version updated on 2024-05-20
COORDINATOR_VERSION = "v1.9.0-rc03" # version updated on 2024-07-17

JACKSON_VERSION = "2.16.1"

Expand Down Expand Up @@ -79,6 +79,7 @@ git_repository(
remote = "https://github.com/privacysandbox/coordinator-services-and-shared-libraries",
patches = [
"//build_defs/shared_libraries:coordinator.patch",
"//build_defs/shared_libraries:rules_pkg_build_fix.patch",
],
tag = COORDINATOR_VERSION,
workspace_file = "@shared_libraries_workspace//file",
Expand Down Expand Up @@ -163,6 +164,7 @@ maven_install(
"io.github.resilience4j:resilience4j-retry:1.7.1",
"junit:junit:4.13.2",
"org.apache.avro:avro:1.11.3",
"org.apache.commons:commons-compress:1.26.2",
"org.apache.commons:commons-math3:3.6.1",
"org.apache.httpcomponents:httpcore:4.4.16",
"org.apache.httpcomponents:httpclient:4.5.14",
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/DEBIAN_CONTAINER_DIGEST
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sha256:911821c26cc366231183098f489068afff2d55cf56911cb5b7bd32796538dfe1
sha256:39868a6f452462b70cf720a8daff250c63e7342970e749059c105bf7c1e8eeaf
4 changes: 4 additions & 0 deletions build-scripts/aws/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ bazel run //terraform/aws:aws_frontend_cleanup_handler_lambda_release \
bazel run //terraform/aws:local_testing_tool_release \
--//terraform/aws:bucket_flag=$JARS_PUBLISH_BUCKET --//terraform/aws:bucket_path_flag=$JARS_PUBLISH_BUCKET_PATH \
-- --version=$VERSION

bazel run //terraform/aws:privacy_budget_unit_extraction_tool_release \
--//terraform/aws:bucket_flag=$JARS_PUBLISH_BUCKET --//terraform/aws:bucket_path_flag=$JARS_PUBLISH_BUCKET_PATH \
-- --version=$VERSION
3 changes: 3 additions & 0 deletions build-scripts/gcp/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ steps:
bazel run //terraform/gcp:local_testing_tool_release \
--//terraform/gcp:bucket_flag=$_JARS_PUBLISH_BUCKET --//terraform/gcp:bucket_path_flag=$_JARS_PUBLISH_BUCKET_PATH \
-- --version=$_VERSION
bazel run //terraform/gcp:privacy_budget_unit_extraction_tool_release \
--//terraform/gcp:bucket_flag=$_JARS_PUBLISH_BUCKET --//terraform/gcp:bucket_path_flag=$_JARS_PUBLISH_BUCKET_PATH \
-- --version=$_VERSION
automapSubstitutions: true

options:
Expand Down
6 changes: 3 additions & 3 deletions build_defs/container_dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
# - java_base: Distroless image for running Java.
################################################################################

# Updated as of: 2024-05-13
# Updated as of: 2024-07-19

CONTAINER_DEPS = {
"amazonlinux_2": {
"digest": "sha256:f165b1429c7b1dd0ca0eadd32507dd4b6bb410f96828ddd1bdf2141f0f21d475",
"digest": "sha256:7081389e0a1d55d5c05a6bab72fb8a82b37c72a724365c6104c7fbc5bcdb2e09",
"registry": "index.docker.io",
"repository": "amazonlinux",
},
Expand All @@ -38,7 +38,7 @@ CONTAINER_DEPS = {
"repository": "aws-observability/aws-otel-collector",
},
"java_base": {
"digest": "sha256:d1ebe3d183e2e6bd09d4fd8f2cf0206693a3bca1858afe393ceb3161b5268f40",
"digest": "sha256:c7846b62436ccf2961972fea5b776527610a1a51b48d8e7b434287146904cf2d",
"registry": "gcr.io",
"repository": "distroless/java17-debian11",
},
Expand Down
227 changes: 227 additions & 0 deletions build_defs/shared_libraries/rules_pkg_build_fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
diff --git a/BUILD b/BUILD
index 12cf08abb..9e25a6747 100644
--- a/BUILD
+++ b/BUILD
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

-load("@bazel_skylib//rules:copy_directory.bzl", "copy_directory")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("@rules_pkg//:mappings.bzl", "pkg_files")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
@@ -30,53 +29,6 @@ buildifier(
mode = "fix",
)

-# pkg_tar no longer allows directories to be specified.
-# Must use copy_directory to create Tree Artifacts.
-# https://github.com/bazelbuild/rules_pkg/issues/611
-#
-# The srcs directory is prefixed to avoid the error conflicting with
-# other build rules:
-# "One of the output paths ... is a prefix of the other.
-# These actions cannot be simultaneously present;
-# please rename one of the output files or build just one of them"
-# It will be stripped by pkg_tar remap_paths.
-
-copy_directory(
- name = "build_defs_dir",
- src = "build_defs",
- out = "srcs/build_defs",
-)
-
-copy_directory(
- name = "cc_dir",
- src = "cc",
- out = "srcs/cc",
-)
-
-copy_directory(
- name = "java_dir",
- src = "java",
- out = "srcs/java",
-)
-
-copy_directory(
- name = "javatests_dir",
- src = "javatests",
- out = "srcs/javatests",
-)
-
-copy_directory(
- name = "licenses_dir",
- src = "licenses",
- out = "srcs/licenses",
-)
-
-copy_directory(
- name = "operator_dir",
- src = "operator",
- out = "srcs/operator",
-)
-
# This rule is used to copy the source code from other bazel rules.
# This can be used for reproducible builds.
# Only cc targets are needed at this point, so only the files needed to build
@@ -88,18 +40,15 @@ pkg_tar(
".bazelversion",
"BUILD",
"WORKSPACE",
- ":build_defs_dir",
- ":cc_dir",
- ":java_dir",
- ":javatests_dir",
- ":licenses_dir",
- ":operator_dir",
+ "build_defs",
+ "cc",
+ "java",
+ "javatests",
+ "licenses",
+ "operator",
] + glob(["*.bzl"]),
mode = "0777",
package_dir = "scp",
- remap_paths = {
- "srcs/": "",
- },
)

pkg_files(
diff --git a/build_defs/aws/kmstool/kmstool.BUILD b/build_defs/aws/kmstool/kmstool.BUILD
index 022ca6791..5a5d95a2e 100644
--- a/build_defs/aws/kmstool/kmstool.BUILD
+++ b/build_defs/aws/kmstool/kmstool.BUILD
@@ -1,62 +1,19 @@
-load("@bazel_skylib//rules:copy_directory.bzl", "copy_directory")
load("@rules_pkg//:pkg.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])

exports_files(glob(["*"]))

-copy_directory(
- name = "bin_dir",
- src = "bin",
- out = "bin",
-)
-
-copy_directory(
- name = "cmake_dir",
- src = "cmake",
- out = "cmake",
-)
-
-copy_directory(
- name = "containers_dir",
- src = "containers",
- out = "containers",
-)
-
-copy_directory(
- name = "docs_dir",
- src = "docs",
- out = "docs",
-)
-
-copy_directory(
- name = "include_dir",
- src = "include",
- out = "include",
-)
-
-copy_directory(
- name = "source_dir",
- src = "source",
- out = "source",
-)
-
-copy_directory(
- name = "tests_dir",
- src = "tests",
- out = "tests",
-)
-
pkg_tar(
name = "source_code_tar",
srcs = [
- ":bin_dir",
- ":cmake_dir",
- ":containers_dir",
- ":docs_dir",
- ":include_dir",
- ":source_dir",
- ":tests_dir",
+ "bin",
+ "cmake",
+ "containers",
+ "docs",
+ "include",
+ "source",
+ "tests",
] + glob(["*"]),
mode = "0777",
package_dir = "aws_nitro_enclaves_sdk_c",
diff --git a/operator/terraform/aws/environments/demo/BUILD b/operator/terraform/aws/environments/demo/BUILD
index 82726daf5..fdde467c2 100644
--- a/operator/terraform/aws/environments/demo/BUILD
+++ b/operator/terraform/aws/environments/demo/BUILD
@@ -64,20 +64,20 @@ pkg_files(
# copied.
pkg_mklink(
name = "operator_service_link",
- link_name = "demo/operator_service.tf",
- target = "../shared/operator_service.tf",
+ src = "../shared/operator_service.tf",
+ dest = "demo/operator_service.tf",
)

pkg_mklink(
name = "operator_service_vars_link",
- link_name = "demo/operator_service_variables.tf",
- target = "../shared/operator_service_variables.tf",
+ src = "../shared/operator_service_variables.tf",
+ dest = "demo/operator_service_variables.tf",
)

pkg_mklink(
name = "ami_params_link",
- link_name = "demo/ami_params.auto.tfvars",
- target = "../shared/ami_params.auto.tfvars",
+ src = "../shared/ami_params.auto.tfvars",
+ dest = "demo/ami_params.auto.tfvars",
)

pkg_filegroup(
diff --git a/operator/terraform/gcp/environments/demo/BUILD b/operator/terraform/gcp/environments/demo/BUILD
index 5f5d9f54d..ee109ecf9 100644
--- a/operator/terraform/gcp/environments/demo/BUILD
+++ b/operator/terraform/gcp/environments/demo/BUILD
@@ -20,20 +20,20 @@ package(default_visibility = ["//visibility:public"])
# copied.
pkg_mklink(
name = "job_service_link",
- link_name = "demo/job_service.tf",
- target = "../shared/job_service.tf",
+ src = "../shared/job_service.tf",
+ dest = "demo/job_service.tf",
)

pkg_mklink(
name = "job_service_vars_link",
- link_name = "demo/job_service_variables.tf",
- target = "../shared/job_service_variables.tf",
+ src = "../shared/job_service_variables.tf",
+ dest = "demo/job_service_variables.tf",
)

pkg_mklink(
name = "job_service_outputs_link",
- link_name = "demo/job_service_outputs.tf",
- target = "../shared/job_service_outputs.tf",
+ src = "../shared/job_service_outputs.tf",
+ dest = "demo/job_service_outputs.tf",
)

pkg_files(
Loading

0 comments on commit ec108b9

Please sign in to comment.