Skip to content

Commit 8199a4b

Browse files
authored
Merge branch 'main' into custom_receiverhelper
2 parents a1c0105 + ee3fccc commit 8199a4b

File tree

194 files changed

+4646
-1443
lines changed

Some content is hidden

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

194 files changed

+4646
-1443
lines changed

.chloggen/add-pooling.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: pdata
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add support for local memory pooling for data objects.
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [13678]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: This is still an early experimental (alpha) feature. Do not recommended to be used production.
19+
To enable use "--featuregate=+pdata.useProtoPooling"
20+
21+
# Optional: The change log or logs in which this entry should be included.
22+
# e.g. '[user]' or '[user, api]'
23+
# Include 'user' if the change is relevant to end users.
24+
# Include 'api' if there is a change to a library API.
25+
# Default: '[user]'
26+
change_logs: [api, user]

.chloggen/x25519mlkem768.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: configtls
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Enable X25519MLKEM768 as per draft-ietf-tls-ecdhe-mlkem
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [13670]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
#subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
#change_logs: []

.github/workflows/builder-snapshot.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
3838

39-
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
39+
- uses: anchore/sbom-action/download-syft@da167eac915b4e86f08b264dbdbc867b61be6f0c # v0.20.5
4040

4141
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4242
with:
@@ -60,7 +60,7 @@ jobs:
6060
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
6161

6262
- name: Check GoReleaser
63-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
63+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
6464
with:
6565
distribution: goreleaser-pro
6666
version: ${{ env.GORELEASER_PRO_VERSION }}
@@ -70,7 +70,7 @@ jobs:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: Run GoReleaser
73-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
73+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
7474
with:
7575
distribution: goreleaser-pro
7676
version: ${{ env.GORELEASER_PRO_VERSION }}

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
42+
uses: github/codeql-action/init@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10
4343
with:
4444
languages: go
4545

4646
- name: Autobuild
47-
uses: github/codeql-action/autobuild@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
47+
uses: github/codeql-action/autobuild@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10
4848

4949
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
50+
uses: github/codeql-action/analyze@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ jobs:
6464

6565
# Upload the results to GitHub's code scanning dashboard.
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
67+
uses: github/codeql-action/upload-sarif@96f518a34f7a870018057716cc4d7a5c014bd61c # v3.29.10
6868
with:
6969
sarif_file: results.sarif

config/configgrpc/wrappedstream_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
)
2121

2222
func TestWrapServerStream(t *testing.T) {
23-
ctx := context.WithValue(context.TODO(), oneCtxKey, 1)
23+
ctx := context.WithValue(t.Context(), oneCtxKey, 1)
2424
fake := &fakeServerStream{ctx: ctx}
2525
assert.NotNil(t, fake.Context().Value(oneCtxKey), "values from fake must propagate to wrapper")
2626
wrapped := wrapServerStream(context.WithValue(fake.Context(), otherCtxKey, 2), fake)

config/configtls/configtls.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (c Config) loadTLSConfig() (*tls.Config, error) {
247247
for _, curve := range c.CurvePreferences {
248248
curveID, ok := tlsCurveTypes[curve]
249249
if !ok {
250-
return nil, fmt.Errorf("invalid curve type: %s. Expected values are [P-256, P-384, P-521, X25519]", curveID)
250+
return nil, fmt.Errorf("invalid curve type: %s. Expected values are [P-256, P-384, P-521, X25519, X25519MLKEM768]", curveID)
251251
}
252252
curvePreferences = append(curvePreferences, curveID)
253253
}
@@ -478,8 +478,9 @@ var tlsVersions = map[string]uint16{
478478
}
479479

480480
var tlsCurveTypes = map[string]tls.CurveID{
481-
"P256": tls.CurveP256,
482-
"P384": tls.CurveP384,
483-
"P521": tls.CurveP521,
484-
"X25519": tls.X25519,
481+
"P256": tls.CurveP256,
482+
"P384": tls.CurveP384,
483+
"P521": tls.CurveP521,
484+
"X25519": tls.X25519,
485+
"X25519MLKEM768": tls.X25519MLKEM768,
485486
}

config/configtls/configtls_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,11 @@ func TestCurvePreferences(t *testing.T) {
881881
expectedCurveIDs []tls.CurveID
882882
expectedErr string
883883
}{
884+
{
885+
name: "X25519MLKEM768",
886+
preferences: []string{"X25519MLKEM768"},
887+
expectedCurveIDs: []tls.CurveID{tls.X25519MLKEM768},
888+
},
884889
{
885890
name: "X25519",
886891
preferences: []string{"X25519"},

internal/cmd/pdatagen/internal/pdata/field.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ type Field interface {
1414

1515
GenerateTestEncodingValues(ms *messageStruct) string
1616

17+
GenerateDeleteOrig(ms *messageStruct) string
18+
1719
GenerateCopyOrig(ms *messageStruct) string
1820

1921
GenerateMarshalJSON(ms *messageStruct) string

internal/cmd/pdatagen/internal/pdata/message_field.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ func (mf *MessageField) GenerateTestEncodingValues(*messageStruct) string {
6363
return mf.toProtoField().GenTestEncodingValues()
6464
}
6565

66+
func (mf *MessageField) GenerateDeleteOrig(*messageStruct) string {
67+
return mf.toProtoField().GenDeleteOrig()
68+
}
69+
6670
func (mf *MessageField) GenerateCopyOrig(ms *messageStruct) string {
6771
t := template.Parse("messageCopyOrigTemplate", []byte(messageCopyOrigTemplate))
6872
return template.Execute(t, mf.templateFields(ms))

0 commit comments

Comments
 (0)