Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed http2 parsing several bugs #15124

Merged
merged 232 commits into from
Jan 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
98aa92e
[fargate] Make hostname resolution more reliable (#14746)
davidor Dec 19, 2022
f64dc33
7.41.0 CHANGELOG (#14675) (#14745)
kacper-murzyn Dec 19, 2022
2d3b618
Updated Python to 3.8.16
carlosroman Dec 19, 2022
25a740d
CWS: sync BTFhub constants (#14804)
github-actions[bot] Dec 20, 2022
6a6dac4
[CSPM] respect verbose on compliance check cli cmd (#14750)
paulcacheux Dec 20, 2022
d241207
CODEOWNERS: splitting files so USM can own its own files (#14789)
guyarb Dec 20, 2022
5192582
config: test: Removed duplicated test (#14705)
guyarb Dec 20, 2022
6683a54
Running dockers in the kitchen test (#14589)
guyarb Dec 20, 2022
09a21ca
[CWS] Add tests for activity dump processes content (#14708)
spikat Dec 20, 2022
aeaf282
[CWS] Add two checks to avoid adding nodes with abnormal paths in act…
spikat Dec 20, 2022
cd8e180
[gitlab] Repack macOS JUnit tarball to include correct name and job U…
Dec 20, 2022
4a50ec2
Bump golang.org/x/tools from 0.3.0 to 0.4.0 in /pkg/security/secl (#1…
dependabot[bot] Dec 20, 2022
d3fd9bb
[single-machine-performance] Introduce regression detector jobs (#14528)
blt Dec 20, 2022
618243f
Split bundle params (#14702)
ogaca-dd Dec 20, 2022
5830b52
CWS: sync BTFhub constants (#14815)
github-actions[bot] Dec 21, 2022
162c1bc
Check the package exists before creating package. Restore install scr…
julien-lebot Dec 21, 2022
1040b3d
change networks slack channel (#14819)
guyarb Dec 21, 2022
b2c2754
fix close_time value display in INFO log (#14744)
keisku Dec 21, 2022
7493266
Updates prometheusScrape to support tag_by_endpoint and collect_count…
tbavelier Dec 21, 2022
c10b914
Migrating flare to a component (#14234)
hush-hush Dec 21, 2022
1c8a28c
Add netlink process monitor (#14706)
nplanel Dec 21, 2022
cf33c51
protocols: refactor tests to allow pre-post setups (#14817)
guyarb Dec 21, 2022
fe80df6
Escape path in get-acl command (#14818)
julien-lebot Dec 21, 2022
d254665
ci: Add manual benchmark step for trace-agent (#14466)
ajgajg1134 Dec 21, 2022
589a248
pkg/trace/config: Lower max tracer payload to 25 MB to better align w…
ajgajg1134 Dec 21, 2022
86fc464
Revert #14367 and use nano timestamp instead (#14825)
vboulineau Dec 21, 2022
17aff46
Disable by default remote-tagger in clc-runner mode (#14821)
clamoriniere Dec 21, 2022
187ada3
fix gofmt -s for pkg/collector/collector_demux_test.go (#14808)
paulcacheux Dec 22, 2022
dd27430
Improve debug logging in cloud foundry container tagger (#14803)
sarah-witt Dec 22, 2022
96f6442
[Serverless] Merge serverless/main to main. (#14826)
purple4reina Dec 22, 2022
0dbb959
Allow Regression Detector pipeline to fail (#14828)
blt Dec 22, 2022
4ea1a91
[process-agent] Remove unused properties from AgentConfig (#14842)
xornivore Dec 22, 2022
ca6b68f
7.41.1 changelog (#14822) (#14824)
kacper-murzyn Dec 23, 2022
b6d6440
Add do-not-merge github action (#14843)
AlexandreYang Dec 23, 2022
0dd5aac
[CWS] remove useless resolver function (#14792)
safchain Dec 26, 2022
f0c848e
[kitchen] Work around bundler and ruby version issue in verifier (#14…
KSerrania Dec 27, 2022
0cd2b44
Add the 'test' build tag to the 'unit-tests' flavor
hush-hush Dec 26, 2022
4b98b27
flare: Added /opt/datadog-agent directory permissions to permissions.…
guyarb Dec 27, 2022
7f95930
[USM] protocol classification: add RabbitMQ classification (#14734)
amitslavin Dec 28, 2022
cc80433
Handle environment variables without an equal sign (#14806)
lebauce Dec 28, 2022
2d8ef0b
usm: protocols: Refactored server creation (#14869)
guyarb Dec 28, 2022
e55de39
Removed example docker tests (#14852)
guyarb Dec 28, 2022
e4194e2
[CWS][SEC-5573] add custom CWS product (#14748)
safchain Dec 28, 2022
e4e7d4b
Update URL regexp to detect for Datadog's URL
hush-hush Dec 21, 2022
bb428cb
system-probe: tasks: Save all dockers from docker-compose files in th…
guyarb Dec 28, 2022
948ecdd
[process-agent] Move data scrubber and disallow list from pkg/process…
xornivore Dec 28, 2022
7bba3ea
add `integration_profiling` config option (#14847)
djova Dec 28, 2022
5a72c32
Fix flaky TestKSMCheckInitTags unit-test (#14832)
clamoriniere Dec 28, 2022
5087619
Deleting Security Agent for Windows resources (#14833)
modernplumbing Dec 28, 2022
ad8393c
[process-agent] Remove orchestrator config from AgentConfig (#14867)
xornivore Dec 28, 2022
b806b3b
[process-agent] Display system probe process module status in process…
kkhor-datadog Dec 29, 2022
305bd75
tooling: Add invoke vscode devcontainer cmd (#14031)
clamoriniere Dec 29, 2022
86ecff9
adding err to exit SecAgent. fixes hanging if there's no API key (#14…
modernplumbing Dec 29, 2022
bfe9036
Replace hardcoded /proc path with config field (#14773)
albertvaka Dec 29, 2022
3c18fa6
usm: protocols: Added redis classification (#14886)
guyarb Dec 29, 2022
9ea5c01
[CWS] extract custom events package (#14230)
safchain Dec 29, 2022
c4c6a3b
[process-agent] Remove check intervals from pkg/process/config (#14878)
xornivore Dec 29, 2022
d7136d3
flare: Ignore system probe dirs if they are empty (#14893)
guyarb Dec 29, 2022
a061d5b
[CWS] increase exit event test timings (#14813)
YoannGh Dec 30, 2022
b3f81a0
[CWS] fix rule id not sent for custom event (#14897)
safchain Dec 30, 2022
cf46c54
Adding return statment in GUI when an error is encountered
carlosroman Dec 30, 2022
6da93f6
[CI] Artifactory for Python (#14473)
amenasria Dec 30, 2022
070cae2
Introduce new E2E tests based on test-infra-definitions (#13643)
vboulineau Dec 30, 2022
00dc666
manual check tracing uses new exhaustive tracing config option (#14892)
djova Dec 30, 2022
aaaf9e1
pkg/trace/traceutil: Add fast-path for NormalizeTags to reduce cpu us…
ajgajg1134 Dec 30, 2022
fccb05e
usm: remove the scenario of nil subprograms (#14909)
guyarb Jan 1, 2023
bfd5f08
Bump datadog-api-client from 2.6.0 to 2.7.0 in /test/e2e/cws-tests (#…
dependabot[bot] Jan 2, 2023
0b212bc
usm: http2: improved functions (#14917)
guyarb Jan 2, 2023
1b9011a
update profiling endpoint when the fips is enabled to avoid 404 (#14807)
Kaderinho Jan 2, 2023
054a847
pkg/clusteragent/admission: introduce deployment patcher (#14500)
ahmed-mez Jan 2, 2023
71c2353
[CWS] avoid using readonly map for eBPF test prog (#14780)
YoannGh Jan 2, 2023
ef8c4ff
[e2e] add codeowners for new e2e tests (#14865)
pducolin Jan 2, 2023
a6aa478
DogstatsD component improvements (#14839)
ogaca-dd Jan 2, 2023
c979a3e
eval.Opts holds MacroStore and VariableStore (#14874)
safchain Jan 2, 2023
0223ceb
[fake-datadog] add docker compose (#14902)
pducolin Jan 2, 2023
952e7e8
usm: mongo: Added mongo classification (#14809)
guyarb Jan 3, 2023
08cc3f2
Update agent_dev_env.md (#14887)
clamoriniere Jan 3, 2023
e546e85
[CWS][SEC-6508] use tail call limit to increase the number of args/en…
YoannGh Jan 3, 2023
60b99e1
[notifications] Catch all image pull errors as infra failures (#14926)
KSerrania Jan 3, 2023
ef5563b
Do not install the integrations downloader for python 2 (#14920)
alopezz Jan 3, 2023
76da3cb
usm: classification: Shrink classification buffer to 24 bytes (#14925)
guyarb Jan 3, 2023
4b687e4
config: usm: Added USM to system-probe.yaml.example file (#14908)
guyarb Jan 3, 2023
d9dd650
setupConfig consumes 1 param instead of many, adding to SecAgent cons…
modernplumbing Jan 3, 2023
27d1b60
[e2e/ndm] add snmp test environment (#14768)
pducolin Jan 3, 2023
41a52b6
[CWS] extract probe from event and activity dump manager (#14515)
paulcacheux Jan 3, 2023
53745b4
[corechecks/snmp] Add IP Addresses to NDM Metadata interfaces (IPv4) …
AlexandreYang Jan 3, 2023
1eaec33
{Dockerfiles/agent,trace-agent/config}: disable apm `max_memory` and …
ahmed-mez Jan 3, 2023
636b0f9
[pkg/otlp] Add a simple example on metric export (#14784)
songy23 Jan 3, 2023
e0f9ddf
Bump github.com/vektra/mockery/v2 from 2.15.0 to 2.16.0 in /internal/…
dependabot[bot] Jan 3, 2023
15007f1
usm: Reducing chances for mistakes in the protocol type values (#14816)
guyarb Jan 3, 2023
31cd71c
usm: classification: split the functions and helpers to protocol-dedi…
guyarb Jan 3, 2023
c6ad980
[process-agent] Remove host info from AgentConfig (#14885)
xornivore Jan 3, 2023
e8ac456
[process-agent] Remove remaining properties from AgentConfig (#14889)
xornivore Jan 3, 2023
9b4a9de
Ignore RemoteSamplingClient when marshaling agent config (#14927)
martpier Jan 3, 2023
451e109
pkg/obfuscate: fix panic due to missing logger (#14859)
ivanovart Jan 3, 2023
a9686b7
Update github.com/lxn/walk version (#14905)
clarkb7 Jan 3, 2023
04063a5
gitignore runtime compiled hash files (#14764)
brycekahle Jan 3, 2023
86fa86e
[process-agent] Remove pkg/process/config package (#14904)
xornivore Jan 4, 2023
1b98eeb
Bump github.com/avast/retry-go/v4 from 4.3.1 to 4.3.2 (#14935)
dependabot[bot] Jan 4, 2023
0eb826c
Bump github.com/prometheus/procfs from 0.8.0 to 0.9.0 (#14934)
dependabot[bot] Jan 4, 2023
28e306e
[CWS Agent] Bugfixing SecAgent Params constructor (#14939)
modernplumbing Jan 4, 2023
5efde04
[USM] use per-cpu array map instead of in-stack buffer for classifica…
Yumasi Jan 4, 2023
33672c8
[gitlab] Use DEB buildimage based on Ubuntu 14.04 instead of Debian 8…
Jan 4, 2023
10a457d
Adding config option to disable delta profiles when profiling the Agent
carlosroman Jan 3, 2023
59f7f0d
Fixed nil return instead of an error in DogStatsD file replay
carlosroman Dec 29, 2022
b52a35a
Removed sending API key as params in forwarder
carlosroman Dec 29, 2022
09071dc
[CWS] remove now useless runtime files sync check (#14945)
paulcacheux Jan 4, 2023
d64d624
flags package to organize security agent subcommand flags (#14906)
modernplumbing Jan 4, 2023
a2c6499
[CI] Improve visibility for `docker run` commands in the CI (#14899)
amenasria Jan 4, 2023
58341dd
[CWS Agent] SecAgent command pkg to replace common pkg, moving status…
modernplumbing Jan 4, 2023
bd49adc
Bump github.com/itchyny/gojq from 0.12.10 to 0.12.11 (#14938)
dependabot[bot] Jan 4, 2023
3e3bc52
Replacing TODOs in exposed comments with more meaningful comments (#1…
carlosroman Jan 4, 2023
e35ab21
Revert "[agent] Support for running secrets backends with sha256 veri…
xornivore Jan 4, 2023
ae707f6
missing import in file with unsupported build flag (#14952)
modernplumbing Jan 4, 2023
d8a1d48
Bump golang.org/x/text from 0.5.0 to 0.6.0 (#14948)
dependabot[bot] Jan 4, 2023
8f82707
Download btfs for kitchen tests (#14587)
ISauve Jan 4, 2023
d12de27
[secrets] Fix getDDAgentUserSID to account for NT AUTHORITY\SYSTEM (#…
xornivore Jan 4, 2023
461fa2c
usm: classification: removed redundant nolint (#14958)
guyarb Jan 5, 2023
74a008e
Bump wheel versions (#14918)
FlorentClarret Jan 5, 2023
8f35b84
Fixing system_probe.py on linux machine (#14959)
guyarb Jan 5, 2023
378ca6f
document trace API v04, including response (#14868)
dgoffredo Jan 5, 2023
d16f88e
[CWS] improve mount fallback (#14779)
safchain Jan 5, 2023
90277ad
[CWS] bump security agent policies to v0.42.1 (#14964)
paulcacheux Jan 5, 2023
8b3bff4
[orchestration] Add Vertical Pod Autoscalers (#14669)
JLineaweaver Jan 5, 2023
9e511a0
[usm] Extract batching functionality into package (#14712)
p-lambert Jan 5, 2023
2aefb36
[Process Agent] Split Collector into Runner and Submitter (#14883)
just-chillin Jan 5, 2023
a8aabce
Bump Collector dependencies to v1.0.0-RC2/v0.68.0 (#14864)
liustanley Jan 5, 2023
fbe7dfe
Increase speed of generate_minimized_btfs jobs (#14585)
ISauve Jan 5, 2023
c13bc33
Add dynamic way of determining eBPF helper availability on runtime co…
brycekahle Jan 5, 2023
80a7093
Fix udp bind for random ports (#14956)
hmahmood Jan 5, 2023
c221645
NDM: Add snmp.interface_status metric (#14797)
FlorianVeaux Jan 6, 2023
f13e112
NDM: Add snmp.device.[un]reachable metrics (#14649)
FlorianVeaux Jan 6, 2023
79140d3
Improve log message (#14968)
vickenty Jan 6, 2023
58f1cf3
Use rv "0" when polling endpoint list (#13906)
odinuge Jan 6, 2023
394ac59
Remove `CCA_IN_AD` flag and related unused code (#14955)
gh123man Jan 6, 2023
bef03bc
epforwarder: add additional debug logging (#14161)
EmmaOnThursday Jan 6, 2023
d822d5d
Fix small typo in install XML. (#14687)
derekwbrown Jan 7, 2023
817abc4
CWS: sync BTFhub constants (#14986)
github-actions[bot] Jan 7, 2023
c2377b9
Revert "pkg/obfuscate: improve formatting and string parsing in the S…
knusbaum Jan 7, 2023
2d3e22f
[CWS] remove unsafe pointer from eval.Context (#14890)
safchain Jan 9, 2023
02e7189
[workloadmeta/collectors/containerd] Collect image metadata (#14592)
davidor Jan 9, 2023
3e5de5b
[CSPM] remove the hostSelector field not used anymore (#14770)
jinroh Jan 9, 2023
077ab21
[CWS] add tests for live process monitoring (#14944)
YoannGh Jan 9, 2023
3262265
[system-probe][NET-2899] fix race condition in ephemeral port checker…
akarpz Jan 9, 2023
7c74f42
[CWS] restore SECL documentation generation (#14993)
YoannGh Jan 9, 2023
7fcfef9
[CWS] fix event missing field resolver (#14992)
paulcacheux Jan 9, 2023
e2b08da
Add __TARGET_ARCH_ to runtime compilation flags (#14983)
brycekahle Jan 9, 2023
958de3f
Re-delete http runtime asset hash file (#14982)
brycekahle Jan 9, 2023
3a04661
Add CO-RE version of TCP Queue Length check (#14763)
brycekahle Jan 9, 2023
75f3078
Bump golang.org/x/tools from 0.4.0 to 0.5.0 in /pkg/security/secl (#1…
dependabot[bot] Jan 9, 2023
41a54d0
Fix gateway lookup tests (#14951)
hmahmood Jan 9, 2023
147766a
[usm] Reduce HTTP test memory utilization (#15006)
p-lambert Jan 10, 2023
888ec6b
[CWS] mount fallback to pid 1 by default (#15007)
safchain Jan 10, 2023
39759ce
[CWS][SEC-4020] parse args and envs from the new program stack pages …
YoannGh Jan 10, 2023
21bb524
[process-agent] Refactor conn rates with util/subscriptions (#14988)
xornivore Jan 10, 2023
175f833
[CWS] change programs to avoid mixing events between tests (#15012)
YoannGh Jan 10, 2023
62bb35c
[CWS] rework event json marshalling (#15010)
paulcacheux Jan 10, 2023
7601154
[USM] protocol classification: add PostgreSQL classification (#14625)
Yumasi Jan 10, 2023
80fc23d
[process-agent] Scaffold components for process agent (#14972)
xornivore Jan 11, 2023
48657a5
CWS: sync BTFhub constants (#15023)
github-actions[bot] Jan 11, 2023
0cc380a
[CWS] rework/cleanup `FieldHandlers` (#15015)
paulcacheux Jan 11, 2023
f2d278b
Update CODEOWNERS (#15024)
guyarb Jan 11, 2023
caac8eb
Use sc query to gain information about the service before attempting …
julien-lebot Jan 11, 2023
ac5a086
[security-agent] remove redundant String() in compliance agent log (#…
0intro Jan 11, 2023
e1342fc
[invoke] Print summary of test failures at the end of inv test (#14682)
KSerrania Jan 11, 2023
e677798
[system-probe][NET-2891] Fix tcp retransmit count (#14740)
akarpz Jan 11, 2023
e4dbae1
usm: upgraded pgdriver version to indirectly upgrade mellium.in/sasl …
guyarb Jan 11, 2023
8df894b
[CWS] fix signal test (#15025)
safchain Jan 11, 2023
734b81b
[process-agent] Support dynamically enabling profiling for process ag…
kkhor-datadog Jan 11, 2023
3c9f7b4
pkg/obfuscate: Fix parsing of sqlserver identifiers enclosed in squar…
alexandre-normand Jan 11, 2023
ba9a5a3
.gitlab: move APM benchmark job to manual only (#15036)
ajgajg1134 Jan 11, 2023
5e3b74f
fix datatype (#13791)
ian28223 Jan 11, 2023
a020db8
[AD/prometheus] Ignore headless services (#15031)
davidor Jan 12, 2023
063380f
Fix stop service (#15035)
julien-lebot Jan 12, 2023
e9001d8
Fix check conf directory
hush-hush Dec 28, 2022
93cf194
Fix shipping of 'version-history.json' and 'registry.json' in flares
hush-hush Dec 28, 2022
a231a91
Fix datadog.yaml file name in flare
hush-hush Dec 30, 2022
3734232
Force file permission to 644 within a flare
hush-hush Dec 30, 2022
9e41fde
auto instru: add rc provider (#15008)
ahmed-mez Jan 12, 2023
aa1215b
pkg/obfuscate: use github.com/outcaste-io/ristretto instead of github…
katiehockman Jan 12, 2023
b9690bb
[workloadmeta/kubelet] Parse image ID if name is a SHA256
juliogreff Jan 5, 2023
bac7670
pkg/trace/api: remove unused internal OTLP HTTP server (#14965)
mx-psi Jan 12, 2023
a014b91
[CWS] cleanup last uses of `jsonschema_description` (#15050)
paulcacheux Jan 12, 2023
328e0ea
[Serverless] Merge `serverless/main` to `main` (#14980)
purple4reina Jan 12, 2023
78a8c74
Fixes multiple problems with http processing/tagging on Windows. (#15…
derekwbrown Jan 13, 2023
0bc2c3f
Add the plumbing in the agent forwarder to submit container images an…
L3n41c Jan 13, 2023
20520eb
Improve documentation for BundleParams (#15011)
ogaca-dd Jan 13, 2023
1a5d055
pkg/clusteragent/admission: add unit tests (#15044)
ahmed-mez Jan 13, 2023
6329ec2
[CWS] bump syscall table + extract into separate task (#15061)
paulcacheux Jan 13, 2023
16cc0c7
[gitlab] Temporarily disable SUSE Agent 5 upgrade tests (#15055)
Jan 13, 2023
f703053
[corechecks/snmp] Add LLDP remote device IP address (#14946)
AlexandreYang Jan 13, 2023
839b9d6
[CWS] add discarders eBPF unit test (#14471)
safchain Jan 13, 2023
9707350
[CWS Agent] Moving SecAgent subcommands to new dir part 2 (#14915)
modernplumbing Jan 13, 2023
2dd3c42
Add `container_image` core check (#14567)
L3n41c Jan 13, 2023
49a9ef6
Reorganize the specs for some kitchen test (#15027)
julien-lebot Jan 13, 2023
8409230
[check command] Add `--instance-filter` option (#15034)
AlexandreYang Jan 13, 2023
962f557
Migrate systray to an fx.App (#14985)
clarkb7 Jan 13, 2023
fdb5744
epforwarder: update dbm samples endpoint prefix (#15053)
EmmaOnThursday Jan 13, 2023
227069d
[process-agent] Refactor Check interface (#15063)
xornivore Jan 14, 2023
f844650
usm: postgres classification: Reduced 5 seconds per test, 1m30s in to…
guyarb Jan 16, 2023
a334ca9
CWS: sync BTFhub constants (#15074)
github-actions[bot] Jan 16, 2023
a6ad999
[DCA] Convert commands to Fx apps
juliogreff Oct 19, 2022
c548704
Extract magic strings into command.* constants
juliogreff Jan 12, 2023
1d69d14
[CWS] Add 4 tests, one for each kernel rate limiter algo (#15064)
spikat Jan 16, 2023
01a750d
[CWS] remove useless callbacks (#15046)
safchain Jan 16, 2023
57df33e
Add `SBOM` core check (#14989)
L3n41c Jan 16, 2023
7574b15
Prevent check from running after it was unscheduled. (#15065)
vickenty Jan 16, 2023
e0b997b
Restrict flare file from being accessible by other users on Unix (#14…
hush-hush Jan 16, 2023
2f567d6
pkg/clusteragent/admission/patch: poll rc on leadership switch (#15062)
ahmed-mez Jan 16, 2023
fbfae01
pkg/clusteragent/admission: add additional libconfig env vars (#15059)
Kyle-Verhoog Jan 16, 2023
4f67d77
usm: classification: Split USM and NPM classifications (#15075)
guyarb Jan 16, 2023
277740e
Python memory telemetry (#14757)
vickenty Jan 16, 2023
3e2a7a9
Add telemetry for number of contexts per origin (#15016)
vickenty Jan 16, 2023
68ad2b4
[process-agent] Fix kitchen tests for process agent on main (#15072)
xornivore Jan 16, 2023
c22da78
include `functests` in `DD_PIPELINE_ID` for system probe and security…
paulcacheux Jan 16, 2023
8df3548
[install_script] Backport removal of RPM signing key 4172A230 (#15082)
Jan 16, 2023
8913bbb
[corechecks/snmp] LLDP resolve local interface (#14991)
AlexandreYang Jan 16, 2023
c2f525a
[CWS] fix rule in error reported twice (#15084)
safchain Jan 16, 2023
b03523f
Add java package in our circle-ci image (#14665)
nplanel Jan 16, 2023
3519d86
Use DMI on EC2 Nitro instances to get host aliases
hush-hush Jan 12, 2023
8ba2385
[CWS] add inode to pid context to detect exec loss (#14661)
safchain Jan 17, 2023
552a7d7
Fix serializer tests flakiness (#15093)
L3n41c Jan 17, 2023
24caf73
[RCM-632] Add UUID in request (#15088)
coignetp Jan 17, 2023
daa7a76
fix the receiver name consistency (#15068)
wiyu Jan 17, 2023
efbe801
Add limits to allocated dictionaries, prevent browser cross-site requ…
ajgajg1134 Jan 17, 2023
4e2e857
pkg/trace/api: Move semantic conventions to separate internal package…
mx-psi Jan 17, 2023
bb1fc00
Factorize queue code duplicated at two places (#15098)
L3n41c Jan 17, 2023
259b355
[single-machine-performance] Push agent containers to SMP ECR (#14438)
blt Jan 17, 2023
695ffa5
Bump github.com/Microsoft/hcsshim from 0.9.4 to 0.9.6 (#14785)
dependabot[bot] Jan 17, 2023
2ed0672
[Windows] implement mapping of pid to service name (#15039)
derekwbrown Jan 17, 2023
b744176
Fixed http2 parsing several bugs
guyarb Jan 18, 2023
62b5bb5
Merge branch 'main' into guy.arbitman/http2-fix-several-bugs
guyarb Jan 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .circleci/images/runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN set -ex \
&& apt-get update && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
curl \
default-jre \
doxygen \
file \
g++ \
Expand Down
4 changes: 3 additions & 1 deletion .copyright-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ github.com/DataDog/mmh3: Copyright (c) 2017 Datadog, Inc.
# not scanned automatically.
github.com/tklauser/numcpus: Copyright 2018 Tobias Klauser
github.com/Masterminds/goutils: "Copyright 2014 Alexander Okoli"
github.com/dgraph-io/ristretto:
github.com/outcaste-io/ristretto:
- "Copyright 2019 Dgraph Labs, Inc. and Contributors"
- "Copyright 2020 Dgraph Labs, Inc. and Contributors"
- "Copyright 2021 Dgraph Labs, Inc. and Contributors"
- "Copyright 2020 The LevelDB-Go and Pebble Authors. All rights reserved."
- "Copyright (c) 2014 Andreas Briese, eduToolbox@Bri-C GmbH, Sarstedt"
- "Copyright (c) 2019 Ewan Chou"
Expand Down Expand Up @@ -126,3 +127,4 @@ gomodules.xyz/jsonpatch: Copyright (c) 2015 The Authors
github.com/bytecodealliance/wasmtime-go: Copyright (c) 2020 The Bytecode Alliance
github.com/OneOfOne/xxhash: Copyright (c) 2014 Ahmed W. (OneOfOne)
github.com/yashtewari/glob-intersection: Copyright (c) 2018 Yash Tewari (yashtewari)
go.mongodb.org/mongo-driver/*: Copyright © 2018 MongoDB, Inc.
15 changes: 15 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
/.gitlab/choco_build.yml @DataDog/agent-platform @DataDog/windows-agent
/.gitlab/choco_deploy.yml @DataDog/agent-platform @DataDog/windows-agent

/.gitlab/benchmarks/benchmarks.yml @DataDog/agent-apm

/chocolatey/ @DataDog/windows-agent

/cmd/ @DataDog/agent-shared-components
Expand Down Expand Up @@ -174,6 +176,8 @@
# BEGIN COMPONENTS
/comp @DataDog/agent-shared-components
/comp/core @DataDog/agent-shared-components
/comp/process @DataDog/processes
/comp/systray @DataDog/windows-agent
# END COMPONENTS

# pkg
Expand Down Expand Up @@ -209,13 +213,15 @@
/pkg/collector/corechecks/cluster/ @DataDog/container-integrations
/pkg/collector/corechecks/cluster/orchestrator @DataDog/container-app
/pkg/collector/corechecks/containers/ @DataDog/container-integrations
/pkg/collector/corechecks/containerimage/ @DataDog/container-integrations
/pkg/collector/corechecks/containerlifecycle/ @DataDog/container-integrations
/pkg/collector/corechecks/ebpf/ @DataDog/container-integrations
/pkg/collector/corechecks/embed/ @Datadog/agent-platform
/pkg/collector/corechecks/embed/jmx/ @Datadog/agent-metrics-logs
/pkg/collector/corechecks/embed/apm*.go @Datadog/agent-platform @DataDog/agent-apm
/pkg/collector/corechecks/embed/process_agent*.go @Datadog/agent-platform @DataDog/processes
/pkg/collector/corechecks/net/ @DataDog/agent-platform
/pkg/collector/corechecks/sbom/ @DataDog/container-integrations
/pkg/collector/corechecks/snmp/ @DataDog/network-device-monitoring
/pkg/collector/corechecks/system/ @DataDog/agent-platform
/pkg/collector/corechecks/system/**/*_windows*.go @DataDog/agent-platform @DataDog/windows-agent
Expand Down Expand Up @@ -247,6 +253,7 @@
/pkg/serializer/ @DataDog/agent-metrics-logs
/pkg/tagger/ @DataDog/container-integrations
/pkg/tagset/ @DataDog/agent-shared-components
/pkg/util/aggregatingqueue @DataDog/container-integrations
/pkg/util/cloudproviders/cloudfoundry/ @DataDog/platform-integrations
/pkg/util/clusteragent/ @DataDog/container-integrations
/pkg/util/containerd/ @DataDog/container-integrations
Expand All @@ -273,21 +280,27 @@
/pkg/proto/pbgo/ # do not notify anyone
/pkg/orchestrator/ @DataDog/container-app
/pkg/network/ @DataDog/Networks
/pkg/network/*usm* @DataDog/universal-service-monitoring
/pkg/network/*_windows*.go @DataDog/windows-kernel-integrations
/pkg/network/driver_*.go @DataDog/windows-kernel-integrations
/pkg/network/dns/*_windows*.go @DataDog/windows-kernel-integrations
/pkg/network/driver/ @DataDog/windows-kernel-integrations
/pkg/network/ebpf/c/prebuilt/usm* @DataDog/universal-service-monitoring
/pkg/network/ebpf/c/runtime/usm* @DataDog/universal-service-monitoring
/pkg/network/ebpf/c/prebuilt/http* @DataDog/universal-service-monitoring
/pkg/network/ebpf/c/runtime/http* @DataDog/universal-service-monitoring
/pkg/network/ebpf/c/protocols/ @DataDog/universal-service-monitoring
/pkg/network/encoding/http* @DataDog/universal-service-monitoring
/pkg/network/encoding/*usm* @DataDog/universal-service-monitoring
/pkg/network/etw/ @DataDog/windows-kernel-integrations
/pkg/network/go/ @DataDog/universal-service-monitoring
/pkg/network/protocols/ @DataDog/universal-service-monitoring
/pkg/network/protocols/http/driver_*.go @DataDog/windows-kernel-integrations
/pkg/network/protocols/http/etw_*.go @DataDog/windows-kernel-integrations
/pkg/network/protocols/http/*_windows*.go @DataDog/windows-kernel-integrations
/pkg/network/tracer/*classification*.go @DataDog/universal-service-monitoring
/pkg/network/tracer/testutil/gotls_client @DataDog/universal-service-monitoring
/pkg/network/tracer/testutil/postgres @DataDog/universal-service-monitoring
/pkg/network/tracer/tracer_usm_linux_test.go @DataDog/universal-service-monitoring
/pkg/network/tracer/*_windows*.go @DataDog/windows-kernel-integrations
/pkg/ebpf/ @DataDog/ebpf-platform
Expand Down Expand Up @@ -350,8 +363,10 @@
/test/kitchen/test/integration/win-reinstall-option/ @DataDog/windows-agent
/test/kitchen/test/integration/win-repair/ @DataDog/windows-agent
/test/kitchen/test/integration/win-user/ @DataDog/windows-agent
/test/new-e2e/ @DataDog/agent-e2e-testing
/test/system/ @DataDog/agent-shared-components
/test/system/dogstatsd/ @DataDog/agent-metrics-logs
/test/benchmarks/apm_scripts/ @DataDog/agent-apm

/tools/ @DataDog/agent-platform
/tools/ebpf/ @DataDog/ebpf-platform
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/do-not-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Fails a pull request if a label contains `do-not-merge`
# credit: https://github.com/jessesquires/gh-workflows/blob/main/.github/workflows/do-not-merge.yml

name: Do Not Merge

on:
pull_request:
types: [synchronize, opened, reopened, labeled, unlabeled]

jobs:
do-not-merge:
if: ${{ contains(github.event.*.labels.*.name, 'do-not-merge/hold') || contains(github.event.*.labels.*.name, 'do-not-merge/WIP') }}
name: Check Do Not Merge
runs-on: ubuntu-latest
steps:
- name: check for label
run: |
echo "Pull request is labeled as 'do-not-merge'"
echo "This workflow fails so that the pull request cannot be merged"
exit 1
13 changes: 9 additions & 4 deletions .github/workflows/serverless-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install Serverless Framework
run: sudo yarn global add serverless@^3.7.9 --prefix /usr/local

Expand All @@ -45,8 +45,13 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Run tests if AWS credentials are available
uses: nick-fields/retry@v2
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SERVERLESS_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SERVERLESS_AWS_SECRET_ACCESS_KEY }}
run: ARCHITECTURE=${{ matrix.architecture }} ./test/integration/serverless/run.sh
working-directory: go/src/github.com/DataDog/datadog-agent
AWS_SECRET_ACCESS_KEY: ${{ secrets.SERVERLESS_AWS_SECRET_ACCESS_KEY }}
with:
timeout_minutes: 30
max_attempts: 2
command: |
cd go/src/github.com/DataDog/datadog-agent
ARCHITECTURE=${{ matrix.architecture }} ./test/integration/serverless/run.sh
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Dockerfiles/cluster-agent/dist
Dockerfiles/cluster-agent/security-agent-policies
pkg/status/template.go

# gotestsum-generated files
module_test_output.json

# jetbrains IDE directory
/.idea/

Expand Down Expand Up @@ -109,6 +112,12 @@ system-probe-msg.h
**/.ninja_deps
*.ninja
pkg/ebpf/bytecode/build/**/*.d
pkg/ebpf/bytecode/runtime/conntrack.go
pkg/ebpf/bytecode/runtime/http.go
pkg/ebpf/bytecode/runtime/oom-kill.go
pkg/ebpf/bytecode/runtime/runtime-security.go
pkg/ebpf/bytecode/runtime/tcp-queue-length.go
pkg/ebpf/bytecode/runtime/tracer.go
pkg/security/tests/syscall_tester/**/*.d

# dsd artifacts
Expand Down Expand Up @@ -176,3 +185,6 @@ TAGS

# cscope
cscope.out

# Go workspace until we have proper support in the tooling
go.work*
17 changes: 15 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ include:
- /.gitlab/kitchen_common/cleanup.yml
- /.gitlab/kitchen_common/testing.yml
- /.gitlab/docker_common/publish_job_templates.yml
- /.gitlab/benchmarks/benchmarks.yml

default:
retry:
Expand All @@ -61,6 +62,7 @@ stages:
- binary_build
- package_deps_build
- integration_test
- benchmarks
- package_build
- internal_deploy
- kitchen_deploy
Expand Down Expand Up @@ -135,17 +137,18 @@ variables:
## comment out the line below to disable integration wheels cache
INTEGRATION_WHEELS_CACHE_BUCKET: dd-agent-omnibus
S3_DD_AGENT_OMNIBUS_LLVM_URI: s3://dd-agent-omnibus/llvm
S3_DD_AGENT_OMNIBUS_BTFS_URI: s3://dd-agent-omnibus/btfs
GENERAL_ARTIFACTS_CACHE_BUCKET_URL: https://dd-agent-omnibus.s3.amazonaws.com
S3_DSD6_URI: s3://dsd6-staging
RELEASE_VERSION_6: nightly
RELEASE_VERSION_7: nightly-a7
DATADOG_AGENT_BUILDIMAGES: v11651098-faf0544
DATADOG_AGENT_BUILDIMAGES: v12145148-530d89c
DATADOG_AGENT_BUILDERS: v9930706-ef9d493
DATADOG_AGENT_WINBUILDIMAGES: v11651098-faf0544
DATADOG_AGENT_ARMBUILDIMAGES: v11651098-faf0544
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v11651098-faf0544
DATADOG_AGENT_NIKOS_BUILDIMAGES: v11651098-faf0544
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v10582792-c2b9fb7
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v11463399-6ff70af
DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
NIKOS_INSTALL_DIR: /opt/datadog-agent/embedded/nikos
NIKOS_EMBEDDED_PATH: /opt/datadog-agent/embedded/nikos/embedded
Expand All @@ -166,7 +169,9 @@ variables:
ARTIFACTORY_TOKEN_SSM_NAME: ci.datadog-agent.artifactory_token
ARTIFACTORY_URL: datadog.jfrog.io
ARTIFACTORY_GEMS_PATH: artifactory/api/gems/agent-gems
ARTIFACTORY_PYPI_PATH: artifactory/api/pypi/agent-pypi/simple
USE_CACHING_PROXY_RUBY: "true"
USE_CACHING_PROXY_PYTHON: "true"
CLANG_LLVM_VER: 12.0.1

#
Expand Down Expand Up @@ -766,3 +771,11 @@ variables:
- <<: *if_kitchen
when: manual
allow_failure: true

.on_trace_agent_changes_or_manual:
- changes:
- pkg/trace/**/*
- .gitlab/benchmarks/*
when: on_success
- when: manual
allow_failure: true
1 change: 1 addition & 0 deletions .gitlab/JOBOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ deploy_containers* @DataDog/container-integrations
kitchen_*_system_probe* @DataDog/ebpf-platform
kitchen_*_security_agent* @DataDog/agent-security
kitchen_*_process_agent* @DataDog/processes
pull_test_dockers @DataDog/universal-service-monitoring
cleanup_kitchen_functional_test @DataDog/ebpf-platform @DataDog/agent-security
serverless_cold_start_performance-deb_x64 @DataDog/serverless

Expand Down
24 changes: 24 additions & 0 deletions .gitlab/benchmarks/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
benchmark:
stage: benchmarks
# This base image is created here: https://gitlab.ddbuild.io/DataDog/apm-reliability/relenv-microbenchmarking-platform
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/relenv-microbenchmarking-platform:trace-agent
timeout: 1h
rules:
!reference [.manual] # TODO: run this benchmark automatically when the trace-agent changes
interruptible: true
# tags: ["runner:apm-k8s-tweaked-metal"] # TODO: Commented out until we have the metal runners available in this repo
tags: ["runner:main"]
script:
- ./test/benchmarks/apm_scripts/capture-hardware-software-info.sh
- ./test/benchmarks/apm_scripts/run-benchmarks.sh
# - ./test/benchmarks/apm_scripts/upload-results-to-s3.sh #commented out until we have merged our permissions changes
- ./test/benchmarks/apm_scripts/analyze-results.sh
- ./test/benchmarks/apm_scripts/post-pr-comment.sh
artifacts:
name: "reports"
paths:
- reports/
expire_in: 3 months
variables:
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: datadog-agent
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"
1 change: 1 addition & 0 deletions .gitlab/binary_build/system_probe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/runtime-security-syscall-wrapper.o $S3_ARTIFACTS_URI/runtime-security-syscall-wrapper.o.$ARCH
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/runtime-security-offset-guesser.o $S3_ARTIFACTS_URI/runtime-security-offset-guesser.o.$ARCH
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/co-re/oom-kill.o $S3_ARTIFACTS_URI/oom-kill-co-re.o.$ARCH
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/co-re/tcp-queue-length.o $S3_ARTIFACTS_URI/tcp-queue-length-co-re.o.$ARCH
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/runtime/tracer.c $S3_ARTIFACTS_URI/tracer.c.$ARCH
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/runtime/http.c $S3_ARTIFACTS_URI/http.c.$ARCH
- $S3_CP_CMD $CI_PROJECT_DIR/pkg/ebpf/bytecode/build/runtime/runtime-security.c $S3_ARTIFACTS_URI/runtime-security.c.$ARCH
Expand Down
11 changes: 10 additions & 1 deletion .gitlab/binary_build/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ build_windows_container_entrypoint:
- $ErrorActionPreference = "Stop"
- '$_instance_id = (iwr -UseBasicParsing http://169.254.169.254/latest/meta-data/instance-id).content ; Write-Host "Running on instance $($_instance_id)"'
- if (Test-Path build-out) { remove-item -recurse -force build-out }
- docker run --rm -m 4096M -v "$(Get-Location):c:\mnt" -e CI_JOB_ID=${CI_JOB_ID} -e WINDOWS_BUILDER=true -e AWS_NETWORKING=true -e TARGET_ARCH="$ARCH" 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/windows_1809_${ARCH}:${Env:DATADOG_AGENT_WINBUILDIMAGES} c:\mnt\Dockerfiles\agent\windows\entrypoint\build.bat
- >
docker run --rm
-m 4096M
-v "$(Get-Location):c:\mnt"
-e CI_JOB_ID=${CI_JOB_ID}
-e WINDOWS_BUILDER=true
-e AWS_NETWORKING=true
-e TARGET_ARCH="$ARCH"
486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/windows_1809_${ARCH}:${Env:DATADOG_AGENT_WINBUILDIMAGES}
c:\mnt\Dockerfiles\agent\windows\entrypoint\build.bat
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
- get-childitem build-out\${CI_JOB_ID}
- copy build-out\${CI_JOB_ID}\*.exe ./entrypoint.exe
Expand Down
7 changes: 6 additions & 1 deletion .gitlab/choco_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@ publish_choco_7_x64:
- mkdir nupkg
- copy omnibus\pkg\*.nupkg nupkg\
- Get-ChildItem nupkg
- docker run --rm -v "$(Get-Location):c:\mnt" -e CHOCOLATEY_API_KEY=${chocolateyApiKey} 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/windows_1809_${ARCH}:$Env:DATADOG_AGENT_WINBUILDIMAGES c:\mnt\tasks\winbuildscripts\chocopush.bat
- >
docker run --rm
-v "$(Get-Location):c:\mnt"
-e CHOCOLATEY_API_KEY=${chocolateyApiKey}
486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/windows_1809_${ARCH}:$Env:DATADOG_AGENT_WINBUILDIMAGES
c:\mnt\tasks\winbuildscripts\chocopush.bat
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
45 changes: 6 additions & 39 deletions .gitlab/container_build/docker_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,50 +127,17 @@ docker_build_agent7:
TEST_IMG: "true"
BUILD_ARG: --target release --build-arg PYTHON_VERSION=3 --build-arg DD_AGENT_ARTIFACT=datadog-agent_7*_amd64.deb

# NOTE this is a temporary workaround and the method taken in #14438 is
# preferred in the long-term.
docker_build_agent7_single_machine_performance:
single_machine_performance-amd64-a7:
extends: .docker_publish_job_definition
stage: container_build
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/docker_x64:$DATADOG_AGENT_BUILDIMAGES
tags: ["runner:docker"]
rules:
!reference [.on_a7]
needs:
- job: agent_deb-x64-a7
artifacts: false
- docker_build_agent7
variables:
BUILD_CONTEXT: Dockerfiles/agent
TAG_SUFFIX: -7
ARCH: amd64
TEST_IMG: "true"
BUILD_ARG: --target release --build-arg PYTHON_VERSION=3 --build-arg DD_AGENT_ARTIFACT=datadog-agent_7*_amd64.deb
script:
- aws s3 sync --only-show-errors $S3_ARTIFACTS_URI Dockerfiles/agent
# Setup AWS credentials for single-machine-performance AWS account
- SMP_ACCOUNT_ID=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.single-machine-performance-account-id --with-decryption --query "Parameter.Value" --out text)
- SMP_ECR_URL=${SMP_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com
- SMP_AGENT_TEAM_ID=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.single-machine-performance-agent-team-id --with-decryption --query "Parameter.Value" --out text)
- aws configure set aws_access_key_id $(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.single-machine-performance-bot-access-key-id --with-decryption --query "Parameter.Value" --out text) --profile single-machine-performance
- aws configure set aws_secret_access_key $(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.single-machine-performance-bot-access-key --with-decryption --query "Parameter.Value" --out text) --profile single-machine-performance
- aws configure set region us-west-2 --profile single-machine-performance
# Login to Single Machine Performance ECR
- aws ecr get-login-password --profile single-machine-performance | docker login --username "AWS" --password-stdin "$SMP_ECR_URL"
# Calculate SMP tag, note that it must be deterministic and able to be
# computed across pipeline executions.
- TARGET_TAG=${SMP_ECR_URL}/${SMP_AGENT_TEAM_ID}-agent:${CI_COMMIT_SHA}${TAG_SUFFIX}-${ARCH}
# DockerHub login for build to limit rate limit when pulling base images
- DOCKER_REGISTRY_LOGIN=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.$DOCKER_REGISTRY_LOGIN_SSM_KEY --with-decryption --query "Parameter.Value" --out text)
- aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.$DOCKER_REGISTRY_PWD_SSM_KEY --with-decryption --query "Parameter.Value" --out text | docker login --username "$DOCKER_REGISTRY_LOGIN" --password-stdin "$DOCKER_REGISTRY_URL"
# Pull base images
- inv -e docker.pull-base-images $BUILD_CONTEXT/$ARCH/Dockerfile
# Build image
- docker build --build-arg CIBUILD=true --build-arg GENERAL_ARTIFACTS_CACHE_BUCKET_URL=${GENERAL_ARTIFACTS_CACHE_BUCKET_URL} $BUILD_ARG --file $BUILD_CONTEXT/$ARCH/Dockerfile --tag ${TARGET_TAG}-unsquashed $BUILD_CONTEXT
# Squash image, test, and push to ECR
- docker-squash ${TARGET_TAG}-unsquashed -t ${TARGET_TAG}
- test "$TEST_IMG" && docker run -v `pwd`/$BUILD_CONTEXT:/tmp/build ${TARGET_TAG} python /tmp/build/test_image_contents.py
- docker push $TARGET_TAG
# Workaround for temporary network failures
retry: 2
IMG_REGISTRIES: internal-aws-smp
IMG_SOURCES: ${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-amd64
IMG_DESTINATIONS: 08450328-agent:${CI_COMMIT_SHA}-7-amd64

docker_build_agent7_arm64:
extends: .docker_build_job_definition_arm64
Expand Down
Loading