`adk deploy cloud_run` and `adk deploy gke` copied the whole agent folder
into the staging directory with no exclusions at all, so a `.env` holding
a live API key was built into the container image and its registry layers
even when the user's own `.gitignore` excluded it. `adk deploy
agent_engine` filtered on `.ae_ignore` alone, and read it without
stripping comments or normalizing trailing slashes.
A single `_get_ignore_patterns_func` now unions the patterns from
`.gitignore`, `.gcloudignore` and `.ae_ignore`, normalizes them for
`fnmatch`, and feeds all three `copytree` calls. The local dev UI's
`.adk` folder is excluded unconditionally, because the session database
it holds grows large enough to fail a deployment. Nothing else is
excluded on the user's behalf, so a `.git` directory is still copied
unless an ignore file lists it.
Ports commits ee79e712 ("respect ignore files in adk deploy commands",
PR #4187) and dab351be ("Prevent adk deploy from uploading
.adk/session.db") from main.
The second of those writes `patterns = set('.adk/')`, which iterates the
string into five one-character patterns, so `.adk` is not excluded on
main either and a file named `d` is. This port writes `{'.adk'}`.
Behaviour change: files matched by an ignore file are no longer
deployed. A deployment that relied on a `.env` excluded by `.gitignore`
reaching Cloud Run must now supply those values as environment variables
or secrets on the target.
Set last-release-sha to the commit immediately prior to v1 cherry-picks (e13ada75) to prevent Release Please from scanning upstream main history and incorrectly generating minor releases rather than patch releases.
Change-Id: Ic78faa3c558b0cab1670246310c734a2e1616cc4
Configure release-please-config-v1.json with default versioning strategy so that bug fixes correctly trigger patch releases (e.g., 1.34.1) rather than minor releases.
Change-Id: I79efe1743968c6228a470a7a84ba11bcc5b82995
Fix last-release-sha in release-please-config-v1.json to track the commit SHA of tag v1.34.0 so that Release Please does not generate massive changelogs including legacy commits.
Change-Id: I2e59566ebb3900975b9f86326bb53ed959a92815
Fix release-please-config-v1.json and .release-please-manifest-v1.json to track stable v1 versioning (1.34.0) and CHANGELOG.md rather than v2 prerelease configurations.
Change-Id: I7a82c4b27cad0f0af8a6736fe6e6e4552153b80a
Add .release-please-manifest-v1.json and release-please-config-v1.json to v1 branch to resolve base release-please config not found error when running release action.
Change-Id: If95237eba75aeac824fed2054dbef99924cbc517