Граф коммитов

410 Коммитов

Автор SHA1 Сообщение Дата
sg0hsmt 90f7188b4c
v2/search: Remove golang.org/x/net dependency (#343)
Use standard context instead of golang.org/x/net/context, and remove dependency.

refs: #295
2024-04-10 13:02:39 -07:00
dependabot[bot] f024adabd9
build(deps): bump golang.org/x/net in /v2 (#330)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220722155237-a158d28d115b to 0.17.0.
- [Commits](https://github.com/golang/net/commits/v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 12:42:17 -07:00
dependabot[bot] 5f299ed134
build(deps): bump google.golang.org/protobuf from 1.26.0 to 1.33.0 (#347)
Bumps google.golang.org/protobuf from 1.26.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 11:36:35 -07:00
dependabot[bot] 8a1798d8fa
build(deps): bump google.golang.org/protobuf in /v2 (#348)
Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 11:36:05 -07:00
Kenneth Ye 3ab9c40c53
Update go versions to 1.22 and remove end of support runtimes (#353)
* Update go versions to 1.22

Signed-off-by: kennethye1 <kennethye1@hotmail.com>

* Upgrade aetest to go122

Signed-off-by: kennethye1 <kennethye1@hotmail.com>

---------

Signed-off-by: kennethye1 <kennethye1@hotmail.com>
2024-04-08 14:36:47 -07:00
Diogo Teles Sant'Anna aabaab1e9a
Feature: Hash-pin sensitive workflow dependencies and enable dependabot for them (#332)
* feat: hash-pin sensitive workflows

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

* feat: configure dependabot to run over github actions

This also is specifying how dependabot will work on updates for go
modules.

The config is set up to:
- Update github actions together in a single monthly PR
- Version updates for GO modules from "/go.mod" will be sent together in a weekly PR.
- Version updates for GO modules from "/v2/go.mod" will be sent separately from the
ones in "/go.mod", but will also be sent together in a weekly PR.

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>

---------

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
2023-12-13 10:53:22 -08:00
Diogo Teles Sant'Anna 0bd0398fa9
Create Security Policy (#329) 2023-12-07 08:37:04 -08:00
Diogo Teles Sant'Anna 7e3e91d839
ci: set minimal permisisons on github workflows (#325)
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
2023-09-25 13:55:22 -07:00
Jongwoo Han aa58fcd18e
Replace deprecated command with environment file (#318)
Signed-off-by: jongwooo <jongwooo.han@gmail.com>
2023-08-29 18:12:52 -07:00
Valentin Deleplace ef2135aad6
Memcache item timestamps (#323)
* Add memcache item timestamps.

* v1 require google.golang.org/protobuf.

* Memcache new fields: use proto getters.
2023-08-25 12:43:42 -07:00
Chi Zhang a080531dca
ci: Update go-version matrix (#319)
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: chizhg <chizhg@users.noreply.github.com>
2023-08-18 10:01:32 -07:00
jinglundong d41edd3967
Extend the deadline of a test context to fix a timeout issue. (#316) 2023-07-11 13:38:16 -07:00
jinglundong f96845d4a0
Upgrade python version being used by the ci workflow. (#315)
* Upgrade python version being used by the ci workflow.

* Update the python version in instance_vm.go.

* Try to fix the v1 gomod test.

* Add export python3 back.

* Stop trying to find python2.7.

* Seems like we still need to install python3.

* There seems to be a mismatch between APPENGINE_DEV_APPSERVER_BINARY and APPENGINE_DEV_APPSERVER.

* Apply the same change to v2 ci.
2023-07-11 12:33:44 -07:00
Cody Oss 93c9fa19a1
fix: regenerate all protos under new namespace (#314)
This should be wire compat as field numbers did not change and
package is not apart of the serialization. I appened `.v2` to each
proto package so that these protos can register distinctly from the
protos that were copied from the v1 library. This removes runtime
errors due to double registration of the same messages. Note: I did
have to specially regenerate taskqueue with a special built version
of protoc-gen-go in order to generate some proto1 legacy message
type that is referenced.

Fixes: #311
Fixes: https://github.com/googleapis/google-cloud-go/issues/7760
2023-07-10 17:47:16 -07:00
Chi Zhang f9c3e90be8
Update go-version matrix (#309)
Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: chizhg <chizhg@users.noreply.github.com>
2023-03-27 11:55:40 -07:00
Chi Zhang 4c82e82f6d
Fix the ci-update-workflow GitHub Actions (#308) 2023-03-24 12:10:36 -07:00
Chi Zhang a8588697be
Add a ci-update-workflow GitHub Actions to update the go-version matrix (#307)
Signed-off-by: Chi Zhang <chizhg@google.com>
2023-03-23 10:31:40 -07:00
Ludovic Champenois 917b599e09
Revert "all: using the more elegant way to deal milliseconds and nanoseconds (#292)" (#306)
This reverts commit 9d6c3532b1.
2023-03-16 23:11:53 +01:00
cui fliter 9d6c3532b1
all: using the more elegant way to deal milliseconds and nanoseconds (#292)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-03-16 22:44:53 +01:00
dependabot[bot] f882c6341f
build(deps): bump golang.org/x/text from 0.3.6 to 0.3.8 (#300)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.6 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.6...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 22:39:59 +01:00
Ludovic Champenois b75a6de6d8
Run go get google.golang.org/appengine/v2/search (#305)
* Install python2 needed for the tests.

* Update base image and install python2

* Adding python2

* adding python 2

* Add more go versions to test.

* remove 1.11

* Adding go get google.golang.org/appengine/v2/search missing from previous PR.

* Typo
2023-03-16 22:30:00 +01:00
dependabot[bot] 1d09fa9162
build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 in /v2 (#299)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 02:26:34 +01:00
Valentin Deleplace 40eb4d17a2
Add v2/search (#297)
* Add v2/search

* Add v2/search updated license text
2023-03-16 02:21:09 +01:00
Zev Goldstein 28bf581106
just a small refactor of api_test (#291)
This makes the test more hermetic by avoiding the need to set env vars, and it also avoids some unecessary duplication of test helper logic by leveraging some of aetest's underlying implementation.

This change was originally part of #284, but I split it out because it's not compatible with v1's log flushing tests, and it would have added unecessary noise to that PR.
2023-03-16 02:20:05 +01:00
Ludovic Champenois 6e2c50e5f1
Install Python2 in base image for DevAppServer tests and change test matrix for 1.11 and 1.20.x (#304)
* Install python2 needed for the tests.

* Update base image and install python2

* Adding python2

* adding python 2

* Add more go versions to test.

* remove 1.11
2023-03-15 18:09:59 -07:00
cui fliter 9af54ae8c5
all: fix some comments (#296)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-03-16 00:48:57 +01:00
cui fliter 59aced7b1e
README.md: fix typo (#288)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-03-15 23:20:28 +01:00
cui fliter 4e4a7b23ca
v2/README.md: fix typos (#276) 2023-03-15 23:18:33 +01:00
Jihui Nie 06b058b43d
Add Go 1.20 to tested Go versions (#303) 2023-03-06 17:24:16 -08:00
Sebastiaan van Stijn a1ae214131
remove golang.org/x/net dependency (#295)
* remove golang.org/x/net dependency

The golang.org/x/net/context package is an alias for stdlib context
since go1.7 (see https://go-review.googlesource.com/72570)

This patch replaces all uses of it for stdlib context.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

* rename App Engine context type to remove import aliases

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

---------

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-03-01 10:29:44 -08:00
Jihui Nie 504804fb50
Add Go 1.18 and Go 1.19 to tested Go versions (#293) 2022-11-16 17:32:20 -08:00
Zev Goldstein 1bdfe3f01a
re-apply PR #235 to v2 (#290)
This change slipped through the cracks because it was added to v1 after v2 was forked, but before v2 was landed.
2022-10-14 17:47:21 -04:00
Zev Goldstein b08cb36610
re-apply PR #232 to v2 (#289) 2022-10-14 17:35:37 -04:00
Yuniel Marquez Bocalandro d981f2f002
Security Vulnerability Upgrading golang.org/x/text (#287)
* Security Vulnerability Upgrading golang.org/x/text from v0.3.2 to v0.3.7

* Testing signed commit
2022-08-05 14:23:54 -07:00
Zev Goldstein 37ff2b8120
allow API calls without GAE context (#284)
The ApiHost used to require a security ticket for all API calls, so the
client side code used to be able to assume that  any request without one
was invalid and reject it. The backend now is able to handle requests
without security tickets in many cases, so the client side check is now
just getting in the way. This change removes that check and lets the
backend attempt to handle all requests.

The way the client implementation happened to require a security ticket
was actually by requiring a GAE context. This change removes that
constraint as well and removes the now-unecessary BackgroundContext.
2022-07-18 11:04:49 -04:00
Zev Goldstein 1f271900b9
prevent github from cancelling all test jobs when one fails (#285) 2022-07-14 18:16:18 -04:00
Zev Goldstein 65ad43f80f
respect GAE_ENV=localdev (#283) 2022-07-13 12:17:39 -04:00
Zev Goldstein 0c7f7a83ce
run gofmt with go1.19 release candidate (#282) 2022-07-12 12:28:29 -04:00
Benny Siegert ca3835e9b4
Fix golang/appengine CI (#280)
With google-github-actions/setup-gcloud#539, they broke Github workflows
specifying the "master" branch ahead of the rename of the branch to
'main'.
2022-04-04 10:04:24 -07:00
Kayla Nguyen da036ec7cb
refactor: pin setup-gcloud gh action to v0 (#274) 2022-01-05 13:43:07 -08:00
pokutuna e005424925
Fix header name to associate log entry & trace (#263) 2021-12-30 14:23:14 -08:00
Zev Goldstein 5a029e65e8
switch default logStream from stdout to stderr (#272) 2021-12-30 14:17:35 -08:00
Lukas Berger bbd66e8159
Add Go 1.16 to tested Go versions (#255) 2021-12-29 14:22:07 -08:00
Kayla Nguyen ab4e2d305c
Let users specify unique function keys using delay.MustRegister (#268) 2021-11-05 13:23:42 -07:00
Kayla Nguyen 6d50fa8477
Update backgroundcontext comment (#267) 2021-10-27 13:14:45 -07:00
Kayla Nguyen cefb82f5c0
Run ci workflow on v2/. (#260)
* Enable aetest tests
* Fix v2/aefix to work with appengine/v2
* Update Contributing docs
2021-08-13 16:25:29 -07:00
Kayla Nguyen d0e56bde7a
Migrate travis ci to Github actions. (#253)
* Run CI tests against go 1.11 to 1.15 

* Run gopath test for go 1.11 and go 1.12

* Update README with CI status
2021-07-21 18:37:41 -07:00
Lukas Berger 2042caf834
Fix documented default deadline in urlfetch client (#249) 2021-07-07 12:59:11 -07:00
joelgerard 856ef3e566
Merge QA into the main branch (#247)
* Removing old, unsupported APIs (#230)

* Remove the old Search API.

* Remove the old Remote API.

* Remove the old sockets API.

* Delete legacy appengine code (#231)

- Delete all files behind `+build appengine`
- Merge the `*_vm.go` variants with the base files
- `go fix` for context update (TODO: Fix internal/api.go's use of context)
- Update travis config to test new versions

* Remove Query APIs from appengine.log (#233)

Remove deprecated log.Query api from appengine.log

* Update docs (#234)

* Remove the old Search API.

* Remove the old Remote API.

* Remove the old sockets API.

* Temporarily remove blobstore API for v2 preview.

* Revert "Temporarily remove blobstore API for v2 preview."

This reverts commit 169bbdd467.

* Update docs for QA.

* Update module API docs to indicate manual_scaling must be used for NumInstances, etc.

* Update module API docs to indicate manual_scaling must be used for NumInstances, etc.

* Remove old interfaces and interfaces that are not recommended (#236)

* Remove the old deprecated channel interface.

* Remove the old deprecated file interface.

* Remove the old deprecated xmpp interface.

* Removing the cloudsql interface, which is not recommended.

* Removing the aebundler interface, which has been deprecated for some time.

* Remove obsolete demo code (#238)

* Remove obsolete demo code. Official appengine sample code referred by doc is in https://github.com/GoogleCloudPlatform/golang-samples

* Replace Logs API with Stdout (#240)

* Removed Logs API.

* Remove dead code.

* Added JSON encoding tests.

* Emit single character severity in JSON message to trigger structured logs handling.

* Prevent timestamp from being emitted on deployed logs.

* Remove superfluous apis (#241)

* Removed protos for channel/search/xmpp.

* Remove protos for socket.

* Add traceID/spanID to structured logs and chunk long logs (#242)

* Moved logging related logic to separate file.

* Added traceID/spanID to structured logs and log chunking.

* Changes from code review.

* Update go.mod for v2

* Revert v2 in the base directory.

* Create the v2 in /v2 and revert the base directory back to 1.6.7 (#243)

* Create a v2 directory for v2+ releases.

* Update AppEngine imports to v2.

* Update AppEngine imports to v2.

* Clean up travis. We only currently support go 1.11+

* Temporarily disable testing go111+ with gopath until we can tag v2 properly.

* Tidy v2/go.mod (#244)

* Create a v2 directory for v2+ releases.

* Update AppEngine imports to v2.

* Update AppEngine imports to v2.

* Clean up travis. We only currently support go 1.11+

* Temporarily disable testing go111+ with gopath until we can tag v2 properly.

* Tidy go.sum

* go mod tidy (#245)

* Create a v2 directory for v2+ releases.

* Update AppEngine imports to v2.

* Update AppEngine imports to v2.

* Clean up travis. We only currently support go 1.11+

* Temporarily disable testing go111+ with gopath until we can tag v2 properly.

* Tidy go.sum

* go mod tidy

Co-authored-by: Steven Buss <sbuss@google.com>
Co-authored-by: Kayla Nguyen <kaylanguyen@google.com>
Co-authored-by: Jason Collins <jason.a.collins@gmail.com>
2021-06-15 10:57:49 -07:00
Zev Goldstein 8f83b32138
[internal] Expose internal.handleHTTP as a standard http middleware (#235)
The existing `appengine.Main()` function doesn't allow for any customization such as using an alternate webserver, or even just configuring `net/http`. Exposing its core functionality as a standard HTTP middleware gives the user much significantly more control and composability.
2021-03-31 10:19:40 -07:00