64 Commits

Author SHA1 Message Date
Ayush Ranjan fa0fbae6fb Fix Go workflow with permissions needed to write to PR statuses.
PiperOrigin-RevId: 732128622
2025-02-28 07:20:12 -08:00
dependabot[bot] 35f46455a9 Bump actions/setup-go from 5.2.0 to 5.3.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5.2.0...v5.3.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 20:10:30 +00:00
gVisor bot 7af7cb0367 Merge pull request #10376 from google:dependabot/github_actions/actions/checkout-4
PiperOrigin-RevId: 712599942
2025-01-06 11:31:02 -08:00
dependabot[bot] 0fc08a1a78 Bump actions/setup-go from 5.0.1 to 5.2.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.1 to 5.2.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5.0.1...v5.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 20:21:14 +00:00
dependabot[bot] 929a45ff22 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 21:52:12 +00:00
gVisor bot 1d4050cea8 Merge pull request #10375 from google:dependabot/github_actions/actions/setup-go-5.0.1
PiperOrigin-RevId: 631192161
2024-05-06 14:51:06 -07:00
gVisor bot cb77c731b5 Merge pull request #10377 from google:dependabot/github_actions/actions/stale-9
PiperOrigin-RevId: 631175483
2024-05-06 13:58:55 -07:00
dependabot[bot] 9c10a5cb80 Bump actions/stale from 5 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 5 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v5...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-04 08:51:16 +00:00
dependabot[bot] 93723bd5d3 Bump actions/setup-go from 3.5.0 to 5.0.1
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.5.0 to 5.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3.5.0...v5.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-04 08:51:11 +00:00
dependabot[bot] aa1000bca6 Bump github/codeql-action from 2 to 3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-04 08:51:09 +00:00
Ayush Ranjan d2e9bf2cef Do not auto close "revived" issues.
We have an issue reviver (tools/github/reviver/) which revives issues that
still have pending TODOs remaining. Such revived issues are labeled with
"revived".

Currently the issue reviver workflow and stale workflow go in a loop closing
and re-opening issues every few months. Break this loop by not auto-closing
revived issues.

PiperOrigin-RevId: 624993203
2024-04-15 09:58:36 -07:00
Ayush Ranjan e56225db03 Run actions/setup-go before CodeQL in Github workflow.
The golang codeql has been failing for 4 months now. It is because CodeQL was
running with Go 1.20.14, but go.mod specifies v1.21.1.

PiperOrigin-RevId: 607007356
2024-02-14 09:18:13 -08:00
Ayush Ranjan f62a4a77d5 Update go branch to Go 1.21.
Starting with Go 1.21, build tags select the language version. We currently
have several `go:build go1.1` tags, which were intended to act as "true" tags.
But that will break with 1.21. So replace them with "!false".

Fixes #9568.

PiperOrigin-RevId: 576020779
2023-10-23 22:09:47 -07:00
Ayush Ranjan 8c40c16ba8 Exempt proposal issues from being closed as stale.
Proposals usually have more longevity and contain interesting ideas.
Also clean up "new feature" and "enhancement" from the list. Those labels don't
exist in gVisor repo.

PiperOrigin-RevId: 565735357
2023-09-15 11:41:00 -07:00
Lucas Manning 29d82338fc Enhance stale action with more labels and a smaller close window.
The action also ignores a few more labels.

PiperOrigin-RevId: 565494794
2023-09-14 15:34:53 -07:00
Lucas Manning 3dda3741d8 Fix CodeQL so that it does not fail the github check.
PiperOrigin-RevId: 565119657
2023-09-13 12:01:52 -07:00
Lucas Manning 9117572ae0 Add "type: enhancement" to labels protected from the stale action.
PiperOrigin-RevId: 565089338
2023-09-13 10:25:05 -07:00
gVisor bot 94500414c9 Merge pull request #9359 from milantracy:codeqlconfig
PiperOrigin-RevId: 564786128
2023-09-12 11:41:11 -07:00
Lucas Manning 6d06f309ed Increase stale action ops per run.
Right now we're capped at 30, but have 569 open issues and 192 open PRs.

PiperOrigin-RevId: 564760282
2023-09-12 10:23:03 -07:00
Jing Chen 1afe6d14e7 Add initial CodeQL config for gVisor. 2023-09-11 11:41:47 -07:00
Lucas Manning 27d7936e93 Fix github workflow test.
PiperOrigin-RevId: 563466164
2023-09-07 10:08:15 -07:00
Lucas Manning c584a1a435 Add a github workflow that marks issues and PRs as stale.
PiperOrigin-RevId: 563136967
2023-09-06 10:05:13 -07:00
Etienne Perot 79b38029d7 gVisor metric library: Optimize operations for large-cardinality metrics.
This optimizes both increments and lookup operations.

It does so using the following:

- For metrics of potential cardinality larger than 48, it will switch to using
  a map rather than linear search for mapping field value combinations to the
  index that combination corresponds to in the flattened list of values.
  For metrics of cardinality 48 or smaller, linear search is still used as it
  is still faster (and also still faster than binary search), as determined by
  benchmarks.
- All field values are checked for pointer uniqueness (i.e. the pointer to the
  start of each field value string must be unique). This is then used for
  faster matching: instead of comparing whole strings (and needing to hash
  them, in the case of doing map-based lookups), it compares pointer values.
  In the context of this metric library, because all field values must be
  pre-declared ahead of time, keeping references to these pre-declared strings
  should always be possible. This is enforced: it will `panic` if the metric
  user does not do this. In practice, this is easy to do by using `const`
  strings for all metric values. This change does just that for existing
  metrics with string fields.

From benchmarks, this speeds up the time to take a snapshot of existing
metrics by -8.35%. With the unimplemented syscall counter metric, this
optimization reduces the slowdown of adding this metric from +4,250% to
a still-large but much more manageable +290%. A further optimization
(cl/524419591) will reduce this overhead further before re-introducing the
unimplemented syscall counter metric.

PiperOrigin-RevId: 526134756
2023-04-21 14:21:18 -07:00
Pål-Magnus Slåtto 1538acf579 Merge branch 'master' into master 2023-03-26 18:26:28 +02:00
Kevin Krakauer b250ee717d github: remove update styfle/cancel-workflow-action version
We're on a to-be-deprecated version (see bug), and GitHub now provides
cancellation built-in.

See docs here:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency

PiperOrigin-RevId: 519261554
2023-03-24 16:11:43 -07:00