Compare commits

...

214 Commits
master ... v8.1

Author SHA1 Message Date
Jason Hills
f4ead726fd SERVER-107852 SBOM rebuild to v8.1 (#39748)
GitOrigin-RevId: 408d4a18c1a37ca9f4e05c7521d641eca4fcbec7
2025-09-08 14:41:31 +00:00
ben-gawel
5c77c39715 SERVER-106811 Fix version check in speculative_read_transaction.js and transactions_wait_for_write_concern.js (#40224)
GitOrigin-RevId: e765fff7c6a14f38b0d798a641b97626c1289e16
2025-08-20 15:19:04 +00:00
Evan Fetsko
867d0c339d SERVER-108449: remove allowed_requesters from task definition for publish-sast-report (#39417)
GitOrigin-RevId: e75b9b9b7f5d689cba1ad4a8d743d49bcffccc68
2025-08-04 13:50:43 +00:00
adam r
e7c6409dc3 SERVER-107880 Update OpenSSL 3 FIPS Module Initialization (#39300)
GitOrigin-RevId: 4d1014efaaf0c3052a476cfc8e9f3db14fea183a
2025-07-31 21:23:50 +00:00
Myles
13450905df SERVER-103841 and SERVER-106682: transaction coordinator lifetime (#35591) (#36765)
GitOrigin-RevId: 37bf7cfb7693a02a540f179cc2513051c0afce7f
2025-07-31 21:23:33 +00:00
Ruchitha Rajaghatta
c50e4e25ef SERVER-107962: Enable oplogApplicationEnforcesSteadyStateConstraints=true in resmoke based test fixtures (#39050)
GitOrigin-RevId: 7898850b0a5bbd5e1eae495700074435193675d9
2025-07-29 20:46:43 +00:00
wt-vendoring-bot[bot]
e94a3a0c5e Import wiredtiger: 82d0b3a3485415e587a0ec3be4d26adcbaf10d4b from branch mongodb-8.1 (#39177)
GitOrigin-RevId: 63bb2a3bbc6c1eaa2d262c90b90df46db1a51375
2025-07-27 23:11:51 +00:00
clarissecheah
be9ee95e13 SERVER-90867 Limit the number of sessions in MongoDB's cache of WiredTiger sessions (#37680)
GitOrigin-RevId: 7e12bd6f6ea70980c964f5f0762092654704a18d
2025-07-25 23:17:07 +00:00
Kyra Ramesh Krishna
447e1608e8 SERVER-104343: Add unsupportedSyncSource check to avoid hitting read preference invariant (#38763)
GitOrigin-RevId: 09f9f9d46a51f638ba5d56a4c318fba49b2e5fbe
2025-07-25 23:16:51 +00:00
Alyssa Clark
36e7e2ed31 SERVER-107352 Construct DocumentSourceVectorSearch's filter with owned BSON (#38805)
GitOrigin-RevId: b675327c6c753edf5431e01e3c4f3157e9fcbc2e
2025-07-23 21:18:43 +00:00
adriangzz
195de76ecb SERVER-101491 Quiesce in JWKFetcherImpl when remote returns 5xx error (#33348) (#34846)
GitOrigin-RevId: 19872b1fcb7dcb2063bda99eacb0eece37e7e4ff
2025-07-23 18:19:01 +00:00
Evan Bergeron
a7f2739b47 SERVER-101112 Truncate SBE debug info to fit into internalQueryExplai… (#37315)
GitOrigin-RevId: 3012c48773079de4c9df0d3782050e8a6bbcfa00
2025-07-23 18:18:45 +00:00
Zack Winter
f62cf87e50 SERVER-102927 [v8.1] Skip pdb copy step in unit test gather script if binary is not an exe (#34144) (#34170)
GitOrigin-RevId: e50191f4ac5ff64806eaa21147bd92ec9f81fc90
2025-07-23 05:31:06 +00:00
Pol Piñol Castuera
5862028715 SERVER-102449 Remove unnecessary clearDbInfo in DDLs and rely on the implicit clear of the release of the critical section (#38398)
GitOrigin-RevId: 1c7673f28d7c7537195538655a30ff6cd0883463
2025-07-23 05:26:50 +00:00
Projjal Chanda
49141df080 SERVER-101178 Apply security fixes to our vendored ICU library (#35090) (#37613)
GitOrigin-RevId: f111d21b7e80d0f117cca9ba83fe41359f23179a
2025-07-23 05:24:37 +00:00
Joseph Prince
4b6ee78d52 SERVER-104839 Add a new log line that contains both metadata and authentication info (#37761)
GitOrigin-RevId: c2eae056f2e6802c9064c1b5610764ac233d499d
2025-07-23 05:24:20 +00:00
Sean Lyons
99b45a8401 SERVER-101700 fix spawnhost script workdir error (#38113)
GitOrigin-RevId: cf527e1fda5b6e9bd1defa2c16c94c5360ed8688
2025-07-23 05:12:54 +00:00
Brad Cater
ff76ec4430 SERVER-103742 opWriteConcernCounters can illegally embed a NUL bytes into ServerStatus to v8.1 (#37374)
GitOrigin-RevId: 82bad4f863c3316b977752e143a6e51aef035ca6
2025-07-23 05:12:36 +00:00
Ernesto Rodriguez Reina
90061fa207 SERVER-102983 [v8.1] Reset sorter stats to zero on close (#37318)
GitOrigin-RevId: 4b482f31937c7d9dca3ff2e9fc586b2a3352c2dc
2025-07-23 05:12:18 +00:00
Damian Wasilewicz
219c8d34f0 SERVER-82180 SERVER-106534 Preserve natural ordering across primaries/secondaries for capped collections, make dbhash check capped collections on natural order (#37842)
GitOrigin-RevId: ccdc7831cc34fd162d6db776d98a0c93b7c7f5fa
2025-07-23 05:12:00 +00:00
Evelyn Wu
dacd57f4fa SERVER-105478 Separate eligible and ineligible oplog entries for the applier with secondaryDelaySecs (#36698) (#37452)
GitOrigin-RevId: 1a12fabd940547e7caf61dcbe3b2fae23cec5724
2025-07-23 05:04:13 +00:00
Vishnu K
70f397b41d SERVER-103618 add check to coordinateCommitTransaction (#38217)
GitOrigin-RevId: 4538266305b0561024a64b5918f2ad2e13779be3
2025-07-23 04:27:15 +00:00
Daniel Gómez Ferro
20bd682c0c SERVER-106194 Set ReadConcern in opCtx for DBDirectClient (#37534) (#37614)
GitOrigin-RevId: 6dd01c2b776fc720a5cf95c48afc1203e542049f
2025-07-23 04:26:57 +00:00
Jan
48370a0ad6 SERVER-100108 Fix distinct command with custom collator (#37800)
GitOrigin-RevId: 85b8dbeed7ce8c16ebf66835f180cf6e7e636f80
2025-07-23 04:26:39 +00:00
ben-gawel
03779c15b0 SERVER-104137 Fix regex initialization in shard_id.cpp (#38092)
GitOrigin-RevId: fe16d1970c107f77bb88a9cf2d5177c95763f602
2025-07-23 04:26:20 +00:00
Wei Hu
02c3b7737b SERVER-106875 Call all collections' onDeregisterFromCatalog callback when closing CollectionCatalog (#38066)
GitOrigin-RevId: 99a3883a117308838b8ec8faccc1356955b360e0
2025-07-23 04:26:03 +00:00
adam r
2a52ecae7f SERVER-105696 update searchCoordinator Role to have privileges only on __mdb_internal_search (#38423)
GitOrigin-RevId: f9ffc97118c1b8bd2b2c31a2475f583d5c020c30
2025-07-23 02:36:17 +00:00
Sean Lyons
c4fb07c758 SERVER-105263 Avoid blocking completion of passing tests on the symbolization of a stack trace from a different Resmoke job (#38114)
GitOrigin-RevId: 2826cb0a72c311c8643f187571155a913fbb850d
2025-07-23 02:35:59 +00:00
adriangzz
919587e2a9 SERVER-104810 Support PS256 JWS Signing Algorithms for OIDC (#38295)
GitOrigin-RevId: 81abfea39b650a71e41348fd4ec6ca7778e4318a
2025-07-23 02:35:40 +00:00
Ivan Fefer
78fd5f4976 SERVER-107304 Make Pipeline::dispose() idempotent (#38664)
GitOrigin-RevId: da077fa11832830ac23d3cfe741eaa679dbe666f
2025-07-23 02:35:22 +00:00
Ruchitha Rajaghatta
0363d65fa6 Revert "SERVER-69418: Improve validation to prevent users from adding more than 7 voting members" (#38024)
GitOrigin-RevId: 8111c323dd16381596d93b9c3c144c12e218e239
2025-07-23 02:35:04 +00:00
Xuerui Fa
47e82adcbc SERVER-107203: Modify interrupted_batch_insert.js to expect internalI… (#38829)
GitOrigin-RevId: 16ddef73a358339858403ea217228be065445c77
2025-07-22 15:07:08 +00:00
adriangzz
ca4a3c3651 SERVER-106351 Split mixed_mode_sharded_nossl to prevent timeouts (#38822)
GitOrigin-RevId: c2469fe8ad64fab943b40f7394d0680851bddcf5
2025-07-21 20:15:24 +00:00
Ryan Berryhill
4c46546737 SERVER-107090 dropConnections after de-partitioning network in jstest (#38769)
GitOrigin-RevId: bf81d026ce43ee57e6b8d1b6ea2ebbda5a9f2c43
2025-07-21 14:09:29 +00:00
wt-vendoring-bot[bot]
4daf580708 Import wiredtiger: 0a90b5cad12aa0f4253ef8582d79ea461df4331b from branch mongodb-8.1 (#38789)
GitOrigin-RevId: dc1b718b563a1e25ac07d6795dd15d0326c54bad
2025-07-21 00:05:34 +00:00
Evan Fetsko
2fe17acb1e SERVER-107272: generate SAST report for MongoDB 8.1 releases (#38361)
GitOrigin-RevId: 5ad152938fd534c0df05f93c1b9ce9667b4776dd
2025-07-18 14:03:30 +00:00
Varun Ravichandran
01b6d4eac6 SERVER-106432 Disable FIPs jstests on SLES 15 SP5 (#37681) (#38571)
GitOrigin-RevId: 635ca01b1d2a3f9e51f40aa3e9bb65a151cb14bf
2025-07-18 14:03:13 +00:00
Joan Bruguera Micó (at MongoDB)
af86d2a1c6 SERVER-106564 Catalog operations consistency validator doesn't support NumberLong values for sparse indexSpec field (#38041)
GitOrigin-RevId: d1131a0cd57edd9a303807abe3466532d1757c5a
2025-07-14 10:10:24 +00:00
Erwin Pe
e9b850feb6 SERVER-107093 Test computeHmacWithCtx() with HMAC test vectors (#38232)
GitOrigin-RevId: a6d93743f67086309edda78060068ba058c07df9
2025-07-09 20:35:50 +00:00
Andrew Bui
ae7cb41293 SERVER-107282 Update CODEOWNERS to expand test-only definition (#38279)
GitOrigin-RevId: b4edbcc01aff745fef046ea6fe2b48e9f0ea5958
2025-07-09 19:43:14 +00:00
Pol Piñol Castuera
353feeecfd SERVER-106487 point_in_time_lookups_drop_pending.js is flaky when checking that a PIT read creates a new instance for the collection after a drop (#38242)
GitOrigin-RevId: dcbeacd2587f3c3000119beceb195b15306dd5de
2025-07-09 10:26:12 +00:00
Zack Winter
4a1370a9a7 SERVER-107005 Swap remote exec on when compiling crypt libs for sys-perf (#38029)
GitOrigin-RevId: 6d63d399871dc9612c99a106f56b8f5363e025a9
2025-07-02 17:10:56 +00:00
Allison Easton
5cc9eac885 SERVER-87044 Re-enable batched_multi_deletes.js in suites with moveCollection (#37920)
GitOrigin-RevId: 287a05051873028e334099876febd7d6e3b5fddd
2025-07-02 09:28:24 +00:00
Gabriel Marks
9c3a493148 SERVER-101628 Tag ssl_cert_selector_apple.js with cleanUpCoreDumpsFro… (#37933)
GitOrigin-RevId: 71cf611c6f06adacbba6962f2639ac2eb2ca39cf
2025-06-30 17:54:00 +00:00
Joshua Siegel
aae5d55d1b SERVER-105611 Upgrade MozJS/Spidermonkey to ESR 128.11 (#37482)
GitOrigin-RevId: bcba0709b2665cca6b1b44a1803a6f8249e6ee39
2025-06-25 21:36:54 +00:00
Randolph Tan
4ace85f743 SERVER-106614 Match config.shards entries without replSetConfigVersion (#37708)
GitOrigin-RevId: 0fc2ac59fcfabcd7edd27875bbbe9ddd38d8b096
2025-06-25 19:28:43 +00:00
henrikedin
bdd1bd0788 SERVER-105913 Enable gperf tcmalloc for Windows (#36926) (#36949)
GitOrigin-RevId: 39dca8df6ff87741c1c904d8cba3d596c44a54a1
2025-06-25 14:05:38 +00:00
Carlos Alonso
d259bd327a SERVER-105375 Rewrite obj elemMatch trivially false expressions as alwaysFalse (#37682)
GitOrigin-RevId: 97eef4c42f018e4053a7d3cece8d00aa0fd98ce3
2025-06-24 21:21:40 +00:00
Erin McNulty
439d0501cb SERVER-106122 Remove loadTest and reduce load from fuzzTest on proxy protocol testing (#37568)
GitOrigin-RevId: 9273d84c9256c7a15c31f20217a23ee1132a925f
2025-06-20 20:53:54 +00:00
Evan Bergeron
8ceb004990 SERVER-102302 Disable SBE on collections with an index with a hashed... (#34826)
GitOrigin-RevId: 9c8df94f9b428d7c1e0f72b7cf18414a2bb8072d
2025-06-20 15:34:44 +00:00
Didier Nadeau
8cebb3ba36 SERVER-97615 Add logging for a failed FTDC collector (#36794) (#37314)
GitOrigin-RevId: daaed44ef36adebffab5baaa875f0c7213f58da9
2025-06-20 15:03:36 +00:00
Alexander Ignatyev
0002ecc3ea SERVER-99616 $group can hit MONGO_verify (#37164)
GitOrigin-RevId: 6c1acf19e5a86b35566af1d86c2e979d4487d73a
2025-06-19 15:15:49 +00:00
wt-vendoring-bot[bot]
ba53c687a3 Import wiredtiger: 959c938c592fc7d7e142be70961c97c4580ad0ac from branch mongodb-8.1 (#37521)
GitOrigin-RevId: 18948b97a274d2d544fa20ceaa091c4d3eea0668
2025-06-19 06:31:31 +00:00
Pierlauro Sciarelli
d3319abb68 SERVER-100942 make sure WCE is always returned by setDefaultRWConcern when present (#36946)
GitOrigin-RevId: 317f804a246521ada989113929cc275c16bcb926
2025-06-19 00:29:26 +00:00
Erwin Pe
85b808175a SERVER-105528 Fix FLE2 findAndModify write error and write concern error reporting in mongod (#37139)
GitOrigin-RevId: 431d569b4f5d609332eed72147ae7c873e442fdd
2025-06-19 00:29:07 +00:00
Jan
d91d1b1c06 SERVER-103519 Ensure update and bulkWrite commands return WCE (#35310) (#37146)
GitOrigin-RevId: 3b85416f957b58d5167ddcc563a7bc344f542f0c
2025-06-19 00:28:49 +00:00
Pierlauro Sciarelli
c709c9d3cb SERVER-100938 Mongos must return WCE on createIndexes
GitOrigin-RevId: f0af71fb16f861443f72d3b9488e550b257c7667
2025-06-19 00:28:31 +00:00
Pierlauro Sciarelli
ccd2be301d SERVER-104220 Router must take into account drop collection write concern error (#36870)
GitOrigin-RevId: 2250c04c2fdd2778d0575bf27dc75e6e561fb32a
2025-06-19 00:28:13 +00:00
Janna Golden
f4a5d65e6c SERVER-105947 Change assertion in write_concern_all_commands.js for create timeseries collection (#37116)
GitOrigin-RevId: 29e235b3424135ebae0684f01c2b3c7e6b69d5b5
2025-06-19 00:27:55 +00:00
Pierlauro Sciarelli
1680f4442a SERVER-100937 test WCE on dropIndex no-op (#36929)
GitOrigin-RevId: 39cc2d741520568c8be4cbc9629b3abfa6d69858
2025-06-19 00:27:37 +00:00
Brett Nawrocki
8de2d595e7 SERVER-103664 Await replication in write concern tests (#34903) (#36837)
GitOrigin-RevId: 8b7bf8f7b407c6255b5b5b3a3b7119caebdf0864
2025-06-19 00:27:19 +00:00
Pierlauro Sciarelli
b80148cb01 SERVER-100939 update TODO explaining why setFCV no-op case can't be currently tested
GitOrigin-RevId: 81fb7f8184642f723e6d2b43ff0bdc7e2e059dfe
2025-06-19 00:27:01 +00:00
Janna Golden
b8dad00868 Revert "SERVER-102024 Always set lastOp to systemLastOp on no-op writes"
GitOrigin-RevId: 97c49d7cba1d1f77d2eb7fb9d26d7ef18341b8e9
2025-06-19 00:26:43 +00:00
Gabriel Marks
24f4b95844 SERVER-101387 Test all commands that accept write concern against QE collections (#35942)
GitOrigin-RevId: d93a1119b5f7d62623dfff389aad3ff825973d11
2025-06-19 00:26:24 +00:00
seanzimm
8f50fae138 SERVER-100943 abortTransaction must wait for writeConcern (#35962)
GitOrigin-RevId: 93581b07dab08d91e74f73b0e4daf7b0496f5fe7
2025-06-19 00:26:06 +00:00
Erwin Pe
d76d869e0b SERVER-99915 FLE2 findAndModify should also return WCE from transaction API result (#35976)
GitOrigin-RevId: cdfc020789ba66f95c360fdb60e0dc9cb834e331
2025-06-19 00:25:49 +00:00
Gabriel Marks
7397af2a92 SERVER-102571 Check against WriteConcernError category in QE transactions (#34060)
GitOrigin-RevId: e4f90fe1f5f85d8c05fedff23b2ffb40737e8835
2025-06-19 00:25:30 +00:00
Janna Golden
119a5dedfd SERVER-102765 Ensure create and drop will wait for write concern when retried (#35576) (#35768)
GitOrigin-RevId: 0885d44598a46d4e066f8c86fbb7d36ce54ac6b9
2025-06-19 00:25:12 +00:00
Abdul Qadeer
b4b3d84781 SERVER-101386 Add write concern tests for commands applicable to time… (#34578)
GitOrigin-RevId: 97696cb21a8d52c8fc9c3d447ce7e3d05ae25f00
2025-06-19 00:24:53 +00:00
Janna Golden
2ffd011aba SERVER-102024 Always set lastOp to systemLastOp on no-op writes (#33315) (#35395)
GitOrigin-RevId: 49bd275ba669dbf53cdda9911d7fec5711e24837
2025-06-19 00:24:35 +00:00
Evan Bergeron
8138951d4d SERVER-101180 Fix standalone BatchedDelete large _ids edge case (#37208)
GitOrigin-RevId: b97898870a9f4ef84a406778084eda1bf999b80f
2025-06-18 23:00:17 +00:00
Shreyas Kalyan
76ba69db6f SERVER-104133 Investigate potential performance improvements from SERVER-101800 (#37051) (#37245)
GitOrigin-RevId: 4baf4e877fb8df8b8fa036b4366c67f1971a5f1a
2025-06-18 19:41:50 +00:00
Billy Donahue
75b61de413 SERVER-104651 make stacktrace-on-throw an opt-in feature (#36722)
GitOrigin-RevId: c5ce3b72ffe63ed7c0cdc7d4b47d9f0e6a5044fb
2025-06-18 19:31:03 +00:00
Ryan Berryhill
cea8914e58 SERVER-102477 Make taskExecutorPoolSize configurable again on linux (#37058)
GitOrigin-RevId: 33bb0197998895354e7dab4b664bf11f0411032a
2025-06-18 18:36:19 +00:00
Finley Lau
9b61671c00 SERVER-106373 Add replicateSearchIndexCommand to js tests (#37381)
GitOrigin-RevId: 4289b79d8bd9bb9876cb0c7066f94091a2e49ad1
2025-06-18 15:35:01 +00:00
fotiniAlvanaki
ddbf74d7be SERVER-100990 Do not push lookup to SBE if there is an index with incompatible collation (#37108)
GitOrigin-RevId: 337af20b71135f19d3b29c73e2059728c53716c0
2025-06-18 00:01:37 +00:00
Shreyas Kalyan
24f6284ae0 SERVER-101800 Investigate OpenSSL 3 regression in HMAC functions (#35018) (#37243)
GitOrigin-RevId: 84cad3baed1d5593e3c1481bde94dab77a448100
2025-06-17 23:33:53 +00:00
Wei Hu
5440436ac9 SERVER-103934 FCBIS should shutdown storage engine without leaking memory (#36986)
GitOrigin-RevId: e8bd3e7319fe9b9f4cdd789e8143473779e8f702
2025-06-17 23:33:35 +00:00
Evelyn Wu
0f352e7c0a SERVER-97201 Add a metric in FTDC for replication coordinator mutex w… (#37251)
GitOrigin-RevId: 18c3d266c418dc568c5cf0585091ebded2f4db71
2025-06-17 23:33:16 +00:00
erinzhu001
7922e53f23 SERVER-99787 Change default searchTLSMode to globalTLS (#37126)
GitOrigin-RevId: 2b7b9fac3c2e7760fc5ca94c478abe29914d4714
2025-06-17 23:32:58 +00:00
Wei Hu
f4c05d2aea SERVER-102428 All index builds started by logical initial sync should be considered when computing max memory usage for each index build (#37018)
GitOrigin-RevId: f0a66ea6a668c1291bb487dd5691d6fd42166d75
2025-06-17 23:32:40 +00:00
Yuhong Zhang
d23e0fea0a SERVER-102670 Clear errors before retrying for ordered time-series insert (#34149)
GitOrigin-RevId: 38bfa2c0f22396766c3bfd49f4a7b0e2ec0da5e5
2025-06-17 22:43:23 +00:00
Militsa Sotirova
4e5e4ff34b SERVER-103249 Skip fast count validation on diagnostic logging tests (#34457)
GitOrigin-RevId: 17bb6c1480e65ead979a8119bf70e1d6edb0c478
2025-06-17 19:27:00 +00:00
Militsa Sotirova
359e87a411 SERVER-101121 Print ScopedDebugInfos surrounded by quotes (#33500)
GitOrigin-RevId: db5f79753b80c3319c0d45b68a232aa3d7c5d449
2025-06-17 19:26:42 +00:00
Militsa Sotirova
9cdb469f5b SERVER-101806 Make command_diagnostics_sharded.js only run commands against mongos (#33204)
GitOrigin-RevId: b65836c042b635a5cda0b344d5850ae820d65af6
2025-06-17 19:26:25 +00:00
David Goffredo
eb134b9f8a SERVER-101810: Use runtime platform parameters for listenBacklog (#37130)
GitOrigin-RevId: 9dc2dc70aa7dbf7f98fb168756b6211262b8f198
2025-06-17 19:00:34 +00:00
Brett Nawrocki
7463e46ba5 SERVER-100421 Fix resharding completion log output (#36727)
GitOrigin-RevId: 30fe66bd83d47f3325174d88c8d4df6f5eb09771
2025-06-17 18:29:32 +00:00
Marcos Grillo
23190a1a7c SERVER-85646 Add fsm test to verify correct metadata on downgrade while movePrimary and moveCollection are executed (#36579) (#36760)
GitOrigin-RevId: eedacd6e5e079698d000f610f5975cbdfc81c539
2025-06-17 14:11:50 +00:00
Chi-I Huang
1792aa6f73 SERVER-103275 Upgrade MozJS to ESR 128.10 (#36428)
GitOrigin-RevId: da7e2a856f2b11edaa8ba1579c502ef580af12e7
2025-06-16 23:05:31 +00:00
Erin McNulty
55ccd40c2b SERVER-106149 RateLimiter should return tokens to bucket upon rejection (#37246)
GitOrigin-RevId: c001c8477eb194711783035bc16a52fe9c1f260a
2025-06-16 19:07:44 +00:00
Erin McNulty
0e71209f11 SERVER-106166 Don't append Inf to FTDC for totalAvailableTokens (#37181)
GitOrigin-RevId: 28741b5eb861c87ef152aaef443a05ea15a16303
2025-06-16 19:07:26 +00:00
Erin McNulty
32e24550d5 SERVER-106045 Redefine burstSize => burstCapacitySecs parameter (#37078)
GitOrigin-RevId: 4ebd9a9b6dad3a200bc7a64dea568be09b0fda55
2025-06-16 19:07:08 +00:00
Erin McNulty
cf31d2ef08 SERVER-52424 Enable feature flag for rate-limiting ingress connection establishments (#36801)
GitOrigin-RevId: 5219ff2714e55d90c4b718349ff65a7db4790ce1
2025-06-16 19:06:50 +00:00
Patrick Freed
eb296520fb SERVER-105743 Introduce new error code used when a RateLimiter's rate and maxQueueDepth are exceeded (#36958)
GitOrigin-RevId: ef1cd79caadc7201a0323242cb1659b381680ba7
2025-06-16 19:06:32 +00:00
Erin McNulty
f3948b543e SERVER-105670 Calculate deadline before incrementing queue stats in RateLimiter (#36796)
GitOrigin-RevId: 8f0c59ee7feaa56a1a81be11bd1b215073777cba
2025-06-16 19:06:14 +00:00
Erin McNulty
b450ee8dc9 SERVER-105753 Ensure connection establishment rate limiter UX consistency with operation rate limiter (#36793)
GitOrigin-RevId: a2fdc77a1205e37a42d42d0b4612488011473ec4
2025-06-16 19:05:56 +00:00
David Goffredo
f36f327fb5 SERVER-104413: admission rate limiter metrics (#36574)
GitOrigin-RevId: cef77f48b8579a85f1c705e90e4bdd32df5fbae5
2025-06-16 19:05:38 +00:00
Erin McNulty
f085cc959d SERVER-105693 Make connection_establishment_rate_limiting_exemptions.js resilient to different connection closed errors (#36686)
GitOrigin-RevId: 1bd3f66c03b606b2f9a29980da5bfeb6a5295c3d
2025-06-16 19:05:19 +00:00
Erin McNulty
a6a509116a SERVER-105526 Add additional debug logs and a deadline to ConcurrentTokenAcquisitionWithQueueing test (#36566)
GitOrigin-RevId: c0820c66471d3c86f482edc95043fa14305c9811
2025-06-16 19:05:00 +00:00
David Goffredo
ccc145b352 SERVER-104814: establishment timing metrics (#36273)
GitOrigin-RevId: 02a9bdd8aa4075514ae68f70365df11c43c66923
2025-06-16 19:04:42 +00:00
Erin McNulty
3cd6d13aea SERVER-105502 Use assert.soon for metrics assertions in connection_establishment* tests (#36533)
GitOrigin-RevId: 2118f83541d4deba9c95d5d236288c08b7c1dee1
2025-06-16 19:04:23 +00:00
Erin McNulty
c6460b939a SERVER-104811 Update "connections" server status section for maxEstablishing (#36359)
GitOrigin-RevId: 015379cd00641ccc3b2e29b957265f98e2a35a72
2025-06-16 19:04:05 +00:00
Erin McNulty
68cb944001 SERVER-104415 Integrate connection establishment rate limiter into SessionWorkflow (#36288)
GitOrigin-RevId: 8374807bf2207a3547dc64eebd3a034b57bd1d56
2025-06-16 19:03:46 +00:00
Janna Golden
201e191922 SERVER-104407 Introduce server parameters to tune connection establishment rate limiter (#35898)
GitOrigin-RevId: 398a20426b9e6529a14fc1bedf2b2e3b2e8f3d2d
2025-06-16 19:03:25 +00:00
Erin McNulty
875ff0cc1d SERVER-104408 Introduce connection establishment rate limiter component (#35955)
GitOrigin-RevId: c58958b5461c7ebfa1d3eb51c55648467455266a
2025-06-16 19:03:05 +00:00
Joseph Prince
02be96dc5e SERVER-104412 Create interface to exempt prioritized connections from token acquisition (#35855)
GitOrigin-RevId: 13dafc663fe918f532505198ba5826262e3e28d6
2025-06-16 19:02:46 +00:00
Joseph Prince
e5a8b7c840 SERVER-52121 Create feature flag for limit concurrent ingress connection handshakes (#35709)
GitOrigin-RevId: 4daa4e17a433931dd0b30add008ab44840d5f14f
2025-06-16 19:02:26 +00:00
Erin McNulty
684fdd30a6 SERVER-104168 Vendor in folly token bucket util (#35481)
GitOrigin-RevId: f36c0211d21c4281ec7d06ec9d8b3140d726c011
2025-06-16 19:02:09 +00:00
Antonio Fuschetto
374e4da02e SERVER-106108 Disable embedded_router_sharded_collections_jscore_passthrough test suite (#37232)
GitOrigin-RevId: 2747dbdb3e8ef0c5e04ddff6a1c3e6bb6ac02431
2025-06-16 15:46:59 +00:00
Robert Sander
c649ba050b SERVER-105799 Ensure that failpoints used in check_metadata_consistency_timeout_tests.js are reached on slow machines (#36856 (#37339)
GitOrigin-RevId: 9b4df209ce040e8c9d1728431a168f877b349b83
2025-06-16 11:01:03 +00:00
wt-vendoring-bot[bot]
60df8863da Import wiredtiger: 4a4ab749b66ba0d198e2f59f959efbe24227fe2d from branch mongodb-8.1 (#37334)
GitOrigin-RevId: 765cca939233d6a39ea0f3aa22b9ab097f0415e7
2025-06-16 03:50:03 +00:00
Pierlauro Sciarelli
c3e51c1cb9 SERVER-104222 checkMetadataConsistency must return number of documents contained in unexpected collections (#35785)
GitOrigin-RevId: 4865333476b6f14d99613ae4dda20bb3d3cafd4d
2025-06-13 19:42:26 +00:00
Gil Alon
b9c246d44b SERVER-105426 [v8.1] Feature flag checks should default to using lastLTS FCV when the FCV is uninitialized (#36453)
GitOrigin-RevId: 48ce68704fcbe75d34b88c24a9d72f72af8e1215
2025-06-13 16:52:38 +00:00
Gil Alon
07c42cd220 SERVER-103028 Avoid validating feature flags during parsing when secondaries apply oplog entries (#36681)
GitOrigin-RevId: 0963e5fa161fc12d1996faf972c46eb515e0d20c
2025-06-12 21:22:21 +00:00
Ronald Steinke
458444957c SERVER-104543 fix stacktrace error handling (#36741)
GitOrigin-RevId: 1a045908f328842a4d7ea70a92d9d7b4466028f5
2025-06-12 21:22:05 +00:00
Alexander Ignatyev
8fe35b925c SERVER-104931 Add assumes_read_concern_local to elem_match_index_diff_types.js (#37168)
GitOrigin-RevId: c612583ba7401c32fe4608efde09e3addfd42a42
2025-06-11 12:35:51 +00:00
David Goffredo
be49d1c963 SERVER-104205: [backport v8.1] more specific netstat parsing (#36254)
GitOrigin-RevId: 2cfc80eceb6e05ab6ddcecd49b55a9497306acf8
2025-06-10 21:31:07 +00:00
vstojkovic-mongodb
0fb257de99 SERVER-102961 Add reason to setUserWriteBlockMode (#35023) (#36721)
GitOrigin-RevId: a2a39a161745fda77605441ec83bdd2e4880b73d
2025-06-10 20:25:42 +00:00
kmznam
3b357afb52 SERVER-99868 add more debug logs to the batch write executor (#33325)
GitOrigin-RevId: 99ee3ae509089a3a718cea2600d0cd94cf547fb8
2025-06-10 20:25:24 +00:00
Adi Zaimi
663c89ab53 SERVER-101124 Lower remainingReshardingOperationTimeThresholdMillis to 500ms (#35002)
GitOrigin-RevId: 198e12f0f448ac24c076055f389da62c2456f482
2025-06-10 20:25:06 +00:00
Joseph Prince
7dae93bafe SERVER-102110 Drain NetworkInterfaceMock before joining the sharding TaskExecutorPool in ReshardingDonorRecipientCommonTest (#33610)
GitOrigin-RevId: 8c0d1e9b7939b1d77b23b784a58690b8689ac804
2025-06-10 20:05:57 +00:00
Brad Cater
37457bd149 SERVER-102439 Make repl::writeConflictRetryLimit atomic. to v8.1 (#33915)
GitOrigin-RevId: 791cd89c03e14d86b96071c800488a0ed4e6066f
2025-06-10 20:05:39 +00:00
Jan
8e7125b96f SERVER-102267 Unify conditions for cursor accesses (#33653) (#35034)
GitOrigin-RevId: 6057ba02c5c8ed348aabc0948a8bd8867524664c
2025-06-10 19:59:16 +00:00
Yuhong Zhang
2e309db482 SERVER-103632 Correctly close the uncleared open bucket when reopening a bucket with the same metadata (#34843) (#36367)
GitOrigin-RevId: 1f98954cd86c49852beb3cecfd2049fea7153898
2025-06-10 19:58:59 +00:00
HanaPearlman
fe1ef2de25 SERVER-103319: Add redaction to more query-owned log lines (#35247) (#36595)
GitOrigin-RevId: 5777ea5674afe3cfebc883b25d8bbcabfa4e86f0
2025-06-10 19:54:21 +00:00
Evelyn Wu
55b6dfd3b4 SERVER-100448 Command registration should not depend on the FCV at startup (#33415) (#36270)
GitOrigin-RevId: 66380d8c46971b3af8bf930ef793b43ba64b8d2a
2025-06-10 19:36:28 +00:00
Daniel Hill
e1c2efe336 SERVER-104686: adding OS specific orderfiles (#36030)
GitOrigin-RevId: 0e7d093d0aee864b26cb1ba6cdf106ad74a1b977
2025-06-10 18:06:59 +00:00
Saman Memaripour
b7f343d364 SERVER-101581 Check socket state before accepting connection in ASIO (#35973) (#36135)
GitOrigin-RevId: efc47cf90374eb0395b2b97f152cbfbeecfeca06
2025-06-10 18:06:42 +00:00
Gregory Wlodarek
ac21834ab4 SERVER-102117 Remove WiredTigerStatsTest::EmptySession (#33426) (#36744)
GitOrigin-RevId: 169c82bdb9b264d7f6e094c1d3f6a3cfcca4ac59
2025-06-10 17:54:54 +00:00
Joan Bruguera Micó (at MongoDB)
0ab5b9f101 SERVER-104640 Durable timeseries catalog flags should respect point-in-time lookups (#35990)
GitOrigin-RevId: 0151e4bf288032f813871eb9404adffa372d016d
2025-06-10 17:54:37 +00:00
ppolato
26c7b005af SERVER-102082 Avoid reusing namespaces acros test cases of multi_collection_transaction_placement_conflict_workaround.js (#36868)
GitOrigin-RevId: 24212db52fe3982f14be383f704aea6d13d7e10e
2025-06-04 16:34:03 +00:00
Peter Volk
92a85b49fd SERVER-103965 Tag out date_expressions_with_timezones.js due to behaviour change (#36752)
GitOrigin-RevId: f42647669c0424f8ca40cc423b09ac8f6b56845b
2025-06-02 13:52:51 +00:00
huayu-ouyang
bdf7ab3d11 SERVER-103982 Fix trigger_initial_stable_checkpoint.js for slow machi… (#36592)
GitOrigin-RevId: b82f75e24a300d8c85663513985085aaddd01cd9
2025-05-28 19:43:15 +00:00
Allison Easton
8dc8a82ca5 SERVER-103749 CheckOrphansAreDeletedHelpers must account for lazy recovery of unfinished migrations (#36394)
GitOrigin-RevId: e61c66455c4b84832aa564d98ef36145cf2a6868
2025-05-27 20:18:35 +00:00
Joseph Prince
2a9e8890ed SERVER-102370 Disable connections_opened.js on Windows (#33611)
GitOrigin-RevId: b2d43ad96e8f6ad8ed1cc4b5a6f100cc954b23b4
2025-05-27 20:18:18 +00:00
Gabriel Marks
f9bae5077a SERVER-105261 Handle change in Azure OIDC flow (#36331)
GitOrigin-RevId: 9ebbaa9c2a7c272e60c2a9cfae18468d5e666022
2025-05-27 20:18:02 +00:00
Luke Chen
07b49093ba Import wiredtiger: ce1f45b4908579eb3e9dd588ee6ed4267783fe13 from branch mongodb-8.1 (#36272)
GitOrigin-RevId: c441b67d7260844c1422bf259e23c054a33ee7d8
2025-05-27 20:17:46 +00:00
Andrew Bradshaw
b95f197b80 SERVER-104267 Add signing to mongo_crypt for mac (#35384)
GitOrigin-RevId: b0c581a4dd7138a154b5c94d8877db0258385e4c
2025-05-27 20:17:29 +00:00
Peter Volk
fe99288526 SERVER-103523 Revert top/bottomN + n=1 using distinct scan on 8.1 (#35086)
GitOrigin-RevId: be06e35cbacbd52ff082bbcc31e2da597b2602f8
2025-05-27 20:17:13 +00:00
Santiago Roche
acac431f4b SERVER-102103 Fix incorrect error code returned from mozjs in certain OOM cases. (#36199)
GitOrigin-RevId: 9d8ba7dab21a4e38dd026d67b3717f53228b243e
2025-05-27 20:16:56 +00:00
Ben Shteinfeld
f7589202eb SERVER-102526 [v8.1] Update MozJS to ESR 128.8 (#33873) (#34529)
GitOrigin-RevId: 46b5033f8c07a78f5ae9ec20fdfa3c726d193dcc
2025-05-27 20:16:34 +00:00
Allison Easton
e7486c5cff SERVER-105111 Disable featureFlagSessionsCollectionCoordinatorOnConfigServer (#36196)
GitOrigin-RevId: 7cf514a904e3c037ba2ab91f90c60218c3929459
2025-05-27 20:16:17 +00:00
wt-vendoring-bot[bot]
25ae83d84f Import wiredtiger: d6eda7a7e8b05772384c4cfe36b1c1d43344adfd from branch mongodb-8.1 (#36211)
GitOrigin-RevId: 54bf27eed8bd18ba46627767df06b15abaeac673
2025-05-27 20:16:01 +00:00
adriangzz
a760d7d24d SERVER-102881 Authorize FTDC to collect buildInfo (#35316) (#35484)
GitOrigin-RevId: d0680b7ce48bf9be7c887bb7323ae3fe1ac8e553
2025-05-27 20:15:44 +00:00
Adi Zaimi
94d0c5ba1d SERVER-104265 Disable feature flag gFeatureFlagReshardingCloneNoRefresh (#35497)
GitOrigin-RevId: 1b2bf3a078a43d85955c00994773a3e08a93100f
2025-05-27 20:15:28 +00:00
Thomas Goyne
f591ffbfb9 SERVER-103505 [v8.1] Handle metadata errors in WiredTigerUtil::setTableLogging (#35706)
GitOrigin-RevId: 307861b64dffd15cd3d4eb42bdcac5e4616529e4
2025-05-27 20:15:11 +00:00
Ernesto Rodriguez Reina
4b2ebb8bdc SERVER-102688 [v8.1] Silence non-actionable FTDC WT errors during startup (#35877)
GitOrigin-RevId: 54d0affda5f5d1fc41a7351ef864a5fa623c4ba5
2025-05-27 20:14:55 +00:00
Joan Bruguera Micó (at MongoDB)
4090497d83 SERVER-100844 Sharding an unsharded collection fails if a stale unique index remains on the DB-primary shard (#34233)
GitOrigin-RevId: 8f4ca2b53b36fe98c309afe553d6218ffa305522
2025-05-27 20:14:38 +00:00
Jan
610ae9508f SERVER-102422 Remove invariant in AsyncResultsMerger destructor (#33578) (#33768)
GitOrigin-RevId: a3527ba0d80f77f8f9b305d29efc46b8d08497a8
2025-05-27 20:14:21 +00:00
Silvia Surroca
73e2052fc7 SERVER-102543 $listClusterCatalog should not return null on shards field on replica set clusters (#33891) (#34426)
GitOrigin-RevId: 82c7df88287e11afa21df27ed0498d8bd758123f
2025-05-27 20:14:05 +00:00
Alex Li
831dfe047a SERVER-100723 Configure scheduled test builders on m8g/AL2023 for MongoDB master (#33378) (#35794)
GitOrigin-RevId: 492855d5f5500fb3dacf833ac0d32331289de59a
2025-05-27 20:13:48 +00:00
Arun
9d9cc6494f SERVER-102224 Fix Coverity analysis defect 170751: Uninitialized scalar field (#33794) (#33923)
GitOrigin-RevId: a880b360b0b634f1baba37730e2b5097534c13ca
2025-05-27 20:13:31 +00:00
Christopher M. Wolff
45f2c6943b SERVER-99773 Fix pushdown of group stage for TS queries in sharded clusters (#34245)
GitOrigin-RevId: 12c4a5c8fdaff855a20635ff2ee889109775bf09
2025-05-27 20:13:14 +00:00
Ronald Steinke
58c022c5c2 SERVER-103783 Fix NAN string on windows. (#35483) (#35646)
GitOrigin-RevId: d286bf8c373bc3b24bb35536b0568454ca8ebacb
2025-05-27 20:12:58 +00:00
Yujin Kang Park
3a48e79f76 SERVER-101739 + SERVER-93101 + SERVER-91121 (#34417)
GitOrigin-RevId: 67e7aaabe72141fa96155a34238d080aebceb1e4
2025-05-27 20:12:41 +00:00
Pol Piñol Castuera
3df2f5e9c4 SERVER-100224 feature_compatibility_version.idl should not be linked to mongos (#34876)
GitOrigin-RevId: 2e9c77797b8dd536e26cefd8d29bd619da3b72e9
2025-05-27 20:12:24 +00:00
Silvia Surroca
8bf39e698d SERVER-102582 Disallow overriding readConcern on $listClusterCatalog (#35791)
GitOrigin-RevId: 59979c20d4181ef405630a5f31253660b99107f8
2025-05-27 20:12:07 +00:00
Sean Lyons
5465ea3afd SERVER-102872 SERVER-102735 Use OS-specific db-contrib-tool pyinstaller builds for PPC (#34156)
GitOrigin-RevId: 6238d0faa343d3a4d5ec26b72f9c1fc15be67dc7
2025-05-27 20:11:51 +00:00
Jan
e2053c5e10 SERVER-98461 findAndModify where query does not have shard key does not return WCE on failure (#34890)
GitOrigin-RevId: a97f90e946aaa9f401cb41cf904c480a48c9a1ff
2025-05-27 20:11:34 +00:00
seanzimm
1363e1c470 SERVER-101807: Add oplog entry logging for OplogOutOfOrder (#34374) (#35899)
GitOrigin-RevId: 2e1bb827a486fa75d4a38058bcab60eebecd15bd
2025-05-27 20:11:17 +00:00
Louis Williams
6487c22a46 SERVER-103741 Profiler collection metrics (#35054)
GitOrigin-RevId: a10f177d2714ae9254ed83f474fc3da90f71f959
2025-05-27 20:11:00 +00:00
Kruti Shah
b482e65585 SERVER-92236 Chunk migrations should use short lived cancellation sources (#35339) (#35495)
GitOrigin-RevId: c0f9c48de50fe295fb7eb2ccd8febcd32a118277
2025-05-27 20:10:43 +00:00
Enrico Golfieri
66457ff0a0 SERVER-102821 BulkWrite command fails to attach placementConflictTime to shardVersion in certain transaction scenarios (#34934)
GitOrigin-RevId: 9f425785d692d1473b478d2e486aa87cf3dd8092
2025-05-27 20:10:26 +00:00
Projjal Chanda
2d932d9d25 SERVER-102581 Disable switch and set expressions in sbe only if the number of children exceeds a certain amount. (#34926)
GitOrigin-RevId: d59eef83c65ce2b38434880a753903b677d2704f
2025-05-27 20:10:09 +00:00
Allison Easton
ec3518dc35 SERVER-103148 Prevent writeConcernError from going out of scope in DBDirectClient helpers (#35191)
GitOrigin-RevId: 81c92538c0b79511bfa77ae00de1aad6ff571a86
2025-05-27 20:09:53 +00:00
Ernesto Rodriguez Reina
aeb26fdcec SERVER-93519 Reset StorageStat base on txn start (#33866) (#34566)
GitOrigin-RevId: c7d45a4c3ad6678bbc2a34cef809b6e3a9da69ac
2025-05-27 20:09:36 +00:00
Projjal Chanda
8e6cfbd72c SERVER-102693 Avoid express fast path for query predicate with implicit conjunctive _id (#34803)
GitOrigin-RevId: 31a39f125626e95bad362f427af7a0a89b4b6d2a
2025-05-27 20:09:19 +00:00
Ernesto Rodriguez Reina
370b08b317 SERVER-103231 [v8.1] Increase default FTDC retention size to 250 MB (#35472)
GitOrigin-RevId: d81deccd5e515559e7451477fca81b282df31eb6
2025-05-27 20:09:02 +00:00
Joseph Prince
8936dacbf1 SERVER-103048 SERVER-103245 Increase NetworkInterfaceTL kill op request timeout on CancelRemotely integration test (#35607)
GitOrigin-RevId: 7b15f852780df613dd7748a58e732c776559892f
2025-05-27 20:08:45 +00:00
clarissecheah
187edf27e8 SERVER-97174 Validate command on secondaries reads unfinished oplog batch (#33762)
GitOrigin-RevId: 7f95ca79b2fae29a44bde02aed43b25da00689b1
2025-05-27 20:08:28 +00:00
Militsa Sotirova
d47874be67 SERVER-101070 Make DocumentSource::joinMatchWith operate over original BSON (#34892)
GitOrigin-RevId: 92ac52d639b4baa52db8972941bb811a0f3a4a46
2025-05-27 20:08:11 +00:00
Silvia Surroca
e880336378 SERVER-100936 Mongos must return WCE as a top-level error for create collection (#33834)
GitOrigin-RevId: bc81cccf136743e948e91637d1f21a42e381d803
2025-05-27 20:07:54 +00:00
Zack Winter
c168b327f1 SERVER-103642 [v8.1] Rename sdp-triager to devprod-build-automation (#34842) (#34863)
GitOrigin-RevId: 129e7569abd235465571c27ddaf961d88fe0e3ea
2025-05-27 20:07:37 +00:00
Zack Winter
32dd19b5a7 SERVER-102469 [v8.1] Invert pass/fail default in linter shim (#33645) (#33687)
GitOrigin-RevId: b760cd4dc298aa0ef0980eb745b56cf376049613
2025-05-27 20:07:20 +00:00
Mihai Andrei
623bf6a47a SERVER-101362 Include evaluate_index_test.cpp in target db_exec_test … (#33542)
GitOrigin-RevId: 43a2245e1a9cdae7b93e7b33798998c463526c4e
2025-05-27 20:07:03 +00:00
Ben Shteinfeld
449a78bc13 SERVER-102718 [v8.1] Re-enable all test cases in jstests/auth/lib/commands_lib.js (#34554)
GitOrigin-RevId: 92defc96a515919be4734bdb01ed70f1ce0b3bb0
2025-05-27 20:06:45 +00:00
Calvin Nix
61c044806f SERVER-103056 Fix Evergreen tests for streams_kafka_gwproxy testing (#34838)
GitOrigin-RevId: 5ec173f8a9bc7b13e53f0c794db6dff294e0d79a
2025-05-27 20:06:28 +00:00
wt-vendoring-bot[bot]
73a89b980d Import wiredtiger: 55f74bd17118ad030b5d6556ca1849e003128255 from branch mongodb-8.1 (#35720)
GitOrigin-RevId: b4fe11bd40f9e6f52d69399d493d9dd51b913b62
2025-05-27 20:06:11 +00:00
Pol Piñol Castuera
794f4c1464 SERVER-89398 Re-enable shard filtering metadata hook check in multiversion (#35406)
GitOrigin-RevId: 289871da3466022f88c7ae8b1efd2f51f37cb511
2025-05-27 20:05:54 +00:00
tarunsethi
ba27afce19 SERVER-104248 Add Coverity scanning for the v8.1 branch (#35334)
GitOrigin-RevId: fe28d567d7e0511623723738918c249658a02972
2025-05-27 20:05:37 +00:00
Erwin Pe
dfcbff6071 SERVER-104118 Update Okta OIDC authentication script (#35242) (#35293)
GitOrigin-RevId: 8f083bbd18fed5f44d25e2ce8de37ec09e318d07
2025-05-27 20:05:20 +00:00
Britt Snyman
b6da7e2baf SERVER-100281 Bump commit for 8.1.0 GA (#34640)
GitOrigin-RevId: 79a4ae74be81cdd2e72ff934ff14b84bf1f87104
2025-05-27 20:05:02 +00:00
Erin McNulty
4ba9dc11ec SERVER-103862 Fix proxy_protocol_connect test and connection accepted log (#35132)
GitOrigin-RevId: 83ece7ca54c0ef54d2c5e37b648000b1f80a1b67
2025-05-27 20:04:45 +00:00
Erin McNulty
5802bbe5bc SERVER-103828 Handle empty socket in peekASIOStream (#35051)
GitOrigin-RevId: 009dfb8fd358dedeb41de4aa40e16e5dc88615d7
2025-05-27 20:04:28 +00:00
Gabriel Marks
01cd9bd972 SERVER-103557 Ensure references to SSLPeerInfo don't die (#34778) (#35011)
GitOrigin-RevId: cf8e3bdbf701fbf4a02c0cc7a103bced9e77f1de
2025-05-27 20:04:11 +00:00
adriangzz
054a4dcbe6 SERVER-103261 Handle different HTMLs in Azure OIDC sign in website (#35006)
GitOrigin-RevId: 649f5471e9ba37f0fa252bfeefc5e85d0663a4be
2025-05-27 20:03:53 +00:00
Daniel Moody
ee9dbe394b SERVER-103641 make msi installer use def file correctly (#34853)
GitOrigin-RevId: 68246c74d8d37bd14b3e79a62a11f79874b9b72e
2025-05-27 20:03:36 +00:00
Robert Sander
7ae97ffd9f SERVER-103448 Reduce the number of created collections in timeseries_collmod_granularity_update.js when running with config transitions (#34671) (#34817)
GitOrigin-RevId: 4e9178e4d5516c856f434003d35224f09041c89a
2025-05-27 20:03:19 +00:00
seanzimm
cab8f6ea11 SERVER-102737: Fix hardcoded times in nodes_prefer_primary_sync_sourc… (#34752)
GitOrigin-RevId: 4c681ed85cfbc070b8dcc4b0ceae6e4ba7386a9f
2025-05-27 20:03:01 +00:00
Gil Alon
6b5249a16f SERVER-101271 Handle _internalUnpackBucket doOptimizeAt when called multiple times on different nodes (#34544) (#34689)
GitOrigin-RevId: 561400a1b23f141f146e536e25a8eac76462f011
2025-05-27 20:02:44 +00:00
henrikedin
0ac42a441c SERVER-103328 Fix BSONColumnBuilder handling for rescaling after skip for double type. (#34597)
GitOrigin-RevId: 8ddccd5d20a3a4fb9fecc3d0ab0de8a9b1a572ae
2025-05-27 20:02:26 +00:00
Brad Cater
120bb57da6 SERVER-102877 Handle session killed errors. to v8.1 (#34160)
GitOrigin-RevId: 54eecbf83dd02c02f7b3176c521127e4b78d99d3
2025-05-27 20:02:09 +00:00
Ben Shteinfeld
2e2218f484 Revert "SERVER-102526 [v8.1] Update MozJS to ESR 128.8 (#33873)" (#34472)
GitOrigin-RevId: d3d3c6a7b669bc55be2e3e67e152a7a8037be524
2025-05-27 20:01:48 +00:00
Ben Shteinfeld
a99ede5e05 SERVER-102526 [v8.1] Update MozJS to ESR 128.8 (#33873)
GitOrigin-RevId: 3e25cf3074b821e7822dce27cb05e194871e4e79
2025-05-27 20:01:26 +00:00
Cheahuychou Mao
6f87d8178f SERVER-102977 Restore the original authorization check in addShardToZone command (#34217)
GitOrigin-RevId: 8ad540a5363c6f35739de2d11ac67d2c90217efe
2025-05-27 20:01:07 +00:00
Serhii Lysenko
ccef4a1766 SERVER-102061: mark $mergeCursors as internal (#33719) (#33837)
GitOrigin-RevId: db72be99788a627a1246c9bc85299621d063f06a
2025-05-27 20:00:50 +00:00
Jan
29bcabed2b SERVER-102956 Revert "SERVER-98461 Return WCE for non-shard key findAndModify (#32713)" (#34162)
GitOrigin-RevId: e1d4b66cef028ccb8d39099f075a6eb6408ed068
2025-05-27 20:00:32 +00:00
Luke Chen
b285caa487 Import wiredtiger: d23b4e1575616c4513d532d4657dc37e7f2e9da8 from branch mongodb-8.1 (#34174)
GitOrigin-RevId: 1af7dbdb23c4e5e7c173518aa98d9a3635192494
2025-05-27 20:00:14 +00:00
Luke Pearson
a185d990d3 SERVER-102958 Disable live restore testing in 8.1 (#34165)
GitOrigin-RevId: b950428ca3b8c7638ec163fb6546b6e06546046f
2025-05-27 19:59:56 +00:00
Zack Winter
4c0960b2cc SERVER-102116 Bump s390x concurrency to 16x (#33430) (#33789)
GitOrigin-RevId: 4096895b22fcc8a90aabbfcfb1ced53894a4b231
2025-05-27 19:59:38 +00:00
Varun Ravichandran
7435f68e0e SERVER-101941 Require cluster user privileges to append dollar audit on mongos (#33713)
GitOrigin-RevId: 39bc10e94fe285cc50b9e7c0138fcaab1b624f0c
2025-05-27 19:59:21 +00:00
Mariano Shaar
0bb936d5e7 SERVER-100429 [v8.1] Upgrade MozJS to ESR 115.20 (#33598)
GitOrigin-RevId: 5e28fd8979cf18e9ff40a5f8c596b2d61c3d3a1a
2025-05-27 19:59:03 +00:00
Joan Bruguera Micó (at MongoDB)
1629de2fb7 Revert "SERVER-99351 Incorporate Operation FCV into the FCVGatedFeatureFlag API" (#33461)
GitOrigin-RevId: 18a644acd10011a0f588e92634a3666dad692bfc
2025-05-27 19:58:45 +00:00
Ivan Fefer
1a8e05c0b7 Revert "SERVER-23980 Support spilling in $graphLookup (#30867)" (#33562) (#33630)
GitOrigin-RevId: ab0a7822da97a9bbe240af550aaa853c7e312663
2025-05-27 19:58:27 +00:00
Varun Ravichandran
36e3afaf74 SERVER-101879 Limit scope and authorization of audit client impersonation (#33260) (#33460)
GitOrigin-RevId: 26cea028ee299d996aa850dc55d0460f1a5ca069
2025-05-27 19:58:09 +00:00
Adityavardhan Agrawal
ef44146552 SERVER-98849 Add test for backward scan fails when resuming from a re… (#33200)
GitOrigin-RevId: 91fd5916dc90660e5896ead05a48d2b8e26fc907
2025-05-27 19:57:51 +00:00
joe-mongodb
99b98eb382 SERVER-101701: Enforce $rankFusion is no stage other than the first i… (#33413)
GitOrigin-RevId: f371fc8133c66bf63fd01bbd6522f87c01032bad
2025-05-27 19:57:33 +00:00
Yujin Kang Park
20c6ea815f SERVER-101838: Revert SERVER-93101 and SERVER-91121 (#33440)
GitOrigin-RevId: 86a83ee0e197e88fc46af64c56cca5fe038829bc
2025-05-27 19:57:15 +00:00
SimonEismann
5b59124859 SERVER-102060 Fix sys-perf config for the new branch (#33368)
GitOrigin-RevId: 8cdfa038f65df6c955c889ad4669822af4d213e6
2025-05-27 19:56:57 +00:00
Will Buerger
c4b6c9dbf0 SERVER-101781: Reject $rankFusion in a view definition (#33345)
GitOrigin-RevId: ce3b5ad585f4bb4fa72e3c3c67f4ccc89bc997c6
2025-05-27 19:56:38 +00:00
Will Buerger
c21c1a6e61 SERVER-101653: Reject $rankFusion queries run on view (#33187)
GitOrigin-RevId: 75fc1ba3487b5b3688c5f225c3725114ae5195d1
2025-05-27 19:56:20 +00:00
Trevor Guidry
36760f9b07 SERVER-101846 add amazon2 arm64 variants (#33261)
GitOrigin-RevId: 3a80c74feb24de048abdd3fd5d81b45e308f4b55
2025-05-27 19:56:02 +00:00
Zack Winter
4cfbea7a5c SERVER-101869 Add server-release as a codeowner on the v8.1 branch (#33270)
GitOrigin-RevId: 6cacd3ad2ce8013e916d3bfd9eeafac62e76d4b8
2025-05-27 19:55:44 +00:00
Tianyu Wang
e0770aed31 SERVER-100274: 8.1 Build and Verification Branching Task (#33136)
GitOrigin-RevId: 359cbe95216ffaf1a6173884f6519b3d408f1fb5
2025-05-27 19:55:27 +00:00
2524 changed files with 248936 additions and 84345 deletions

2539
.github/CODEOWNERS vendored

File diff suppressed because it is too large Load Diff

View File

@ -36,6 +36,9 @@ version_expansions.yml
# Ignore all formatting in third_party/*
src/third_party
# this file is automatically generated and conforms to formatting requirements
README.third_party.md
# Ignore anything in the build output directories
build
bazel-*

View File

@ -18,7 +18,6 @@ exports_files([
".prettierrc",
"pyproject.toml",
"poetry.lock",
"symbols.orderfile",
"codeowners-validator",
])

View File

@ -1,6 +1,6 @@
# ![Logo](docs/leaf.svg) MongoDB README
Welcome to MongoDB!
Welcome to MongoDB 8.1!
## Components

View File

@ -21,131 +21,140 @@ not authored by MongoDB, and has a license which requires reproduction,
a notice will be included in
`THIRD-PARTY-NOTICES`.
| Name | License | Vendored Version | Emits persisted data | Distributed in Release Binaries |
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ---------------------------------------- | -------------------- | ------------------------------- |
| [Abseil] | Apache-2.0 | 20230802.1 | | ✗ |
| [arximboldi/immer] | BSL-1.0 | Unknown | | ✗ |
| [Asio C++ Library] | BSL-1.0 | 1.12.2 | | ✗ |
| [aws-sdk - the AWS SDK client library] | Apache-2.0 | 1.11.471 | | ✗ |
| [benchmark] | Apache-2.0 | v1.5.2 | | |
| [Boost C++ Libraries - boost] | BSL-1.0 | 1.79.0 | | ✗ |
| [c-ares] | MIT | 1.27.0 | | ✗ |
| [concurrencytest] | GPL-3.0-or-later | 0.1.2 | unknown | |
| [Cyrus SASL] | BSD-Attribution-HPND-disclaimer | 2.1.28 | unknown | |
| [dcleblanc/SafeInt] | MIT | 3.0.26 | | ✗ |
| [derickr/timelib] | MIT | 2022.13 | | ✗ |
| [discover] | BSD-3-Clause | 0.4.0 | unknown | |
| [fmtlib/fmt] | MIT | 11.1.3 | | ✗ |
| [google-re2] | BSD-3-Clause | 2023-11-01 | | ✗ |
| [google-snappy] | BSD-3-Clause | 1.1.10 | ✗ | ✗ |
| [google/s2geometry] | Apache-2.0 | Unknown | ✗ | ✗ |
| [gperftools] | BSD-3-Clause | 2.9.1 | | ✗ |
| [grpc] | Apache-2.0 | 1.59.5 | | ✗ |
| [ICU for C/C++ (ICU4C)] | BSD-3-Clause, MIT v2 with Ad Clause License, Public Domain, BSD-2-Clause | 57.1 | ✗ | ✗ |
| [Intel Decimal Floating-Point Math Library] | BSD-3-Clause | v2.0 U1 | | ✗ |
| [jbeder/yaml-cpp] | MIT | 0.6.3 | | ✗ |
| [JSON-Schema-Test-Suite] | Unknown License | Unknown | | |
| [libmongocrypt] | Apache-2.0 | 1.12.0 | ✗ | ✗ |
| [librdkafka - the Apache Kafka C/C++ client library] | BSD-3-Clause, Xmlproc License, ISC, MIT, Public Domain, Zlib, BSD-2-Clause, Andreas Stolcke License | 2.0.2 | | ✗ |
| [LibTomCrypt] | WTFPL, Public Domain | 1.18.2 | ✗ | ✗ |
| [libunwind/libunwind] | MIT | v1.8.1 | | ✗ |
| [linenoise] | BSD-2-Clause | Unknown | | ✗ |
| [MongoDB C Driver] | Apache-2.0 | 1.27.6 | ✗ | ✗ |
| [Mozilla Firefox] | MPL-2.0 | 115.19.0esr | unknown | ✗ |
| [nlohmann.json.decomposed] | MIT | 3.10.5 | unknown | |
| [node] | ISC | 22.1.0 | unknown | |
| [ocspbuilder] | MIT | 0.10.2 | | |
| [ocspresponder] | Apache-2.0 | 0.5.0 | | |
| [opentelemetry-cpp] | Apache-2.0 | 1.17 | ✗ | |
| [opentelemetry-proto] | Apache-2.0 | 1.3.2 | ✗ | |
| [PCRE2] | BSD-3-Clause, Public Domain | 10.40 | | ✗ |
| [Protobuf] | BSD-3-Clause | v4.25.0 | | ✗ |
| [pyiso8601] | MIT | 2.1.0 | unknown | |
| [RoaringBitmap/CRoaring] | Unknown License | v3.0.1 | | ✗ |
| [SchemaStore/schemastore] | Apache-2.0 | Unknown | | |
| [SCons - a Software Construction tool] | MIT | 3.1.2 | | ✗ |
| [smhasher] | Unknown License | Unknown | unknown | ✗ |
| [Snowball Stemming Algorithms] | BSD-3-Clause | 7b264ffa0f767c579d052fd8142558dc8264d795 | ✗ | ✗ |
| [subunit] | BSD-3-Clause, Apache-2.0 | 1.4.4 | unknown | |
| [tcmalloc] | Apache-2.0 | 20230227-snapshot-093ba93c | | ✗ |
| [testing-cabal/extras] | MIT | 0.0.3 | unknown | |
| [testscenarios] | BSD-3-Clause, Apache-2.0 | 0.4 | unknown | |
| [testtools] | MIT | 2.7.1 | unknown | |
| [unicode-data] | Unicode-DFS-2016 | 8.0 | ✗ | ✗ |
| [valgrind] | GPL-2.0-or-later | Unknown | | ✗ |
| [zlib] | Zlib | v1.3.1 | ✗ | ✗ |
| [zstd] | BSD-3-Clause, GPL-2.0-or-later | 1.5.5 | ✗ | ✗ |
| Name | License | Vendored Version | Emits persisted data | Distributed in Release Binaries |
| ---------------------------------------------------- | --------------------------------- | ---------------------------------------- | -------------------- | ------------------------------- |
| [Abseil Common Libraries (C++)] | Apache-2.0 | 20230802.1 | | ✗ |
| [Asio C++ Library] | BSL-1.0 | 1.12.2 | | ✗ |
| [AWS SDK for C++] | Apache-2.0 | 1.11.471 | | ✗ |
| [benchmark] | Apache-2.0 | v1.5.2 | | |
| [Boost C++ Libraries] | BSL-1.0 | 1.79.0 | | ✗ |
| [c-ares] | MIT | 1.27.0 | | ✗ |
| [CRoaring] | Apache-2.0 OR MIT | 3.0.1 | | ✗ |
| [Cyrus SASL] | BSD-Attribution-HPND-disclaimer | 2.1.28 | | |
| [fmt] | MIT | 11.1.3 | | ✗ |
| [folly] | Apache-2.0 | v2025.04.21.00 | | ✗ |
| [gperftools] | BSD-3-Clause | 2.9.1 | | ✗ |
| [gRPC (C++)] | Apache-2.0 | 1.59.5 | | ✗ |
| [immer] | BSL-1.0 | 0.8.0 | | ✗ |
| [Intel® Decimal Floating-Point Math Library] | BSD-3-Clause | v2.0U1 | | ✗ |
| [International Components for Unicode C/C++ (ICU4C)] | Unicode-3.0 | 57.1 | ✗ | ✗ |
| [JSON Schema Store] | Apache-2.0 | 6847cfc3a17a04a7664474212db50c627e1e3408 | | |
| [JSON-Schema-Test-Suite] | MIT | 728066f9c5c258ba3b1804a22a5b998f2ec77ec0 | | |
| [libmongocrypt] | Apache-2.0 | 1.12.0 | ✗ | ✗ |
| [librdkafka - The Apache Kafka C/C++ library] | BSD-2-Clause | 2.0.2 | | ✗ |
| [LibTomCrypt] | Unlicense | 1.18.2 | ✗ | ✗ |
| [libunwind] | MIT | v1.8.1 | | ✗ |
| [linenoise] | BSD-2-Clause | 6cdc775807e57b2c3fd64bd207814f8ee1fe35f3 | | ✗ |
| [MongoDB C Driver] | Apache-2.0 | 1.27.6 | ✗ | ✗ |
| [Mozilla Firefox ESR] | MPL-2.0 | 128.11.0esr | | ✗ |
| [MurmurHash3] | Public Domain | a6bd3ce7be8ad147ea820a7cf6229a975c0c96bb | | ✗ |
| [nlohmann/json] | MIT | 3.10.5 | | |
| [nlohmann/json] | MIT | 3.11.3 | ✗ | |
| [node] | ISC | 22.1.0 | | |
| [opentelemetry-cpp] | Apache-2.0 | 1.17 | ✗ | |
| [opentelemetry-proto] | Apache-2.0 | 1.3.2 | ✗ | |
| [PCRE2 - Perl-Compatible Regular Expressions] | BSD-3-Clause WITH PCRE2-exception | 10.40 | | ✗ |
| [Protobuf] | BSD-3-Clause | v4.25.0 | | ✗ |
| [pypi/asn1crypto] | MIT | 1.5.1 | | |
| [pypi/concurrencytest] | GPL-3.0-or-later | 0.1.2 | | |
| [pypi/discover] | BSD-3-Clause | 0.4.0 | | |
| [pypi/extras] | MIT | 0.0.3 | | |
| [pypi/iso8601] | MIT | 2.1.0 | | |
| [pypi/ocspbuilder] | MIT | 0.10.2 | | |
| [pypi/ocspresponder] | Apache-2.0 | 0.5.0 | | |
| [pypi/oscrypto] | MIT | 1.3.0 | | |
| [pypi/python-subunit] | (Apache-2.0 OR BSD-3-Clause) | 1.4.4 | | |
| [pypi/testscenarios] | BSD-3-Clause | 0.4 | | |
| [pypi/testtools] | MIT | 2.7.1 | | |
| [re2] | BSD-3-Clause | 2023-11-01 | | ✗ |
| [S2 Geometry Library] | Apache-2.0 | c872048da5d1 | ✗ | ✗ |
| [SafeInt] | MIT | 3.0.26 | | ✗ |
| [SCons - a Software Construction tool] | MIT | 3.1.2 | | |
| [snappy] | BSD-3-Clause | 1.1.10 | ✗ | ✗ |
| [Snowball Stemming Algorithms (libstemmer)] | BSD-3-Clause | 7b264ffa0f767c579d052fd8142558dc8264d795 | ✗ | ✗ |
| [tcmalloc] | Apache-2.0 | 093ba93c1bd6dca03b0a8334f06d01b019244291 | | ✗ |
| [timelib] | MIT | 2022.13 | | ✗ |
| [Unicode Character Database] | Unicode-DFS-2016 | 8.0.0 | ✗ | ✗ |
| [valgrind.h] | BSD-4-Clause | 3.17.0 | | ✗ |
| [WiredTiger] | GPL-2.0-only OR GPL-3.0-only | mongodb-8.1 | ✗ | ✗ |
| [yaml-cpp] | MIT | 0.6.3 | | ✗ |
| [zlib] | Zlib | 1.3.1 | ✗ | ✗ |
| [Zstandard (zstd)] | BSD-3-Clause OR GPL-2.0-only | 1.5.5 | ✗ | ✗ |
[Abseil]: https://github.com/abseil/abseil-cpp
[AWS SDK for C++]: https://github.com/aws/aws-sdk-cpp
[Abseil Common Libraries (C++)]: https://github.com/abseil/abseil-cpp
[Asio C++ Library]: https://github.com/chriskohlhoff/asio
[Boost C++ Libraries - boost]: http://www.boost.org/
[Boost C++ Libraries]: http://www.boost.org/
[CRoaring]: https://github.com/RoaringBitmap/CRoaring
[Cyrus SASL]: https://www.cyrusimap.org/sasl/
[ICU for C/C++ (ICU4C)]: http://site.icu-project.org/download/
[Intel Decimal Floating-Point Math Library]: https://software.intel.com/en-us/articles/intel-decimal-floating-point-math-library
[Intel® Decimal Floating-Point Math Library]: https://software.intel.com/en-us/articles/intel-decimal-floating-point-math-library
[International Components for Unicode C/C++ (ICU4C)]: http://site.icu-project.org/download/
[JSON Schema Store]: https://www.schemastore.org/json/
[JSON-Schema-Test-Suite]: https://github.com/json-schema-org/JSON-Schema-Test-Suite
[LibTomCrypt]: https://github.com/libtom/libtomcrypt/releases
[MongoDB C Driver]: https://github.com/mongodb/mongo-c-driver
[Mozilla Firefox]: https://www.mozilla.org/en-US/security/known-vulnerabilities/firefox-esr
[PCRE2]: http://www.pcre.org/
[Mozilla Firefox ESR]: https://www.mozilla.org/en-US/security/known-vulnerabilities/firefox-esr
[MurmurHash3]: https://github.com/aappleby/smhasher/blob/a6bd3ce/
[PCRE2 - Perl-Compatible Regular Expressions]: http://www.pcre.org/
[Protobuf]: https://github.com/protocolbuffers/protobuf
[RoaringBitmap/CRoaring]: https://github.com/RoaringBitmap/CRoaring
[S2 Geometry Library]: https://github.com/google/s2geometry
[SCons - a Software Construction tool]: https://github.com/SCons/scons
[SchemaStore/schemastore]: https://www.schemastore.org/json/
[Snowball Stemming Algorithms]: https://github.com/snowballstem/snowball
[arximboldi/immer]: https://github.com/arximboldi/immer
[aws-sdk - the AWS SDK client library]: https://github.com/aws/aws-sdk-cpp
[SafeInt]: https://github.com/dcleblanc/SafeInt
[Snowball Stemming Algorithms (libstemmer)]: https://github.com/snowballstem/snowball
[Unicode Character Database]: http://www.unicode.org/versions/enumeratedversions.html
[WiredTiger]: https://source.wiredtiger.com/
[Zstandard (zstd)]: https://github.com/facebook/zstd
[benchmark]: https://github.com/google/benchmark
[c-ares]: https://c-ares.org/
[concurrencytest]: https://pypi.org/project/concurrencytest/
[dcleblanc/SafeInt]: https://github.com/dcleblanc/SafeInt
[derickr/timelib]: https://github.com/derickr/timelib
[discover]: https://pypi.org/project/discover/
[fmtlib/fmt]: http://fmtlib.net/
[google-re2]: https://github.com/google/re2
[google-snappy]: https://github.com/google/snappy/releases
[google/s2geometry]: https://github.com/google/s2geometry
[fmt]: http://fmtlib.net/
[folly]: https://github.com/facebook/folly
[gRPC (C++)]: https://github.com/grpc/grpc
[gperftools]: https://github.com/gperftools/gperftools
[grpc]: https://github.com/grpc/grpc
[jbeder/yaml-cpp]: https://github.com/jbeder/yaml-cpp/releases
[immer]: https://github.com/arximboldi/immer
[libmongocrypt]: https://github.com/mongodb/libmongocrypt
[librdkafka - the Apache Kafka C/C++ client library]: https://github.com/confluentinc/librdkafka
[libunwind/libunwind]: http://www.github.com/libunwind/libunwind
[librdkafka - The Apache Kafka C/C++ library]: https://github.com/confluentinc/librdkafka
[libunwind]: http://www.github.com/libunwind/libunwind
[linenoise]: https://github.com/antirez/linenoise
[nlohmann-json]: https://github.com/open-telemetry/opentelemetry-proto
[nlohmann.json.decomposed]: https://www.nuget.org/packages/nlohmann.json.decomposed
[nlohmann/json]: https://github.com/nlohmann/json
[nlohmann/json]: https://github.com/open-telemetry/opentelemetry-proto
[node]: https://nodejs.org/en/blog/release
[ocspbuilder]: https://github.com/wbond/ocspbuilder
[ocspresponder]: https://github.com/threema-ch/ocspresponder
[opentelemetry-cpp]: https://github.com/open-telemetry/opentelemetry-cpp/
[opentelemetry-proto]: https://github.com/open-telemetry/opentelemetry-proto
[pyiso8601]: https://pypi.org/project/iso8601/
[smhasher]: https://github.com/aappleby/smhasher/blob/a6bd3ce/
[subunit]: https://github.com/testing-cabal/subunit
[pypi/asn1crypto]: https://github.com/wbond/asn1crypto
[pypi/concurrencytest]: https://pypi.org/project/concurrencytest/
[pypi/discover]: https://pypi.org/project/discover/
[pypi/extras]: https://github.com/testing-cabal/extras
[pypi/iso8601]: https://pypi.org/project/iso8601/
[pypi/ocspbuilder]: https://github.com/wbond/ocspbuilder
[pypi/ocspresponder]: https://github.com/threema-ch/ocspresponder
[pypi/oscrypto]: https://github.com/wbond/oscrypto
[pypi/python-subunit]: https://github.com/testing-cabal/subunit
[pypi/testscenarios]: https://pypi.org/project/testscenarios/
[pypi/testtools]: https://github.com/testing-cabal/testtools
[re2]: https://github.com/google/re2
[snappy]: https://github.com/google/snappy/releases
[tcmalloc]: https://github.com/google/tcmalloc
[testing-cabal/extras]: https://github.com/testing-cabal/extras
[testscenarios]: https://pypi.org/project/testscenarios/
[testtools]: https://github.com/testing-cabal/testtools
[unicode-data]: http://www.unicode.org/versions/enumeratedversions.html
[valgrind]: http://valgrind.org/downloads/current.html
[timelib]: https://github.com/derickr/timelib
[valgrind.h]: http://valgrind.org/downloads/current.html
[yaml-cpp]: https://github.com/jbeder/yaml-cpp/releases
[zlib]: https://zlib.net/
[zstd]: https://github.com/facebook/zstd
## WiredTiger Vendored Test Libraries
The following Python libraries are transitively included by WiredTiger,
The following libraries are transitively included by WiredTiger,
and are used by that component for testing. They don't appear in
released binary artifacts.
| Name |
| ------------------------ |
| concurrencytest |
| discover |
| nlohmann.json.decomposed |
| pyiso8601 |
| subunit |
| testing-cabal/extras |
| testscenarios |
| testtools |
| Name |
| -------------------------- |
| nlohmann/json@3.10.5 |
| pypi/concurrencytest@0.1.2 |
| pypi/discover@0.4.0 |
| pypi/extras@0.0.3 |
| pypi/iso8601@2.1.0 |
| pypi/python-subunit@1.4.4 |
| pypi/testscenarios@0.4 |
| pypi/testtools@2.7.1 |
## Dynamically Linked Libraries

View File

@ -4777,7 +4777,7 @@ def doConfigure(myenv):
myenv.AppendUnique(
CCFLAGS=["-ffunction-sections"],
LINKFLAGS=[
"-Wl,--symbol-ordering-file=symbols.orderfile",
"-Wl,--symbol-ordering-file=buildscripts/symbols.orderfile",
"-Wl,--no-warn-symbol-ordering",
],
)

View File

@ -9,6 +9,5 @@ exports_files([
sh_binary(
name = "lint",
srcs = ["lint.sh"],
args = ["//..."],
visibility = ["//visibility:public"],
)

View File

@ -2364,12 +2364,40 @@ selects.config_setting_group(
# symbol reordering options
# --------------------------------------
selects.config_setting_group(
name = "symbol_ordering_file_enabled_al2023",
match_all = [
"@platforms//os:linux",
"//bazel/platforms:amazon_linux_2023",
":opt_any",
":linker_lld",
],
)
selects.config_setting_group(
name = "not_amazon_linux_2023",
match_any = [
"//bazel/platforms:ubuntu18",
"//bazel/platforms:ubuntu20",
"//bazel/platforms:ubuntu22",
"//bazel/platforms:ubuntu24",
"//bazel/platforms:amazon_linux_2",
"//bazel/platforms:debian10",
"//bazel/platforms:debian12",
"//bazel/platforms:rhel8",
"//bazel/platforms:rhel9",
"//bazel/platforms:suse12",
"//bazel/platforms:suse15",
],
)
selects.config_setting_group(
name = "symbol_ordering_file_enabled",
match_all = [
"@platforms//os:linux",
":opt_any",
":linker_lld",
"//bazel/config:not_amazon_linux_2023",
],
)

View File

@ -1,12 +1,15 @@
def _coverity_toolchain(ctx):
result = ctx.execute([
"ls",
"/data/cov-sa/bin/cov-build",
])
retCode = 1
if "COVERITY_INSTALL_ROOT" in ctx.os.environ:
result = ctx.execute([
"ls",
ctx.getenv("COVERITY_INSTALL_ROOT") + "/bin/cov-build",
])
retCode = result.return_code
if result.return_code == 0:
if retCode == 0:
ctx.report_progress("extracting coverity rules...")
result = ctx.download_and_extract("file:///data/cov-sa/bazel/rules_coverity.tar.gz")
result = ctx.download_and_extract("file://" + ctx.getenv("COVERITY_INSTALL_ROOT") + "/bazel/rules_coverity.tar.gz")
else:
ctx.template(
"coverity/BUILD.bazel",

View File

@ -1,2 +1,8 @@
# placeholder for bazel/wrapper_hook/lint.py
echo "No linter errors found!"
if [[ $1 == "ALL_PASSING" ]]; then
echo "No linter errors found!"
exit 0
fi
echo "Linter run failed, see details above"
exit 1

View File

@ -1358,12 +1358,17 @@ THIN_LTO_FLAGS = select({
SYMBOL_ORDER_COPTS = select({
"//bazel/config:symbol_ordering_file_enabled": ["-ffunction-sections"],
"//bazel/config:symbol_ordering_file_enabled_al2023": ["-ffunction-sections"],
"//conditions:default": [],
})
SYMBOL_ORDER_LINKFLAGS = select({
"//bazel/config:symbol_ordering_file_enabled": [
"-Wl,--symbol-ordering-file=$(location //:symbols.orderfile)",
"-Wl,--symbol-ordering-file=$(location //buildscripts:symbols.orderfile)",
"-Wl,--no-warn-symbol-ordering",
],
"//bazel/config:symbol_ordering_file_enabled_al2023": [
"-Wl,--symbol-ordering-file=$(location //buildscripts:symbols-al2023.orderfile)",
"-Wl,--no-warn-symbol-ordering",
],
"//conditions:default": [],
@ -1385,7 +1390,8 @@ SHARED_ARCHIVE_LINKFLAGS = select({
})
SYMBOL_ORDER_FILES = [
"//:symbols.orderfile",
"//buildscripts:symbols.orderfile",
"//buildscripts:symbols-al2023.orderfile",
]
# Passed to both the compiler and linker
@ -1683,6 +1689,7 @@ def mongo_cc_library(
no_undefined_ref_DO_NOT_USE = True,
linkshared = False,
skip_windows_crt_flags = False,
win_def_file = None,
**kwargs):
"""Wrapper around cc_library.
@ -1952,6 +1959,7 @@ def mongo_cc_library(
}),
additional_linker_inputs = additional_linker_inputs + MONGO_GLOBAL_ADDITIONAL_LINKER_INPUTS,
exec_properties = exec_properties,
win_def_file = win_def_file,
)
shared_library = select({

View File

@ -113,8 +113,6 @@ def list_files_without_targets(
# TODO(SERVER-101361): Remove the exemptions below once resolved.
"src/mongo/db/auth/authz_manager_external_state_local.cpp",
"src/mongo/db/auth/authz_manager_external_state_s.cpp",
# TODO(SERVER-101362): Remove the exemptions below once resolved.
"src/mongo/db/exec/expression/evaluate_index_test.cpp",
# TODO(SERVER-101364): Remove the exemptions below once resolved.
"src/mongo/db/ftdc/ftdc_system_stats_freebsd.cpp",
"src/mongo/db/ftdc/ftdc_system_stats_macOS.cpp",
@ -197,25 +195,25 @@ def list_files_without_targets(
return True
def run_rules_lint(bazel_bin, args):
def run_rules_lint(bazel_bin, args) -> bool:
if platform.system() == "Windows":
print("eslint not supported on windows")
sys.exit(1)
return False
if "--fix" in args:
create_build_files_in_new_js_dirs()
files_with_targets = list_files_with_targets(bazel_bin)
if not list_files_without_targets(files_with_targets, "C++", "cpp", ["src/mongo"]):
sys.exit(1)
return False
if not list_files_without_targets(
files_with_targets, "javascript", "js", ["src/mongo", "jstests"]
):
sys.exit(1)
return False
if not check_for_missing_test_stubs():
exit(1)
return False
# Default to linting everything if no path was passed in
if len([arg for arg in args if not arg.startswith("--")]) == 0:
@ -324,6 +322,7 @@ def run_rules_lint(bazel_bin, args):
)
else:
print(f"ERROR: unknown fix type {fix}", file=sys.stderr)
sys.exit(1)
return False
elif failing_reports != 0:
sys.exit(1)
return False
return True

View File

@ -97,7 +97,8 @@ def test_runner_interface(args, autocomplete_query, get_buildozer_output=get_bui
if lint_target:
command_start_index = args.index("lint") + 1
run_rules_lint(args[0], args[command_start_index:])
if run_rules_lint(args[0], args[command_start_index:]):
return ["run", "lint", "--", "ALL_PASSING"]
return args[1:command_start_index]
if skip_plus_interface and not autocomplete_query:

View File

@ -4,6 +4,8 @@ load("@npm//:eslint/package_json.bzl", "bin")
exports_files([
"cheetah_source_generator.py",
"clang_tidy_config_gen.py",
"symbols.orderfile",
"symbols-al2023.orderfile",
])
py_binary(
@ -254,6 +256,10 @@ py_binary(
"jsonschema",
group = "build-metrics",
),
dependency(
"license-expression",
group = "lint",
),
],
)

View File

@ -79,7 +79,6 @@ VARIANT_TASK_FACTOR_OVERRIDES = {
"factor": 0.25,
},
{"task": "embedded_router_jscore_passthrough_with_config_shard", "factor": 0.25},
{"task": "embedded_router_sharded_collections_jscore_passthrough", "factor": 0.25},
{"task": "fcv_upgrade_downgrade_sharded_collections_jscore_passthrough", "factor": 0.25},
{"task": "fcv_upgrade_downgrade_sharding_jscore_passthrough", "factor": 0.25},
{"task": "fle2_sharding", "factor": 0.25},

View File

@ -61,8 +61,8 @@ def generate_version_expansions():
raise ValueError("Unable to parse version from stdin and no version.json provided")
if version_parts[0]:
expansions["suffix"] = "latest"
expansions["src_suffix"] = "latest"
expansions["suffix"] = "v8.1-latest"
expansions["src_suffix"] = "v8.1-latest"
expansions["is_release"] = "false"
else:
expansions["suffix"] = version_line

View File

@ -1650,7 +1650,7 @@ def _bind_feature_flags(ctxt, param):
ctxt.add_feature_flag_default_true_missing_version(param)
return None
ast_param.cpp_vartype = "::mongo::LegacyContextUnawareFCVGatedFeatureFlag"
ast_param.cpp_vartype = "::mongo::FCVGatedFeatureFlag"
expr.expr = f'{param.default.literal}, "{param.version or ""}"_sd'
else:
# Feature flags that should not be FCV gated must not have a version

View File

@ -1348,12 +1348,12 @@ class TestGenerator(testcase.IDLTestcase):
)
self.assertStringsInFile(
header,
["mongo::LegacyContextUnawareFCVGatedFeatureFlag gToaster;"],
["mongo::FCVGatedFeatureFlag gToaster;"],
)
self.assertStringsInFile(
source,
[
'mongo::LegacyContextUnawareFCVGatedFeatureFlag gToaster{false, ""_sd};',
'mongo::FCVGatedFeatureFlag gToaster{false, ""_sd};',
'<FeatureFlagServerParameter>("featureFlagToaster", gToaster);',
],
)
@ -1375,12 +1375,12 @@ class TestGenerator(testcase.IDLTestcase):
)
self.assertStringsInFile(
header,
["mongo::LegacyContextUnawareFCVGatedFeatureFlag gToaster;"],
["mongo::FCVGatedFeatureFlag gToaster;"],
)
self.assertStringsInFile(
source,
[
'mongo::LegacyContextUnawareFCVGatedFeatureFlag gToaster{true, "123"_sd};',
'mongo::FCVGatedFeatureFlag gToaster{true, "123"_sd};',
'<FeatureFlagServerParameter>("featureFlagToaster", gToaster);',
],
)

View File

@ -1,3 +1,7 @@
version: 1.0.0
options:
no_parent_owners: true
filters:
- "generated_suites/sharding_task_executor_pool_size*":
approvers:
- 10gen/server-networking-and-observability

View File

@ -16,6 +16,7 @@ executor:
clusterType: standalone
internalQueryAppendIdToSetWindowFieldsSort: true
internalQueryMaxAllowedDensifyDocs: 1000
mongosBinVersion: last-continuous
traceExceptions: false
useRandomBinVersionsWithinReplicaSet: last-continuous
nodb: ""

View File

@ -16,6 +16,7 @@ executor:
clusterType: standalone
internalQueryAppendIdToSetWindowFieldsSort: true
internalQueryMaxAllowedDensifyDocs: 1000
mongosBinVersion: last-lts
traceExceptions: false
useRandomBinVersionsWithinReplicaSet: last-lts
nodb: ""

View File

@ -16,6 +16,7 @@ executor:
clusterType: standalone
internalQueryAppendIdToSetWindowFieldsSort: true
internalQueryMaxAllowedDensifyDocs: 1000
mongosBinVersion: last-continuous
traceExceptions: false
useRandomBinVersionsWithinReplicaSet: last-continuous
nodb: ""

View File

@ -16,6 +16,7 @@ executor:
clusterType: standalone
internalQueryAppendIdToSetWindowFieldsSort: true
internalQueryMaxAllowedDensifyDocs: 1000
mongosBinVersion: last-lts
traceExceptions: false
useRandomBinVersionsWithinReplicaSet: last-lts
nodb: ""

View File

@ -16,6 +16,7 @@ executor:
clusterType: standalone
internalQueryAppendIdToSetWindowFieldsSort: true
internalQueryMaxAllowedDensifyDocs: 1000
mongosBinVersion: last-continuous
traceExceptions: false
useRandomBinVersionsWithinReplicaSet: last-continuous
nodb: ""

View File

@ -16,6 +16,7 @@ executor:
clusterType: standalone
internalQueryAppendIdToSetWindowFieldsSort: true
internalQueryMaxAllowedDensifyDocs: 1000
mongosBinVersion: last-lts
traceExceptions: false
useRandomBinVersionsWithinReplicaSet: last-lts
nodb: ""

View File

@ -20,6 +20,7 @@ executor:
initialSync: 4
rollback: 0
verbosity: 3
mongosBinVersion: last-continuous
setParameters:
numInitialSyncAttempts: 10000000
useRandomBinVersionsWithinReplicaSet: last-continuous

View File

@ -20,6 +20,7 @@ executor:
initialSync: 4
rollback: 0
verbosity: 3
mongosBinVersion: last-lts
setParameters:
numInitialSyncAttempts: 10000000
useRandomBinVersionsWithinReplicaSet: last-lts

View File

@ -11,6 +11,7 @@ executor:
shell_options:
global_vars:
TestData:
mongosBinVersion: last-continuous
useRandomBinVersionsWithinReplicaSet: last-continuous
nodb: ""
matrix_suite: true

View File

@ -11,6 +11,7 @@ executor:
shell_options:
global_vars:
TestData:
mongosBinVersion: last-lts
useRandomBinVersionsWithinReplicaSet: last-lts
nodb: ""
matrix_suite: true

View File

@ -0,0 +1,26 @@
##########################################################
# THIS IS A GENERATED FILE -- DO NOT MODIFY.
# IF YOU WISH TO MODIFY THIS SUITE, MODIFY THE CORRESPONDING MATRIX SUITE MAPPING FILE
# AND REGENERATE THE MATRIX SUITES.
#
# matrix suite mapping file: buildscripts/resmokeconfig/matrix_suites/mappings/sharding_task_executor_pool_size_8.yml
# regenerate matrix suites: buildscripts/resmoke.py generate-matrix-suites && bazel run //:format
##########################################################
executor:
archive:
tests:
- jstests/sharding/*reshard*.js
config:
shell_options:
global_vars:
TestData:
setParametersMongos:
taskExecutorPoolSize: 8
nodb: ""
matrix_suite: true
selector:
exclude_files:
- jstests/sharding/**/libs/**/*.js
roots:
- jstests/sharding/**/*.js
test_kind: js_test

View File

@ -49,6 +49,9 @@ filters:
- "sharding_pqs*":
approvers:
- 10gen/query-execution-query-settings
- "sharding_task_executor_pool_size*":
approvers:
- 10gen/server-networking-and-observability
- "update_fuzzer*":
approvers:
- 10gen/query-execution-write-exec

View File

@ -0,0 +1,3 @@
base_suite: sharding
overrides:
- "networking.task_executor_pool_size_8"

View File

@ -11,6 +11,9 @@ filters:
- "multiplan_single_solutions.yml":
approvers:
- 10gen/query-optimization
- "networking.yml":
approvers:
- 10gen/server-networking-and-observability
- "query_settings.yml":
approvers:
- 10gen/query-execution-query-settings

View File

@ -161,6 +161,9 @@
global_vars:
TestData:
useRandomBinVersionsWithinReplicaSet: "last-lts"
# Since a test in replica_sets could start up a sharded cluster, we
# need to set this variable so that the right version of mongos is chosen.
mongosBinVersion: "last-lts"
- name: replica_sets_multiversion_testdata_last_continuous
value:
@ -170,6 +173,9 @@
global_vars:
TestData:
useRandomBinVersionsWithinReplicaSet: "last-continuous"
# Since a test in replica_sets could start up a sharded cluster, we
# need to set this variable so that the right version of mongos is chosen.
mongosBinVersion: "last-continuous"
- name: rollback_multiversion_fuzzer_testdata_last_lts
value:

View File

@ -0,0 +1,11 @@
### Overrides for matrix suites that set networking-related parameters.
- name: task_executor_pool_size_8
value:
executor:
config:
shell_options:
nodb: ""
global_vars:
TestData:
setParametersMongos:
taskExecutorPoolSize: 8

View File

@ -91,7 +91,6 @@ selector:
- jstests/aggregation/expressions/substrbytes.js
- jstests/aggregation/sources/setWindowFields/set_union.js
- jstests/aggregation/accumulators/set_union.js
- jstests/aggregation/sources/graphLookup/spilling.js
- jstests/aggregation/expressions/current_date.js
# These tests run larger aggregations that can take a long time and can repeatedly get interrupted by config transitions.

View File

@ -36,6 +36,7 @@ selector:
# mongos has no system.profile collection.
- requires_profiling
- assumes_unsharded_collection
- config_shard_incompatible
executor:
archive:

View File

@ -46,6 +46,7 @@ selector:
- requires_profiling
- assumes_unsharded_collection
- requires_getmore
- config_shard_incompatible
executor:
archive:

View File

@ -1,114 +0,0 @@
test_kind: js_test
selector:
roots:
- jstests/core/**/*.js
- jstests/fle2/**/*.js
- src/mongo/db/modules/*/jstests/fle2/**/*.js
exclude_files:
# These tests are run in embedded_router_jscore_txns.
- jstests/core/txns/**/*.js
# The following tests fail because a certain command or functionality is not supported on
# mongos. This command or functionality is placed in a comment next to the failing test.
- jstests/core/**/apitest_db.js # serverStatus output doesn't have storageEngine.
- jstests/core/**/bypass_doc_validation.js # sharded $out output not permitted
- jstests/core/**/check_shard_index.js # checkShardingIndex.
- jstests/core/**/compact_keeps_indexes.js # compact.
- jstests/core/**/currentop.js # uses fsync.
- jstests/core/**/dbhash.js # dbhash.
- jstests/core/**/fsync.js # uses fsync.
- jstests/core/**/geo_s2cursorlimitskip.js # profiling.
- jstests/core/**/geo_update_btree2.js # notablescan.
- jstests/core/**/index9.js # "local" database.
- jstests/core/**/queryoptimizera.js # "local" database.
- jstests/core/**/startup_log.js # "local" database.
- jstests/core/**/query/top/top.js # top.
- jstests/core/**/explain_missing_database.js # Behavior with no db different on mongos.
- jstests/core/**/geo_2d_explain.js # executionSuccess in different spot in explain().
- jstests/core/**/geo_s2explain.js # inputStage in different spot in explain().
- jstests/core/**/geo_s2sparse.js # keysPerIndex in different spot in validate().
- jstests/core/**/operation_latency_histogram.js # Stats are counted differently on mongos, SERVER-24880.
- jstests/core/**/or_to_in.js # queryPlanner in different spot in explain()
# The following tests fail because they count indexes. These counts do not take into account the
# additional hashed shard key indexes that are automatically added by this passthrough.
- jstests/core/**/apitest_dbcollection.js
- jstests/core/**/bad_index_plugin.js
- jstests/core/**/create_indexes.js
- jstests/core/**/list_indexes_non_existent_ns.js
- jstests/core/**/mr_preserve_indexes.js
# TODO SERVER-29449: Re-enable once 'executionStats.nReturned' is correct for sharded queries
# with a limit or for distinct commands.
- jstests/core/**/distinct_index1.js
- jstests/core/**/explain/explain1.js
- jstests/core/**/explain4.js
- jstests/core/**/sortk.js
# TODO SERVER-32563: The implementation of explain for the count command is incorrect on sharded
# collections.
- jstests/core/**/explain/explain_count.js
- jstests/core/**/explain_server_params.js
# TODO SERVER-32311: These tests use plan stage helpers which can't handle sharded explain output.
- jstests/core/**/expr_index_use.js
- jstests/core/**/index_multikey.js
- jstests/core/**/query/explain/optimized_match_explain.js
- jstests/core/**/sort_array.js
# Embedded router doesn't support correct UpdateMetrics yet.
# TODO SERVER-82303 Remove this once we have role-aware metrics.
- jstests/core/query/update/update_metrics.js
- jstests/core/query/find_and_modify/find_and_modify_metrics.js
# Embedded router doesn't support getClusterParameter on router yet.
- src/mongo/db/modules/enterprise/jstests/audit/cluster_server_parameters.js
- src/mongo/db/modules/enterprise/jstests/audit/audit_config_upgrade_downgrade.js
- src/mongo/db/modules/enterprise/jstests/audit/set_audit_config_cluster_parameter.js
- src/mongo/db/modules/enterprise/jstests/fcbis/fcbis_cluster_server_parameters.js
# Embedded router doesn't support FLE yet.
- src/mongo/db/modules/enterprise/jstests/fle2/**/*.js
exclude_with_any_tags:
- assumes_standalone_mongod
- assumes_against_mongod_not_mongos
# This passthrough implicitly shards the accessed collections. Do not run tests where collections
# can't be created on `getCollection` call.
- assumes_no_implicit_collection_creation_on_get_collection
# Tests tagged with the following will fail because they assume collections are not sharded.
- assumes_no_implicit_collection_creation_after_drop
- assumes_no_implicit_index_creation
- assumes_unsharded_collection
- cannot_create_unique_index_when_using_hashed_shard_key
# Capped collections cannot be sharded
- requires_capped
# system.profile collection doesn't exist on mongos.
- requires_profiling
# Prepare is not a command on mongos.
- uses_prepare_transaction
executor:
archive:
hooks:
- CheckReplDBHash
- CheckMetadataConsistencyInBackground
- ValidateCollections
config:
shell_options:
eval: await import("jstests/libs/override_methods/implicitly_shard_accessed_collections.js")
hooks:
- class: CheckReplDBHash
- class: CheckMetadataConsistencyInBackground
- class: ValidateCollections
- class: CheckOrphansDeleted
- class: CleanEveryN
n: 20
fixture:
class: ShardedClusterFixture
mongod_options:
set_parameters:
enableTestCommands: 1
featureFlagRouterPort: 1
num_rs_nodes_per_shard: 2
num_shards: 2
embedded_router: 1

View File

@ -12,7 +12,6 @@ selector:
- jstests/libs/property_test_helpers/pbt_self_test.js
- src/mongo/db/modules/*/jstests/hot_backups/**/*.js
- src/mongo/db/modules/*/jstests/live_import/*.js
- src/mongo/db/modules/*/jstests/live_restore/*.js
- src/mongo/db/modules/*/jstests/no_passthrough/*.js
# Self-tests for the Concurrency testing framework are run as part of this test suite.
@ -28,7 +27,6 @@ executor:
- jstests/noPassthrough/backup*.js
- jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js
- jstests/noPassthrough/wt_unclean_shutdown.js
- src/mongo/db/modules/*/jstests/live_restore/*.js
- src/mongo/db/modules/enterprise/jstests/hot_backups/**/*.js
config:
shell_options:

View File

@ -16,6 +16,8 @@ selector:
# The NoOp write from linearizable getMores will cause awaitdata_getmore_cmd.js to loop
# indefinitely as it tails the oplog.
- jstests/core/**/awaitdata_getmore_cmd.js
# express_pbt.js takes a long time and consistently times out
- jstests/core/index/express_pbt.js
exclude_with_any_tags:
##
# The next three tags correspond to the special errors thrown by the

View File

@ -49,6 +49,11 @@ selector:
- jstests/core/**/list_collections_filter.js # Temporary collections are dropped on failover.
- jstests/core/**/startup_log.js # Checks pid, which is different on each server.
# TODO (SERVER-102765): Remove once create no longer return a false ok.
- jstests/core/catalog/agg_list_cluster_catalog_sharding_fields.js
- jstests/core/catalog/agg_list_cluster_catalog_with_match.js
- jstests/core/catalog/agg_list_cluster_catalog.js
exclude_with_any_tags:
- assumes_standalone_mongod
##

View File

@ -20,6 +20,10 @@ selector:
# TODO SERVER-85395: remove the following exclusion together with the test
# Expects the collection creation options not to change.
- jstests/sharding/create_unsplittable_collection_on_shard.js
# TODO SERVER-102058: remove the following exclusion after fixing this ticket
# Create is not idempotent when the failpoint `clusterAllCollectionsByDefault` is enabled.
- jstests/sharding/mongos_writes_wait_for_write_concern_sharded.js
- jstests/sharding/mongos_writes_wait_for_write_concern_unsharded.js
exclude_with_any_tags:
- expects_explicit_underscore_id_index

View File

@ -43,6 +43,7 @@ selector:
- jstests/core/query/hashed_partial_and_sparse_index.js
- jstests/core/query/distinct/distinct_with_hashed_index.js
- jstests/core/query/distinct/distinct_for_passthrough.js
- jstests/core/query/index_with_hashed_path_prefix_of_nonhashed_path.js
- jstests/core/query/internal_hash_eq/**/*.js
- jstests/core/query/project/projection_with_hashed_index.js
- jstests/core/query/single_field_hashed_index.js

View File

@ -586,3 +586,4 @@ def _add_testing_set_parameters(suite_set_parameters):
# The placeholder is needed so older versions don't have this option won't have this value set.
suite_set_parameters.setdefault("backtraceLogFile", True)
suite_set_parameters.setdefault("disableTransitionFromLatestToLastContinuous", False)
suite_set_parameters.setdefault("oplogApplicationEnforcesSteadyStateConstraints", True)

View File

@ -16,7 +16,10 @@ from buildscripts.resmokelib.testing.testcases.interface import TestCase
# This lock prevents different resmoke jobs from symbolizing stacktraces concurrently,
# which includes downloading the debug symbols, that can be reused by other resmoke jobs
_lock = Lock()
_symbolizer_lock = Lock()
# A lock for avoiding concurrent access to PROCESSED_FILES_LIST_FILE_PATH
_processed_files_lock = Lock()
STACKTRACE_FILE_EXTENSION = ".stacktrace"
SYMBOLIZE_RETRY_TIMEOUT_SECS = timedelta(minutes=4).total_seconds()
@ -109,23 +112,23 @@ class ResmokeSymbolizer:
if dbpath is None:
return
with _lock:
test.logger.info("Looking for stacktrace files in '%s'", dbpath)
files = self.collect_stacktrace_files(dbpath)
if not files:
test.logger.info("No failure logs/stacktrace files found, skipping symbolization")
return
test.logger.info("Looking for stacktrace files in '%s'", dbpath)
files = self.collect_stacktrace_files(dbpath)
if not files:
test.logger.info("No failure logs/stacktrace files found, skipping symbolization")
return
test.logger.info("Found stacktrace files: %s", files)
# To avoid performing the same actions on these files again, we mark them as processed
self.file_service.add_to_processed_files(files)
self.file_service.write_processed_files(PROCESSED_FILES_LIST_FILE_PATH)
test.logger.info("Found stacktrace files: %s", files)
# To avoid performing the same actions on these files again, we mark them as processed
self.file_service.add_to_processed_files(files)
self.file_service.write_processed_files(PROCESSED_FILES_LIST_FILE_PATH)
if test.return_code == 0:
test.logger.info("Test succeeded, skipping symbolization")
return
if test.return_code == 0:
test.logger.info("Test succeeded, skipping symbolization")
return
test.logger.info("Symbolization process started.")
test.logger.info("Starting symbolization once no other tests are being symbolized.")
with _symbolizer_lock:
test.logger.info("\nBEGIN Symbolization")
start_time = time.perf_counter()
@ -230,9 +233,10 @@ class FileService:
:param: path to a file where we store processed files info.
"""
if os.path.exists(file_path):
with open(file_path, "r") as file:
return {line for line in set(file.readlines()) if line}
with _processed_files_lock:
if os.path.exists(file_path):
with open(file_path, "r") as file:
return {line for line in set(file.readlines()) if line}
return set()
def add_to_processed_files(self, files: List[str]) -> None:
@ -252,8 +256,9 @@ class FileService:
:param file_path: path to a file where we store processed files info
:return: None
"""
with open(file_path, "w") as file:
file.write("\n".join(self._processed_files))
with _processed_files_lock:
with open(file_path, "w") as file:
file.write("\n".join(self._processed_files))
def is_processed(self, file: str) -> bool:
"""

View File

@ -5,6 +5,7 @@ import sys
from typing import List
import jsonschema
from license_expression import get_spdx_licensing
from referencing import Registry, Resource
BOM_SCHEMA_LOCATION = os.path.join("buildscripts", "tests", "sbom_linter", "bom-1.5.schema.json")
@ -32,6 +33,7 @@ MISSING_TEAM_ERROR = "Component must include a 'internal:team_responsible' prope
SCHEMA_MATCH_FAILURE = "File did not match the CycloneDX schema"
MISSING_VERSION_IN_SBOM_COMPONENT_ERROR = "Component must include a version."
MISSING_VERSION_IN_IMPORT_FILE_ERROR = "Missing version in the import file: "
MISSING_LICENSE_IN_SBOM_COMPONENT_ERROR = "Component must include a license."
COULD_NOT_FIND_OR_READ_SCRIPT_FILE_ERROR = "Could not find or read the import script file"
VERSION_MISMATCH_ERROR = "Version mismatch: "
@ -115,30 +117,48 @@ def strip_extra_prefixes(string_with_prefix: str) -> str:
return string_with_prefix.removeprefix("mongo/").removeprefix("v")
def validate_evidence(component: dict, third_party_libs: set, error_manager: ErrorManager) -> None:
if "evidence" not in component or "occurrences" not in component["evidence"]:
error_manager.append_full_error_message(MISSING_EVIDENCE_ERROR)
def validate_license(component: dict, error_manager: ErrorManager) -> None:
if "licenses" not in component:
error_manager.append_full_error_message(MISSING_LICENSE_IN_SBOM_COMPONENT_ERROR)
return
occurrences = component["evidence"]["occurrences"]
if not occurrences:
error_manager.append_full_error_message(
"'evidence.occurrences' field must include at least one location."
)
for occurrence in occurrences:
location = occurrence["location"]
valid_license = False
for license in component["licenses"]:
if "expression" in license:
expression = license.get("expression")
elif "license" in license:
if "id" in license["license"]:
# Should be a valid SPDX license ID
expression = license["license"].get("id")
elif "name" in license["license"]:
# If SPDX does not define the license used, the name field may be used to provide the license name
valid_license = True
if not os.path.exists(location) and not SKIP_FILE_CHECKING:
error_manager.append_full_error_message("location does not exist in repo.")
if not valid_license:
licensing_validate = get_spdx_licensing().validate(expression, validate=True)
# ExpressionInfo(
# original_expression='',
# normalized_expression='',
# errors=[],
# invalid_symbols=[]
# )
valid_license = not licensing_validate.errors or not licensing_validate.invalid_symbols
if not valid_license:
error_manager.append_full_error_message(licensing_validate)
return
if location.startswith(THIRD_PARTY_LOCATION_PREFIX):
lib = location.removeprefix(THIRD_PARTY_LOCATION_PREFIX)
if lib in third_party_libs:
third_party_libs.remove(lib)
def validate_evidence(component: dict, third_party_libs: set, error_manager: ErrorManager) -> None:
if component["scope"] == "required":
if "evidence" not in component or "occurrences" not in component["evidence"]:
error_manager.append_full_error_message(MISSING_EVIDENCE_ERROR)
return
validate_location(component, third_party_libs, error_manager)
def validate_properties(component: dict, error_manager: ErrorManager) -> None:
has_team_responsible_property = False
has_team_responsible_property = False or component["scope"] == "excluded"
script_path = ""
if "properties" in component:
for prop in component["properties"]:
@ -159,14 +179,26 @@ def validate_properties(component: dict, error_manager: ErrorManager) -> None:
if comp_version == "Unknown" or script_path == "":
return
# Include the .pedigree.descendants[0] version for version matching
if (
"pedigree" in component
and "descendants" in component["pedigree"]
and "version" in component["pedigree"]["descendants"][0]
):
comp_pedigree_version = component["pedigree"]["descendants"][0]["version"]
else:
comp_pedigree_version = ""
# At this point a version is attempted to be read from the import script file
script_version = get_script_version(script_path, "VERSION", error_manager)
if script_version == "":
error_manager.append_full_error_message(MISSING_VERSION_IN_IMPORT_FILE_ERROR + script_path)
elif strip_extra_prefixes(script_version) != strip_extra_prefixes(comp_version):
elif strip_extra_prefixes(script_version) != strip_extra_prefixes(
comp_version
) and strip_extra_prefixes(script_version) != strip_extra_prefixes(comp_pedigree_version):
error_manager.append_full_error_message(
VERSION_MISMATCH_ERROR
+ f"\nscript version:{script_version}\nsbom version:{comp_version}"
+ f"\nscript version:{script_version}\nsbom component version:{comp_version}\nsbom component pedigree version:{comp_pedigree_version}"
)
@ -174,15 +206,37 @@ def validate_component(component: dict, third_party_libs: set, error_manager: Er
error_manager.update_component_attribute(component["name"])
if "scope" not in component:
error_manager.append_full_error_message("component must include a scope.")
elif component["scope"] != "optional":
else:
validate_evidence(component, third_party_libs, error_manager)
validate_properties(component, error_manager)
validate_license(component, error_manager)
if "purl" not in component and "cpe" not in component:
error_manager.append_full_error_message(MISSING_PURL_CPE_ERROR)
error_manager.update_component_attribute("")
def validate_location(component: dict, third_party_libs: set, error_manager: ErrorManager) -> None:
if "evidence" in component:
if "occurrences" not in component["evidence"]:
error_manager.append_full_error_message(
"'evidence.occurrences' field must include at least one location."
)
occurrences = component["evidence"]["occurrences"]
for occurrence in occurrences:
if "location" in occurrence:
location = occurrence["location"]
if not os.path.exists(location) and not SKIP_FILE_CHECKING:
error_manager.append_full_error_message("location does not exist in repo.")
if location.startswith(THIRD_PARTY_LOCATION_PREFIX):
lib = location.removeprefix(THIRD_PARTY_LOCATION_PREFIX)
if lib in third_party_libs:
third_party_libs.remove(lib)
def lint_sbom(
input_file: str, output_file: str, third_party_libs: set, should_format: bool
) -> ErrorManager:
@ -257,8 +311,6 @@ def main() -> int:
)
# the only files in this dir that are not third party libs
third_party_libs.remove("scripts")
# wiredtiger will not be included in the sbom since it is considered part of the server
third_party_libs.remove("wiredtiger")
# the only files in the sasl dir are BUILD files to setup the sasl library in Windows
third_party_libs.remove("sasl")
error_manager = lint_sbom(input_file, output_file, third_party_libs, should_format)

File diff suppressed because it is too large Load Diff

View File

@ -171,7 +171,7 @@ def send_failure_message_to_slack(expansions):
evg_api = RetryingEvergreenApi.get_api(config_file=".evergreen.yml")
evg_api.send_slack_message(
target="#sdp-triager",
target="#devprod-build-automation",
msg=error_msg,
)
@ -481,7 +481,7 @@ def main():
):
return
# Send a failure message to #sdp-triager if the Copybara sync task fails.
# Send a failure message to #devprod-build-automation if the Copybara sync task fails.
send_failure_message_to_slack(expansions)

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
@ -14,6 +14,11 @@
"name": "kafka",
"version": "",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -34,4 +39,4 @@
}
}
]
}
}

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
@ -14,6 +14,11 @@
"version": "v2.0.2",
"scope": "required",
"cpe": "test_cpe",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"properties": [
{
"name": "internal:team_responsible",
@ -33,4 +38,4 @@
}
}
]
}
}

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
@ -16,6 +16,11 @@
"name": "kafka",
"version": "2.0.2",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -36,6 +41,13 @@
"name": "protobuf",
"version": "v4.25.0",
"scope": "required",
"licenses": [
{
"license": {
"id": "BSD-3-Clause"
}
}
],
"purl": "test_purl",
"properties": [
{
@ -58,6 +70,13 @@
"name": "unicode",
"version": "8.0",
"scope": "optional",
"licenses": [
{
"license": {
"id": "Unicode-DFS-2016"
}
}
],
"purl": "test_purl",
"properties": [
{
@ -67,4 +86,4 @@
]
}
]
}
}

View File

@ -0,0 +1,43 @@
{
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"version": "v2.0.2",
"licenses": [
{
"expression": "xBSD-3-Clause"
}
],
"scope": "required",
"cpe": "test_cpe",
"properties": [
{
"name": "internal:team_responsible",
"value": "server_security"
},
{
"name": "import_script_path",
"value": "buildscripts/tests/sbom_linter/inputs/kafka_valid_import.sh"
}
],
"evidence": {
"occurrences": [
{
"location": "src/third_party/librdkafka"
}
]
}
}
]
}

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
@ -14,6 +14,11 @@
"name": "kafka",
"scope": "required",
"cpe": "test_cpe",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"properties": [
{
"name": "internal:team_responsible",
@ -53,4 +58,4 @@
]
}
]
}
}

View File

@ -0,0 +1,74 @@
{
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"version": "v2.0.2",
"scope": "required",
"cpe": "test_cpe",
"properties": [
{
"name": "internal:team_responsible",
"value": "server_security"
},
{
"name": "import_script_path",
"value": "buildscripts/tests/sbom_linter/inputs/kafka_valid_import.sh"
}
],
"evidence": {
"occurrences": [
{
"location": "src/third_party/librdkafka"
}
]
}
},
{
"type": "library",
"name": "protobuf",
"version": "v4.25.0",
"scope": "required",
"purl": "test_purl",
"properties": [
{
"name": "internal:team_responsible",
"value": "server_security"
},
{
"name": "import_script_path",
"value": "buildscripts/tests/sbom_linter/inputs/import_script_with_mongo_prefix_version.sh"
}
],
"evidence": {
"occurrences": [
{
"location": "src/third_party/protobuf"
}
]
}
},
{
"type": "library",
"name": "unicode",
"version": "8.0",
"scope": "optional",
"purl": "test_purl",
"properties": [
{
"name": "internal:team_responsible",
"value": "server_security"
}
]
}
]
}

View File

@ -2,17 +2,22 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -59,4 +64,4 @@
]
}
]
}
}

View File

@ -2,17 +2,22 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"evidence": {
"occurrences": [
@ -54,4 +59,4 @@
]
}
]
}
}

View File

@ -2,17 +2,22 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -29,4 +34,4 @@
}
}
]
}
}

View File

@ -0,0 +1,51 @@
{
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"bom-ref": "pkg:github/aappleby/smhasher@a6bd3ce7be8ad147ea820a7cf6229a975c0c96bb",
"supplier": {
"name": "Austin Appleby"
},
"author": "Austin Appleby",
"group": "aappleby",
"name": "MurmurHash3",
"version": "a6bd3ce7be8ad147ea820a7cf6229a975c0c96bb",
"licenses": [
{
"license": {
"name": "Public Domain"
}
}
],
"copyright": "MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.",
"purl": "pkg:github/aappleby/smhasher@a6bd3ce7be8ad147ea820a7cf6229a975c0c96bb",
"properties": [
{
"name": "internal:team_responsible",
"value": "Storage Execution"
},
{
"name": "info_link",
"value": "https://github.com/aappleby/smhasher/blob/a6bd3ce/"
}
],
"evidence": {
"occurrences": [
{
"location": "src/third_party/murmurhash3"
}
]
},
"scope": "required"
}
]
}

View File

@ -0,0 +1,51 @@
{
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"version": "v2.0.0",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"pedigree": {
"descendants": [
{
"type": "library",
"name": "kafka-fork",
"version": "v2.0.2"
}
]
},
"properties": [
{
"name": "internal:team_responsible",
"value": "server_security"
},
{
"name": "import_script_path",
"value": "buildscripts/tests/sbom_linter/inputs/kafka_valid_import.sh"
}
],
"evidence": {
"occurrences": [
{
"location": "src/third_party/kafka"
}
]
}
}
]
}

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
@ -14,6 +14,11 @@
"name": "kafka",
"version": "2.0.2",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -34,4 +39,4 @@
}
}
]
}
}

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
@ -14,6 +14,11 @@
"name": "kafka",
"version": "2.0.2",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -34,4 +39,4 @@
}
}
]
}
}

View File

@ -2,11 +2,11 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
@ -14,6 +14,11 @@
"name": "kafka",
"version": "v4.25.0",
"scope": "required",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"cpe": "test_cpe",
"properties": [
{
@ -34,4 +39,4 @@
}
}
]
}
}

View File

@ -2,17 +2,22 @@
"properties": [
{
"name": "comment",
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.6/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
"value": "SBOM for MDB server product; this file should comply with the format specified here: https://cyclonedx.org/docs/1.5/json/#components_items_publisher; This file is still in development; see https://jira.mongodb.org/browse/DEVPROD-2623 for details."
}
],
"bomFormat": "CycloneDX",
"specVersion": "1.6",
"specVersion": "1.5",
"version": 1,
"components": [
{
"type": "library",
"name": "kafka",
"version": "v2.0.2",
"licenses": [
{
"expression": "BSD-3-Clause"
}
],
"scope": "required",
"cpe": "test_cpe",
"properties": [
@ -38,6 +43,13 @@
"name": "protobuf",
"version": "v4.25.0",
"scope": "required",
"licenses": [
{
"license": {
"id": "BSD-3-Clause"
}
}
],
"purl": "test_purl",
"properties": [
{
@ -61,6 +73,13 @@
"type": "library",
"name": "unicode",
"version": "8.0",
"licenses": [
{
"license": {
"id": "Unicode-DFS-2016"
}
}
],
"scope": "optional",
"purl": "test_purl",
"properties": [

View File

@ -103,6 +103,14 @@ class TestSbom(unittest.TestCase):
error_manager = sbom_linter.lint_sbom(test_file, test_file, third_party_libs, False)
self.assert_message_in_errors(error_manager, sbom_linter.VERSION_MISMATCH_ERROR)
def test_pedigree_version_match(self):
test_file = os.path.join(self.input_dir, "sbom_pedigree_version_match.json")
third_party_libs = {"kafka"}
error_manager = sbom_linter.lint_sbom(test_file, test_file, third_party_libs, False)
if not error_manager.zero_error():
error_manager.print_errors()
self.assertTrue(error_manager.zero_error())
def test_schema_match_failure(self):
test_file = os.path.join(self.input_dir, "sbom_component_name_missing.json")
third_party_libs = {"librdkafka"}
@ -116,3 +124,26 @@ class TestSbom(unittest.TestCase):
self.assert_message_in_errors(
error_manager, sbom_linter.MISSING_VERSION_IN_SBOM_COMPONENT_ERROR
)
def test_missing_license(self):
test_file = os.path.join(self.input_dir, "sbom_missing_license.json")
third_party_libs = {"librdkafka"}
error_manager = sbom_linter.lint_sbom(test_file, test_file, third_party_libs, False)
self.assert_message_in_errors(
error_manager, sbom_linter.MISSING_LICENSE_IN_SBOM_COMPONENT_ERROR
)
def test_invalid_license_expression(self):
test_file = os.path.join(self.input_dir, "sbom_invalid_license_expression.json")
third_party_libs = {"librdkafka"}
error_manager = sbom_linter.lint_sbom(test_file, test_file, third_party_libs, False)
# print(error_manager.errors)
self.assert_message_in_errors(error_manager, "ExpressionInfo")
def test_named_license(self):
test_file = os.path.join(self.input_dir, "sbom_named_license.json")
third_party_libs = {"murmurhash3"}
error_manager = sbom_linter.lint_sbom(test_file, test_file, third_party_libs, False)
if not error_manager.zero_error():
error_manager.print_errors()
self.assertTrue(error_manager.zero_error())

View File

@ -2,7 +2,6 @@ import os.path
import re
import subprocess
import sys
from collections import defaultdict
import structlog
import typer
@ -16,7 +15,6 @@ DEFAULT_LOCAL_EVG_AUTH_CONFIG = os.path.expanduser("~/.evergreen.yml")
DEFAULT_EVG_PROJECT_NAME = "mongodb-mongo-master"
DEFAULT_EVG_NIGHTLY_PROJECT_NAME = "mongodb-mongo-master-nightly"
DEFAULT_EVG_PROJECT_CONFIG = "etc/evergreen.yml"
DEFAULT_EVG_NIGHTLY_PROJECT_CONFIG = "etc/evergreen_nightly.yml"
ALLOWABLE_EVG_VALIDATE_MESSAGE_REGEXES = [
@ -41,76 +39,23 @@ def main(
evg_project_config_map = {evg_project_name: DEFAULT_EVG_NIGHTLY_PROJECT_CONFIG}
if evg_project_name == DEFAULT_EVG_PROJECT_NAME:
evg_project_config_map = {
DEFAULT_EVG_PROJECT_NAME: DEFAULT_EVG_PROJECT_CONFIG,
DEFAULT_EVG_NIGHTLY_PROJECT_NAME: DEFAULT_EVG_NIGHTLY_PROJECT_CONFIG,
}
shared_evg_validate_messages = []
error_on_evg_validate_messages = defaultdict(list)
num_of_projects = len(evg_project_config_map)
evergreen_bin = find_evergreen_binary("evergreen")
for project, project_config in evg_project_config_map.items():
for _, project_config in evg_project_config_map.items():
cmd = [
evergreen_bin,
"--config",
evg_auth_config,
"validate",
"--project",
project,
"evaluate",
"--path",
project_config,
]
LOGGER.info(f"Running command: {cmd}")
result = subprocess.run(cmd, capture_output=True, text=True)
interesting_messages = result.stdout.strip().split("\n")[:-1]
subprocess.run(cmd, capture_output=True, text=True, check=True)
for message in interesting_messages:
if num_of_projects > 1 and any(
regex.match(message)
for regex in ALLOWABLE_IF_NOT_IN_ALL_PROJECTS_EVG_VALIDATE_MESSAGE_REGEXES
):
shared_evg_validate_messages.append(message)
continue
if any(regex.match(message) for regex in ALLOWABLE_EVG_VALIDATE_MESSAGE_REGEXES):
continue
error_on_evg_validate_messages[project].append(message)
error_on_shared_evg_validate_messages = []
for message in set(shared_evg_validate_messages):
if shared_evg_validate_messages.count(message) == num_of_projects:
error_on_shared_evg_validate_messages.append(message)
exit_code = 0
all_configs = list(evg_project_config_map.values())
all_projects = list(evg_project_config_map.keys())
for project, errors in error_on_evg_validate_messages.items():
if len(errors) > 0:
exit_code = 1
project_config = evg_project_config_map[project]
LOGGER.info(HORIZONTAL_LINE)
LOGGER.error(f"Config '{project_config}' for '{project}' evergreen project has errors:")
for error in errors:
LOGGER.error(error)
if len(error_on_shared_evg_validate_messages) > 0:
exit_code = 1
LOGGER.info(HORIZONTAL_LINE)
LOGGER.error(
f"Configs {all_configs} for evergreen projects {all_projects} have errors"
f" (they can be fixed in either config):"
)
for error in error_on_shared_evg_validate_messages:
LOGGER.error(error)
if exit_code == 0:
LOGGER.info(HORIZONTAL_LINE)
LOGGER.info(
f"Config(s) {all_configs} for evergreen project(s) {all_projects} is(are) valid"
)
sys.exit(exit_code)
sys.exit(0)
if __name__ == "__main__":

View File

@ -12,12 +12,12 @@ core.workflow(
name = "default",
origin = git.origin(
url = sourceUrl,
ref = "master",
ref = "v8.1",
),
destination = git.destination(
url = destinationUrl,
fetch = "master",
push = "master",
fetch = "v8.1",
push = "v8.1",
),
# Change path to the folder you want to publish publicly
origin_files = glob(["**"], exclude = ["src/mongo/db/modules/**"]),

View File

@ -7,12 +7,12 @@ core.workflow(
name = "default",
origin = git.origin(
url = sourceUrl,
ref = "master",
ref = "v8.1",
),
destination = git.destination(
url = destinationUrl,
fetch = "master",
push = "master",
fetch = "v8.1",
push = "v8.1",
),
# Change path to the folder you want to publish publicly
origin_files = glob(["**"], exclude = ["src/mongo/db/modules/**"]),

9
debian/mongod.1 vendored
View File

@ -357,7 +357,7 @@ Set \fB\-\-bind_ip_all\f1\f1 to \fBtrue\f1\&.
\fBmongod \-\-listenBacklog\f1
.RS
.PP
\fIDefault\f1: Target system \fBSOMAXCONN\f1 constant
\fIDefault\f1: Target system specific maximum value
.PP
The maximum number of connections that can exist in the listen
queue.
@ -370,8 +370,9 @@ To prevent undefined behavior, specify a value for this
parameter between \fB1\f1 and the local system \fBSOMAXCONN\f1
constant.
.PP
The default value for the \fBlistenBacklog\f1 parameter is set at
compile time to the target system \fBSOMAXCONN\f1 constant.
The default value for the \fBlistenBacklog\f1 parameter depends on the target
system. On Linux, \fB/proc/sys/net/core/somaxconn\f1 is used. On all other
target systems, the compile time constant \fBSOMAXCONN\f1 is used.
\fBSOMAXCONN\f1 is the maximum valid value that is documented for
the \fIbacklog\f1 parameter to the \fIlisten\f1 system call.
.PP
@ -379,7 +380,7 @@ Some systems may interpret \fBSOMAXCONN\f1 symbolically, and others
numerically. The actual \fIlisten backlog\f1 applied in practice may
differ from any numeric interpretation of the \fBSOMAXCONN\f1 constant
or argument to \fB\-\-listenBacklog\f1, and may also be constrained by
system settings like \fBnet.core.somaxconn\f1 on Linux.
system settings like \fB/proc/sys/net/core/somaxconn\f1 on Linux.
.PP
Passing a value for the \fBlistenBacklog\f1 parameter that exceeds the
\fBSOMAXCONN\f1 constant for the local system is, by the letter of the

9
debian/mongos.1 vendored
View File

@ -259,7 +259,7 @@ is, you can specify one or the other, but not both.
\fBmongos \-\-listenBacklog\f1
.RS
.PP
\fIDefault\f1: Target system \fBSOMAXCONN\f1 constant
\fIDefault\f1: Target system specific maximum value
.PP
The maximum number of connections that can exist in the listen
queue.
@ -272,8 +272,9 @@ To prevent undefined behavior, specify a value for this
parameter between \fB1\f1 and the local system \fBSOMAXCONN\f1
constant.
.PP
The default value for the \fBlistenBacklog\f1 parameter is set at
compile time to the target system \fBSOMAXCONN\f1 constant.
The default value for the \fBlistenBacklog\f1 parameter depends on the target
system. On Linux, \fB/proc/sys/net/core/somaxconn\f1 is used. On all other
target systems, the compile time constant \fBSOMAXCONN\f1 is used.
\fBSOMAXCONN\f1 is the maximum valid value that is documented for
the \fIbacklog\f1 parameter to the \fIlisten\f1 system call.
.PP
@ -281,7 +282,7 @@ Some systems may interpret \fBSOMAXCONN\f1 symbolically, and others
numerically. The actual \fIlisten backlog\f1 applied in practice may
differ from any numeric interpretation of the \fBSOMAXCONN\f1 constant
or argument to \fB\-\-listenBacklog\f1, and may also be constrained by
system settings like \fBnet.core.somaxconn\f1 on Linux.
system settings like \fB/proc/sys/net/core/somaxconn\f1 on Linux.
.PP
Passing a value for the \fBlistenBacklog\f1 parameter that exceeds the
\fBSOMAXCONN\f1 constant for the local system is, by the letter of the

View File

@ -3,3 +3,9 @@ filters:
- "performance_thresholds.yml":
approvers:
- 10gen/performance
- "/evergreen_yml_components/tasks/release_tasks.yml":
approvers:
- 10gen/devprod-release-infrastructure
- "/evergreen_yml_components/variants/release/release.yml":
approvers:
- 10gen/devprod-release-infrastructure

View File

@ -25,6 +25,8 @@ last-continuous:
ticket: SERVER-97662
- test_file: jstests/core/query/json_schema/json_schema.js
ticket: SERVER-98676
- test_file: jstests/aggregation/accumulators/group_doing_merge.js
ticket: SERVER-99616
- test_file: jstests/change_streams/change_streams_namespace_match_expressions.js
ticket: SERVER-100489
- test_file: jstests/change_streams/change_streams_dynamic_match_expressions.js
@ -239,8 +241,6 @@ last-continuous:
ticket: SERVER-91465
- test_file: jstests/aggregation/sources/addFields/add_fields_adds_to_missing_fields.js
ticket: SERVER-91784
- test_file: jstests/aggregation/group_with_acc_n_to_distinct_scan.js
ticket: SERVER-90017
- test_file: jstests/core/query/query_settings/query_settings_cmds_validation.js
ticket: SERVER-90965
- test_file: jstests/core/query/query_settings/query_settings_cmds.js
@ -305,8 +305,6 @@ last-continuous:
ticket: SERVER-94151
- test_file: jstests/core/write/update/upsert_duplicate_key_retry_collation.js
ticket: SERVER-84089
- test_file: jstests/replsets/max_seven_voting_members_allowed.js
ticket: SERVER-69418
- test_file: jstests/core/ddl/create_indexes.js
ticket: SERVER-90952
- test_file: jstests/sharding/nested_shard_role_within_router_role_recovery_in_txn.js
@ -394,6 +392,26 @@ last-continuous:
ticket: SERVER-98664
- test_file: jstests/core/timeseries/query/bucket_unpacking_with_limit.js
ticket: SERVER-100299
- test_file: jstests/sharding/check_metadata_consistency.js
ticket: SERVER-102084
- test_file: jstests/core_sharding/ddl/shard_collection_outside_db_primary_index_compatibility.js
ticket: SERVER-100844
- test_file: jstests/core/index/express_pbt.js
ticket: SERVER-102693
- test_file: jstests/core/timeseries/query/timeseries_groupby_reorder.js
ticket: SERVER-99773
- test_file: jstests/core_sharding/resharding/reshard_collection_atlas_log_ingestion.js
ticket: SERVER-100421
- test_file: jstests/sharding/conn_pool_stats.js
ticket: SERVER-102477
- test_file: jstests/noPassthrough/ftdc/ftdc_connection_reuse.js
ticket: SERVER-102477
- test_file: jstests/noPassthrough/network/set_step_params.js
ticket: SERVER-102477
- test_file: jstests/sharding/config_shards_on_repl_set_changes.js
ticket: SERVER-106614
- test_file: jstests/replsets/auth_coordinateCommitTransaction.js
ticket: SERVER-103618
suites: null
last-lts:
all:
@ -401,6 +419,8 @@ last-lts:
ticket: SERVER-97662
- test_file: jstests/core/query/json_schema/json_schema.js
ticket: SERVER-98676
- test_file: jstests/aggregation/accumulators/group_doing_merge.js
ticket: SERVER-99616
- test_file: jstests/change_streams/change_streams_namespace_match_expressions.js
ticket: SERVER-100489
- test_file: jstests/change_streams/change_streams_dynamic_match_expressions.js
@ -643,8 +663,6 @@ last-lts:
ticket: SERVER-91465
- test_file: jstests/aggregation/sources/addFields/add_fields_adds_to_missing_fields.js
ticket: SERVER-91784
- test_file: jstests/aggregation/group_with_acc_n_to_distinct_scan.js
ticket: SERVER-90017
- test_file: jstests/core/query/query_settings/query_settings_cmds_validation.js
ticket: SERVER-90965
- test_file: jstests/core/query/query_settings/query_settings_cmds.js
@ -713,8 +731,6 @@ last-lts:
ticket: SERVER-94151
- test_file: jstests/core/write/update/upsert_duplicate_key_retry_collation.js
ticket: SERVER-84089
- test_file: jstests/replsets/max_seven_voting_members_allowed.js
ticket: SERVER-69418
- test_file: jstests/core/ddl/create_indexes.js
ticket: SERVER-90952
- test_file: jstests/sharding/nested_shard_role_within_router_role_recovery_in_txn.js
@ -837,4 +853,26 @@ last-lts:
ticket: SERVER-98664
- test_file: jstests/core/timeseries/query/bucket_unpacking_with_limit.js
ticket: SERVER-100299
- test_file: jstests/sharding/check_metadata_consistency.js
ticket: SERVER-102084
- test_file: jstests/core_sharding/ddl/shard_collection_outside_db_primary_index_compatibility.js
ticket: SERVER-100844
- test_file: jstests/core/index/express_pbt.js
ticket: SERVER-102693
- test_file: jstests/core/timeseries/query/timeseries_groupby_reorder.js
ticket: SERVER-99773
- test_file: jstests/core_sharding/resharding/reshard_collection_atlas_log_ingestion.js
ticket: SERVER-100421
- test_file: jstests/sharding/conn_pool_stats.js
ticket: SERVER-102477
- test_file: jstests/noPassthrough/ftdc/ftdc_connection_reuse.js
ticket: SERVER-102477
- test_file: jstests/noPassthrough/network/set_step_params.js
ticket: SERVER-102477
- test_file: jstests/sharding/config_shards_on_repl_set_changes.js
ticket: SERVER-106614
- test_file: jstests/replsets/sync_source_override_secondary_read_preference.js
ticket: SERVER-104343
- test_file: jstests/replsets/auth_coordinateCommitTransaction.js
ticket: SERVER-103618
suites: null

57
etc/coverity.yml Normal file
View File

@ -0,0 +1,57 @@
# Coverity analysis options that are passed to cov-analyze command line
analyze:
checkers:
all: true # Enables all checkers except a few which need to be explicitly enabled. See: https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#ariaid-title11
rule: true # Enables "rule" checkers. See: https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#refsection_dgq_pf2_4qb__list-checkers
checker-config:
# Explicitly disabled checkers
# Add any checker that needs to be disabled below
STACK_USE:
enabled: false
COPY_INSTEAD_OF_MOVE:
enabled: false
RULE_OF_ZERO_THREE_FIVE:
enabled: false
MISSING_RETURN:
enabled: false
SLEEP:
enabled: false
PASS_BY_VALUE:
enabled: false
GLOBAL_INIT_ORDER:
enabled: false
# Explicitly enabled checkers
# Add any checker that needs to be explicitly enabled below
REVERSE_OVERRUN:
enabled: true
# Checkers with customized options
CHECKED_RETURN:
enabled: true
options:
stat_threshold: 80
DEADCODE:
enabled: true
options:
no_dead_default: true
report_redundant_tests: true
NULL_RETURNS:
enabled: true
options:
stat_threshold: 50
# Enables additional filtering of potential defects by using an additional false-path pruner (FPP). More details here https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#ariaid-title5
constraint-fpp: true
# Enables function pointer models if the analysis fails to analyze certain function pointers calls. More details at https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#ariaid-title9
c-cpp-fnptr: true
# Enables full, virtual-call resolution. More details at https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#ariaid-title9
c-cpp-virtual: true
# Enables call graph matrics. The callgraph-metrics files store information about which functions are analyzed. More details at https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#ariaid-title20
callgraph-metrics: true
cov-analyze-args:
# Specifies the name for the configuration file, which allows you to change the parse warnings that pass through a warning filter. More details at https://documentation.blackduck.com/bundle/coverity-docs/page/commands/topics/cov-analyze.html#ariaid-title9
- --parse-warnings-config
- etc/coverity_parse_warnings.conf
commit:
connect:
stream: mongo.v8.1
project: "MongoDB master"

File diff suppressed because it is too large Load Diff

View File

@ -62,6 +62,7 @@ include:
- filename: etc/evergreen_yml_components/tasks/compile_tasks.yml
- filename: etc/evergreen_yml_components/tasks/compile_tasks_shared.yml
- filename: etc/evergreen_yml_components/tasks/misc_tasks.yml
- filename: etc/evergreen_yml_components/tasks/release_tasks.yml
- filename: etc/evergreen_yml_components/variants/misc/task_generation.yml
- filename: etc/evergreen_yml_components/variants/misc/misc.yml

View File

@ -156,7 +156,6 @@ rules:
"search_end_to_end_single_node",
# TODO: remove this exception when SERVER-94572 is resolved
"streams_kafka",
"streams_kafka_gwproxy",
"streams_lambda",
# TODO: remove these exceptions when SERVER-94573 is resolved
"selinux_rhel9_enterprise",

View File

@ -14,49 +14,79 @@ include:
- filename: etc/evergreen_yml_components/variants/misc/task_generation.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
# - filename: etc/evergreen_yml_components/variants/misc/misc.yml
- filename: etc/evergreen_yml_components/variants/misc/misc.yml
- filename: etc/evergreen_yml_components/variants/amazon/test_release.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
# - filename: etc/evergreen_yml_components/variants/amazon/test_dev.yml
- filename: etc/evergreen_yml_components/variants/amazon/test_dev.yml
- filename: etc/evergreen_yml_components/variants/debian/test_release.yml
### Comment out when using this file for a Rapid release branch. ###
- filename: etc/evergreen_yml_components/variants/ibm/test_release_master_and_lts_branches_only.yml
# - filename: etc/evergreen_yml_components/variants/ibm/test_release_master_and_lts_branches_only.yml
- filename: etc/evergreen_yml_components/variants/macos/test_release.yml
- filename: etc/evergreen_yml_components/variants/rhel/test_release.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
# - filename: etc/evergreen_yml_components/variants/rhel/test_dev.yml
- filename: etc/evergreen_yml_components/variants/rhel/test_dev.yml
### Uncomment when using this file for a LTS release branch. ###
# - filename: etc/evergreen_yml_components/variants/rhel/test_dev_master_and_lts_branches_only.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
# - filename: etc/evergreen_yml_components/variants/sanitizer/test_dev.yml
- filename: etc/evergreen_yml_components/variants/sanitizer/test_dev.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
# filename: etc/evergreen_yml_components/variants/mongot/test_dev.yml
- filename: etc/evergreen_yml_components/variants/mongot/test_dev.yml
- filename: etc/evergreen_yml_components/variants/suse/test_release.yml
- filename: etc/evergreen_yml_components/variants/ubuntu/test_release.yml
### Uncomment when using this file for a LTS release branch. ###
# - filename: etc/evergreen_yml_components/variants/ubuntu/test_dev_master_and_lts_branches_only.yml
- filename: etc/evergreen_yml_components/variants/ubuntu/test_dev_master_and_lts_branches_only.yml
- filename: etc/evergreen_yml_components/variants/windows/test_release.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
# - filename: etc/evergreen_yml_components/variants/windows/test_dev.yml
- filename: etc/evergreen_yml_components/variants/windows/test_dev.yml
### Uncomment when using this file for a LTS release branch. ###
# - filename: etc/evergreen_yml_components/variants/windows/test_dev_master_and_lts_branches_only.yml
- filename: etc/evergreen_yml_components/tasks/coverity_tasks.yml
- filename: etc/evergreen_yml_components/variants/coverity.yml
- filename: etc/evergreen_yml_components/tasks/release_tasks.yml
### Uncomment when using this file for a LTS or Rapid release branch. ###
- filename: etc/evergreen_yml_components/variants/release/release.yml
parameters:
- key: evergreen_config_file_path
value: "etc/evergreen_nightly.yml"
description: "path to this file"
commit_queue_aliases:
- variant: "commit-queue"
task: "^(bazel_.*|run_.*|compile_.*|lint_.*|jsCore|version_gen_validation|validate_commit_message|resmoke_validation_tests|buildscripts_test)$"
variant_tags: []
task_tags: []
- variant: "^(amazon-linux2-arm64-static-compile|linux-x86-dynamic-compile-required)$"
variant_tags: []
task_tags: ["clang_tidy"]
- variant: "^(al2023-arm64-sep-benchmark)$"
variant_tags: []
task_tags: ["benchmarks_sep"]
patch_aliases:
- alias: required
variant_tags: ["required"]
task: ".*"
- alias: query
variant: "^(.*query-patch-only|amazon-linux2-arm64-static-compile)$"
task: ".*"
- alias: query-quick
variant: "^(.*query-quick-patch-only|linux-x86-dynamic-compile)$"
task: ".*"
- alias: security
variant: "^(.*security-patch-only|linux-x86-dynamic-compile|windows-compile-required)$"
task: ".*"
- alias: bazel
description: "Runs bazel build system tests"
variant_tags: ["bazel_check"]
@ -65,3 +95,25 @@ patch_aliases:
description: "Runs bazel build system tests"
variant_tags: ["bazel_check"]
task: ".*"
- alias: search
description: "Runs all $search, $vectorSearch tests"
variant: ".*"
task: "^.*search*"
- alias: required-and-mongot-e2e-tests
description: >
This alias selects all tasks in all required variants and all tasks in variants that use a real mongot.
Once more e2e tests have been contributed and thus our coverage is better, this alias can be refined
to only select tests that use a real mongot.
variant_tags: ["required", "mongot_e2e"]
task: ".*"
- alias: codecoverage
description: "Run tests and report code coverage"
variant: ".*-coverage"
task: ".*"
- alias: unittestcoverage
description: "Run unit tests and report code coverage"
variant: ".*-coverage"
task: "^(compile_and_run_unittests_.*|bazel_coverage)$"
- alias: cluster_scalability
variant_tags: ["cluster_scalability_only"]
task_tags: ["cluster_scalability_only"]

View File

@ -78,6 +78,12 @@ modules:
repo: git@github.com:10gen/mongot.git
prefix: ${workdir}/src
branch: master
- name: devprod_coverity
owner: mongodb-devprod-infrastructure
repo: coverity
prefix: "${workdir}/devprodCoveritySrc"
branch: main
auto_update: true
# Pre task steps
pre:

View File

@ -18,6 +18,7 @@ variables:
- amazon2023-arm64
- enterprise-amazon2023
- enterprise-amazon2023-arm64
- enterprise-amazon2023-arm64-grav4
- debian12
- enterprise-debian12-64
- enterprise-rhel-81-ppc64le

View File

@ -141,6 +141,7 @@ variables:
- enterprise-amazon2023
# TODO(SERVER-85904) - enterprise-amazon2023-lto
- enterprise-amazon2023-arm64
- enterprise-amazon2023-arm64-grav4
# TODO(SERVER-85904) - enterprise-amazon2023-arm64-lto
- enterprise-debian12-64
- enterprise-linux-64-amazon-ami

View File

@ -339,6 +339,14 @@ tasks:
binary: bash
args:
- "src/evergreen/crypt_run_tests.sh"
- command: subprocess.exec
params:
binary: bash
add_expansions_to_env: true
args:
- "src/evergreen/run_python_script.sh"
- "evergreen/macos_notary.py"
- "mongo-crypt-dev.${ext|tgz}"
- command: s3.put
params:
aws_key: ${aws_key}

View File

@ -0,0 +1,94 @@
functions:
f_clone_source:
- &clone_source
display_name: "Cloning source to analyze"
command: git.get_project
params:
directory: src
clone_depth: 1
recurse_submodules: true
- &check
display_name: "Checking if project has needed Coverity config"
command: subprocess.exec
params:
add_expansions_to_env: true
redirect_standard_error_to_output: true
binary: "${module_prefix}/${module_name}/evergreen/coverity.sh"
args:
- "check"
f_download_and_extract_coverity:
- &assume_role
display_name: "Assuming IAM role"
command: ec2.assume_role
params:
role_arn: arn:aws:iam::557821124784:role/evergreen.evergreen.coverity
- &download_coverity_license
display_name: "downloading Coverity license file"
command: s3.get
params:
aws_key: ${AWS_ACCESS_KEY_ID}
aws_secret: ${AWS_SECRET_ACCESS_KEY}
aws_session_token: ${AWS_SESSION_TOKEN}
remote_file: license.dat
bucket: evergreen.coverity
local_file: license.dat
- &download_coverity_binary
display_name: "downloading Coverity binary"
command: s3.get
params:
aws_key: ${AWS_ACCESS_KEY_ID}
aws_secret: ${AWS_SECRET_ACCESS_KEY}
aws_session_token: ${AWS_SESSION_TOKEN}
remote_file: linux/x86_64/latest/coverity.tar.gz
bucket: evergreen.coverity
local_file: coverity.tar.gz
- &extract_coverity_binary
display_name: "Extracting Coverity binary tarball"
command: subprocess.exec
params:
add_expansions_to_env: true
redirect_standard_error_to_output: true
binary: "${module_prefix}/${module_name}/evergreen/coverity.sh"
args:
- "extract"
# Analyzes after build
f_analyze:
- command: subprocess.exec
params:
add_expansions_to_env: true
redirect_standard_error_to_output: true
binary: "${module_prefix}/${module_name}/evergreen/coverity.sh"
args:
- "analyze"
# Pushes results to Coverity server after a successful analysis
f_commit:
- command: subprocess.exec
params:
add_expansions_to_env: true
redirect_standard_error_to_output: true
binary: "${module_prefix}/${module_name}/evergreen/coverity.sh"
args:
- "commit"
# All in one function, from cloning to pushing results to Coverity server
f_run_coverity:
- *clone_source
- *check
- *assume_role
- *download_coverity_license
- *download_coverity_binary
- *extract_coverity_binary
- command: subprocess.exec
params:
add_expansions_to_env: true
redirect_standard_error_to_output: true
binary: "${module_prefix}/${module_name}/evergreen/coverity.sh"
args:
- "scan"

View File

@ -631,37 +631,6 @@ tasks:
target: >-
//:format -- --check
# TODO(SERVER-97804): rename if display_name appears on the evergreen UI
- name: bazel_run_//:codeowners
tags:
[
"assigned_to_jira_team_devprod_build",
"development_critical_single_variant",
"lint",
"bazel_check",
]
depends_on:
- name: version_expansions_gen
variant: generate-tasks-for-version
commands:
- command: timeout.update
params:
# 40 minutes
exec_timeout_secs: 2400
- func: "f_expansions_write"
- command: manifest.load
- func: "git get project and add git tag"
- func: "f_expansions_write"
- func: "kill processes"
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get engflow creds"
- func: "bazel run"
vars:
target: >-
//:codeowners -- --check
# TODO(SERVER-97804): rename if display_name appears on the evergreen UI
- name: bazel_run_//buildscripts:resmoke
tags:

View File

@ -0,0 +1,52 @@
tasks:
- name: publish-sast-report
tags: ["auxiliary", "assigned_to_jira_team_devprod_release_infrastructure"]
depends_on:
- name: version_expansions_gen
variant: generate-tasks-for-version
commands:
- command: git.get_project
params:
directory: src
clone_depth: 1
recurse_submodules: true
- func: "get version expansions"
- func: "apply version expansions"
- func: "f_expansions_write"
- command: subprocess.exec
display_name: Write credentials for SAST report generation to file
type: setup
params:
silent: true
binary: "${workdir}/src/evergreen/write_sast_report_env_file.sh"
env:
WORK_DIR: ${workdir}
SAST_REPORT_COVERITY_USERNAME: ${SAST_REPORT_COVERITY_USERNAME}
SAST_REPORT_COVERITY_PASSWORD: ${SAST_REPORT_COVERITY_PASSWORD}
SAST_REPORT_UPLOAD_GOOGLE_CLIENT_ID: ${SAST_REPORT_UPLOAD_GOOGLE_CLIENT_ID}
SAST_REPORT_UPLOAD_GOOGLE_CLIENT_REFRESH_TOKEN: ${SAST_REPORT_UPLOAD_GOOGLE_CLIENT_REFRESH_TOKEN}
SAST_REPORT_UPLOAD_GOOGLE_CLIENT_SECRET: ${SAST_REPORT_UPLOAD_GOOGLE_CLIENT_SECRET}
- command: subprocess.exec
display_name: "Generate SAST report and upload to Google Drive"
params:
binary: "${workdir}/src/evergreen/generate_sast_report.sh"
env:
WORK_DIR: ${workdir}
MODULE_PATH: ${workdir}/devprodCoveritySrc/devprod_coverity
TRIGGERED_BY_GIT_TAG: ${triggered_by_git_tag}
MONGODB_VERSION: ${version}
MONGODB_RELEASE_BRANCH: ${branch_name}
SAST_REPORT_TEST_GOOGLE_DRIVE_FOLDER_ID: ${SAST_REPORT_TEST_GOOGLE_DRIVE_FOLDER_ID}
SAST_REPORT_RELEASES_GOOGLE_DRIVE_FOLDER_ID: ${SAST_REPORT_RELEASES_GOOGLE_DRIVE_FOLDER_ID}
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
bucket: mciuploads
content_type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
local_files_include_filter_prefix: devprodCoveritySrc/devprod_coverity
local_files_include_filter:
- "sast_report_*.xlsx"
remote_file: ${project}/${build_variant}/${revision}/artifacts/${build_id}/${task_name}/
permissions: private
visibility: signed

View File

@ -238,13 +238,6 @@ tasks:
- func: "do setup"
- func: "run tests"
- <<: *task_template
name: streams_kafka_gwproxy
tags: ["assigned_to_jira_team_streams", "experimental"]
commands:
- func: "do setup"
- func: "run tests"
- <<: *task_template
name: streams_kafka_benchmark
tags: ["assigned_to_jira_team_streams", "experimental"]

View File

@ -628,18 +628,6 @@ tasks:
commands:
- func: "generate resmoke tasks"
- <<: *gen_task_template
name: embedded_router_sharded_collections_jscore_passthrough_gen
tags:
[
"assigned_to_jira_team_server_catalog_and_routing",
"default",
"suggested_excluding_required__for_devprod_mitigation_only",
"embedded_router",
]
commands:
- func: "generate resmoke tasks"
- <<: *gen_task_template
name: embedded_router_sharded_collections_jscore_txns_gen
tags:
@ -1068,12 +1056,18 @@ tasks:
]
commands:
- func: "generate resmoke tasks"
vars:
timeout_secs: 7200 # 2 hours
exec_timeout_secs: 21600 # 6 hours
- <<: *gen_task_template
name: auth_gen
tags: ["assigned_to_jira_team_server_security", "release_critical", "auth"]
commands:
- func: "generate resmoke tasks"
vars:
timeout_secs: 7200 # 2 hours
exec_timeout_secs: 21600 # 6 hours
- <<: *task_template
name: client_encrypt
@ -2112,6 +2106,21 @@ tasks:
vars:
use_large_distro: "true"
- <<: *gen_task_template
name: sharding_task_executor_pool_size_8_gen
tags:
[
"assigned_to_jira_team_server_cluster_scalability",
"default",
"incompatible_mac",
"sharding",
"common",
]
commands:
- func: "generate resmoke tasks"
vars:
use_large_distro: "true"
- <<: *gen_task_template
name: sharding_hello_failures_gen
tags:

View File

@ -143,8 +143,8 @@ buildvariants:
- <<: *amazon_linux2_arm64_static_compile_variant_dependency
name: enterprise-amazon-linux2-arm64
display_name: "* Amazon Linux 2 arm64 Atlas Enterprise"
tags: ["suggested", "forbid_tasks_tagged_with_experimental"]
display_name: "! Amazon Linux 2 arm64 Atlas Enterprise"
tags: ["required", "forbid_tasks_tagged_with_experimental"]
cron: "0 */4 * * *" # From the ${project_required_suggested_cron} parameter
run_on:
- amazon2-arm64-atlas-latest-small
@ -555,6 +555,7 @@ buildvariants:
--ssl=off
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
evergreen_remote_exec: on
run_on:
- amazon2-arm64-latest-xlarge
tasks:
@ -583,6 +584,7 @@ buildvariants:
--ssl=off
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
evergreen_remote_exec: on
run_on:
- amazon2023.3-arm64-xlarge
tasks:
@ -628,3 +630,77 @@ buildvariants:
tasks:
- name: compile_and_package_serial_no_unittests_TG
- name: package_supplementary_data
- name: amazon2023-arm64-grav4
display_name: "Amazon Linux 2023 arm64 Graviton 4"
tags: ["bazel_check", "forbid_tasks_tagged_with_experimental"]
cron: "0 4 * * *" # From the ${project_nightly_cron} parameter.
run_on:
- amazon2023-arm64-latest-small-m8g
expansions:
compile_flags: >-
--ssl
MONGO_DISTMOD=amazon2023
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
BAZEL_FLAGS="--subcommands"
--modules=
compile_all_but_not_unittests_flags: >-
BAZEL_FLAGS="--linkopt=-s"
test_flags: >-
--excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source
--enableEnterpriseTests=off
has_packages: false
repo_edition: org
scons_cache_scope: shared
large_distro_name: amazon2023-arm64-latest-small-m8g
compile_variant: amazon2023-arm64
tasks:
- name: compile_test_and_package_serial_TG
distros:
- amazon2023-arm64-latest-large-m8g
- name: .development_critical !.requires_large_host !.incompatible_community
- name: .development_critical .requires_large_host !.incompatible_community
distros:
- amazon2023-arm64-latest-large-m8g
- name: .release_critical !.requires_large_host !.incompatible_community !.publish
- name: .release_critical .requires_large_host !.incompatible_community !.publish
distros:
- amazon2023-arm64-latest-large-m8g
- name: enterprise-amazon2023-arm64-grav4
display_name: "Enterprise Amazon Linux 2023 arm64 Graviton 4"
tags: ["forbid_tasks_tagged_with_experimental"]
cron: "0 4 * * *" # From the ${project_nightly_cron} parameter.
run_on:
- amazon2023-arm64-latest-small-m8g
expansions:
additional_package_targets: archive-mongocryptd archive-mongocryptd-debug
compile_flags: >-
--ssl
MONGO_DISTMOD=amazon2023
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
compile_all_but_not_unittests_flags: >-
BAZEL_FLAGS="--linkopt=-s"
crypt_task_compile_flags: SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique" CCFLAGS="-fno-gnu-unique"
test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,requires_v4_0,requires_external_data_source
has_packages: false
multiversion_platform: amazon2023
multiversion_edition: enterprise
multiversion_architecture: aarch64
repo_edition: enterprise
scons_cache_scope: shared
compile_variant: enterprise-amazon2023-arm64-grav4
tasks:
- name: compile_test_and_package_serial_TG
distros:
- amazon2023-arm64-latest-large-m8g
- name: .development_critical !.requires_large_host
- name: .development_critical .requires_large_host
distros:
- amazon2023-arm64-latest-large-m8g
- name: .release_critical !.requires_large_host !.publish !.publish_crypt
- name: .release_critical .requires_large_host !.publish !.publish_crypt
distros:
- amazon2023-arm64-latest-large-m8g

View File

@ -603,7 +603,6 @@ buildvariants:
- amazon2-latest-large
- name: streams
- name: streams_kafka
- name: streams_kafka_gwproxy
- name: streams_https
- name: streams_lambda

View File

@ -104,6 +104,105 @@ buildvariants:
distros:
- amazon2-latest-large
- name: amazon2-arm64
display_name: "Amazon Linux 2 arm64"
cron: "0 4 * * *" # From the ${project_nightly_cron} parameter.
run_on:
- amazon2-arm64-latest-small
expansions:
test_flags: >-
--excludeWithAnyTags=SERVER-34286,incompatible_with_amazon_linux,requires_external_data_source
--enableEnterpriseTests=off
push_path: linux
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: aarch64-amazon2
compile_flags: >-
--ssl
MONGO_DISTMOD=amazon2
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
--modules=
compile_all_but_not_unittests_flags: >-
BAZEL_FLAGS="--linkopt=-s"
multiversion_platform: amazon2
multiversion_edition: targeted
has_packages: true
packager_script: packager.py
packager_arch: aarch64
packager_distro: amazon2
repo_edition: org
scons_cache_scope: shared
large_distro_name: amazon2-arm64-latest-large
compile_variant: amazon2-arm64
tasks:
- name: compile_test_and_package_serial_no_unittests_TG
distros:
- amazon2-arm64-latest-large
- name: test_packages
distros:
- ubuntu2204-arm64-large
- name: .development_critical !.incompatible_community !.requires_large_host
- name: .development_critical !.incompatible_community .requires_large_host
distros:
- amazon2-arm64-latest-large
- name: .release_critical !.incompatible_community !.requires_large_host
- name: .release_critical !.incompatible_community .requires_large_host
distros:
- amazon2-arm64-latest-large
- name: enterprise-amazon2-arm64
display_name: "Enterprise Amazon Linux 2 arm64"
cron: "0 4 * * *" # From the ${project_nightly_cron} parameter.
run_on:
- amazon2-arm64-latest-small
expansions:
additional_package_targets: >-
archive-mongocryptd
archive-mongocryptd-debug
test_flags: >-
--excludeWithAnyTags=SERVER-34286,incompatible_with_amazon_linux,requires_external_data_source,requires_ldap_pool
push_path: linux
push_bucket: downloads.10gen.com
push_name: linux
push_arch: aarch64-enterprise-amazon2
compile_flags: >-
--ssl
MONGO_DISTMOD=amazon2
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
compile_all_but_not_unittests_flags: >-
BAZEL_FLAGS="--linkopt=-s"
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
multiversion_platform: amazon2
multiversion_edition: enterprise
has_packages: true
packager_script: packager_enterprise.py
packager_arch: aarch64
packager_distro: amazon2
repo_edition: enterprise
scons_cache_scope: shared
compile_variant: enterprise-amazon2-arm64
core_analyzer_distro_name: amazon2-arm64-latest-large
large_distro_name: amazon2-arm64-latest-large
tasks:
- name: compile_test_and_package_serial_no_unittests_TG
distros:
- amazon2-arm64-latest-large
- name: test_packages
distros:
- ubuntu2204-arm64-large
- name: .development_critical !.requires_large_host
- name: .development_critical .requires_large_host
distros:
- amazon2-arm64-latest-large
- name: .release_critical !.requires_large_host
- name: .release_critical .requires_large_host
distros:
- amazon2-arm64-latest-large
- name: amazon2023
display_name: Amazon Linux 2023.3
tags: ["bazel_check", "forbid_tasks_tagged_with_experimental"]
@ -431,7 +530,6 @@ buildvariants:
- amazon2-latest-large
- name: streams
- name: streams_kafka
- name: streams_kafka_gwproxy
- name: streams_kafka_benchmark
- name: streams_https
- name: streams_lambda

View File

@ -0,0 +1,77 @@
buildvariants:
- name: bv_coverity_analysis
display_name: Coverity Analysis
# Don't run Coverity analysis as part of patch builds
patchable: false
allow_for_git_tag: false
# Run at 4 am UTC everyday
cron: "0 4 * * *"
run_on: ubuntu2404-xlarge
modules:
- devprod_coverity
tasks:
- name: run_coverity
functions:
f_generate_evergreen_bazelrc:
command: subprocess.exec
display_name: "generate evergreen bazelrc"
params:
binary: bash
args:
- "src/evergreen/generate_evergreen_bazelrc.sh"
f_setup_python:
command: subprocess.exec
display_name: "set up venv"
params:
binary: bash
args:
- "src/evergreen/functions/venv_setup.sh"
f_coverity_build:
command: subprocess.exec
display_name: "Coverity build"
params:
binary: bash
args:
- "src/evergreen/coverity_build.sh"
env:
COVERITY_INSTALL_ROOT: ${workdir}/coverity
add_expansions_to_env: true
tasks:
- name: run_coverity
tags:
[
"assigned_to_jira_team_devprod_build",
"requires_large_host",
"auxiliary",
"coverity",
]
exec_timeout_secs: 28800 # Max scan time of 8 hours
commands:
- func: f_clone_source
vars:
module_prefix: ${workdir}/devprodCoveritySrc
module_name: devprod_coverity
# Functions to prepare for Coverity build
- func: f_expansions_write
- func: f_setup_python
- func: f_expansions_write
- func: f_generate_evergreen_bazelrc
- func: f_download_and_extract_coverity
vars:
module_prefix: ${workdir}/devprodCoveritySrc
module_name: devprod_coverity
- func: f_coverity_build
timeout_secs: 10800 # Idle timeout of 3 hours
- func: f_analyze
vars:
module_prefix: ${workdir}/devprodCoveritySrc
module_name: devprod_coverity
timeout_secs: 10800 # Idle timeout of 3 hours
- func: f_commit
vars:
module_prefix: ${workdir}/devprodCoveritySrc
module_name: devprod_coverity

View File

@ -18,10 +18,7 @@ buildvariants:
burn_in_tag_exclude_build_variants: >-
macos-debug-suggested
ubuntu2204-arm64-bazel-compile
burn_in_tag_include_build_variants: >-
enterprise-rhel-8-64-bit-inmem
enterprise-rhel-8-64-bit-multiversion
amazon-linux2-arm64-try-sbe-engine
burn_in_tag_include_build_variants:
burn_in_tag_compile_task_dependency: archive_dist_test
compile_variant: &amazon_linux2_arm64_static_compile_variant_name amazon-linux2-arm64-static-compile
depends_on:
@ -40,6 +37,18 @@ buildvariants:
tasks:
- name: burn_in_tags_gen
- name: test-release
display_name: "Test Release"
# tasks may use "Admin Only" variables, so patch runs may only succeed for admins
allowed_requesters: ["commit", "patch"]
tags: ["assigned_to_jira_team_devprod_release_infrastructure"]
activate: true
run_on: ubuntu2404-small
modules:
- devprod_coverity
tasks:
- name: publish-sast-report
- name: copybara-sync-between-repos
display_name: "* Copybara Sync Between Repos"
tags: ["suggested"]

View File

@ -0,0 +1,10 @@
buildvariants:
- name: release
display_name: Release
allowed_requesters: ["github_tag"]
tags: ["release", "assigned_to_jira_team_devprod_release_infrastructure"]
run_on: ubuntu2404-small
modules:
- devprod_coverity
tasks:
- name: publish-sast-report

View File

@ -333,7 +333,6 @@ buildvariants:
tasks:
# TODO(SERVER-90936): Remove this once streams_kafka* and streams_lambda tests can work with the "default" tag.
- name: streams_kafka
- name: streams_kafka_gwproxy
- name: streams_lambda
- name: product_limits
cron: "0 4 * * 0" # From the ${project_weekly_cron} parameter

View File

@ -319,7 +319,7 @@ buildvariants:
- rhel8.8-medium
- <<: *linux_debug_aubsan_compile_variant_dependency
name: rhel8-debug-aubsan-lite-all-feature-flags-required
name: rhel8-debug-aubsan-lite-required
display_name: "! Shared Library {A,UB}SAN Enterprise RHEL 8 DEBUG (all feature flags)"
tags: ["required"]
cron: "0 */4 * * *" # From the ${project_required_suggested_cron} parameter
@ -330,7 +330,6 @@ buildvariants:
# To force disable feature flags even on the all feature flags variant, please use this file:
# buildscripts/resmokeconfig/fully_disabled_feature_flags.yml
test_flags: >-
--runAllFeatureFlagTests
--excludeWithAnyTags=incompatible_aubsan
tasks:
- name: jsCore

View File

@ -114,7 +114,7 @@ buildvariants:
- name: run_bazel_TG
- <<: *windows_compile_variant_dependency
name: enterprise-windows-all-feature-flags-required
name: enterprise-windows-required
display_name: "! Enterprise Windows Server 2022 (all feature flags) essential tasks"
tags: ["required", "forbid_tasks_tagged_with_experimental"]
cron: "0 */4 * * *" # From the ${project_required_suggested_cron} parameter
@ -136,23 +136,22 @@ buildvariants:
# To force disable feature flags even on the all feature flags variant, please use this file:
# buildscripts/resmokeconfig/fully_disabled_feature_flags.yml
test_flags: >-
--runAllFeatureFlagTests
--excludeWithAnyTags=incompatible_with_windows_tls
external_auth_jobs_max: 1
tasks:
- name: .development_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags .requires_execution_on_windows_patch_build
- name: .development_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags .requires_execution_on_windows_patch_build
- name: .development_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags .requires_execution_on_windows_patch_build
- name: .development_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags .requires_execution_on_windows_patch_build
distros:
- windows-2022-xlarge
- name: .release_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags .requires_execution_on_windows_patch_build
- name: .release_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags .requires_execution_on_windows_patch_build
- name: .release_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags .requires_execution_on_windows_patch_build
- name: .release_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags .requires_execution_on_windows_patch_build
distros:
- windows-2022-xlarge
# This Windows build variant exists to run all tasks that have been excluded from running on the required Windows build variant.
# See SERVER-79037 for how the essential set of tasks was computed.
- <<: *windows_compile_variant_dependency
name: enterprise-windows-all-feature-flags-non-essential
name: enterprise-windows-non-essential
display_name: "* Enterprise Windows Server 2022 (all feature flags) non-essential tasks"
tags: ["suggested"]
cron: "0 */4 * * *" # From the ${project_required_suggested_cron} parameter
@ -162,11 +161,11 @@ buildvariants:
<<: *windows_essential_expansions
burn_in_tests_build_variant: enterprise-windows-all-feature-flags-non-essential
tasks:
- name: .development_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags
- name: .development_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags
- name: .development_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags
- name: .development_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags
distros:
- windows-2022-xlarge
- name: .release_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags
- name: .release_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.incompatible_all_feature_flags
- name: .release_critical !.requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags
- name: .release_critical .requires_large_host !.requires_compile_variant !.incompatible_development_variant !.incompatible_windows !.requires_all_feature_flags
distros:
- windows-2022-xlarge

View File

@ -9,6 +9,7 @@ build_variant_large_distro_exceptions:
- enterprise-amazon2023-toolchain-v5
# TODO(SERVER-85904) - enterprise-amazon2023-lto
- enterprise-amazon2023-arm64
- enterprise-amazon2023-arm64-grav4
- enterprise-amazon2023-arm64-toolchain-v5
# TODO(SERVER-85904) - enterprise-amazon2023-arm64-lto
- enterprise-debian12-64

View File

@ -13,14 +13,12 @@ include:
#
- filename: evergreen/system_perf/master/base.yml
module: dsi
- filename: evergreen/system_perf/master/compiles.yml
module: dsi
- filename: evergreen/system_perf/master/variants.yml
module: dsi
- filename: evergreen/system_perf/master/master_variants.yml
module: dsi
- filename: evergreen/system_perf/shared_tasks.yml
module: dsi
- filename: evergreen/system_perf/master/genny_tasks.yml
- filename: evergreen/system_perf/8.1/compiles.yml
module: dsi
- filename: evergreen/system_perf/8.1/variants.yml
module: dsi
- filename: evergreen/system_perf/8.1/genny_tasks.yml
module: dsi
### lint_yaml trim end ###

View File

@ -0,0 +1,34 @@
#!/bin/env bash
set -eo pipefail
cd src
. evergreen/prelude_venv.sh
activate_venv
python buildscripts/install_bazel.py
bazel_bin="$HOME/.local/bin/bazelisk"
# number of parallel jobs to use for build.
# Even with scale=0 (the default), bc command adds decimal digits in case of multiplication. Division by 1 gives us a whole number with scale=0
bazel_jobs=$(bc <<< "$(grep -c '^processor' /proc/cpuinfo) * .85 / 1")
build_config="--config=local --jobs=$bazel_jobs --compiler_type=gcc --opt=off --dbg=False --allocator=system"
bazel_query='mnemonic("CppCompile|LinkCompile", filter(//src/mongo, deps(//:install-core)) except //src/mongo/db/modules/enterprise/src/streams/third_party/...)'
bazel_cache="--output_user_root=$workdir/bazel_cache"
python bazel/coverity/generate_coverity_command.py --bazel_executable=$bazel_bin --bazel_cache=$bazel_cache --bazel_query="$bazel_query" $build_config --noinclude_artifacts
$bazel_bin $bazel_cache build $build_config --build_tag_filters=gen_source //src/...
bazelBuildCommand="$bazel_bin $bazel_cache build $build_config //src/mongo/db/modules/enterprise/coverity:enterprise_coverity_build"
echo "Bazel Build Command: $bazelBuildCommand"
covIdir="$workdir/covIdir"
if [ -d "$covIdir" ]; then
echo "covIdir already exists, meaning idir extracted after download from S3"
else
mkdir $workdir/covIdir
fi
$workdir/coverity/bin/cov-build --dir "$covIdir" --verbose 0 -j $bazel_jobs --return-emit-failures --parse-error-threshold=99 --bazel $bazelBuildCommand
ret=$?
if [ $ret -ne 0 ]; then
echo "cov-build faild with exit code $ret"
else
echo "cov-build was successful"
fi

View File

@ -2,6 +2,7 @@ import gzip
import os
import pathlib
import platform
import re
import stat
import sys
from urllib.request import urlretrieve
@ -12,7 +13,7 @@ mongo_path = pathlib.Path(__file__).parents[1]
sys.path.append(str(mongo_path))
from buildscripts.util.expansions import get_expansion
DB_CONTRIB_TOOL_VERSION = "v0.8.9"
DB_CONTRIB_TOOL_VERSION = "v1.0.1"
RELEASE_URL = (
f"https://mdb-build-public.s3.amazonaws.com/db-contrib-tool-binaries/{DB_CONTRIB_TOOL_VERSION}/"
)
@ -32,6 +33,20 @@ def get_binary_name() -> str:
if operating_system == "windows":
binary_name = f"{binary_name}.exe"
# On ppc64le RHEL, pyinstaller builds are not forward compatible (At least not from RHEL 8 -> 9),
# so we need to create and name each binary with the exact OS.
if machine == "ppc64le":
# Get the major version from the release string
# like '4.18.0-513.5.1.el8_9.ppc64le' -> major release 8
major_version_match = re.findall("el(\d+)", os.uname().release)
assert len(major_version_match) == 1
major_version = int(major_version_match[0])
# db-contrib-tool 1.0.1 is only released up to RHEL 9 on PPC64LE
major_version = min(major_version, 9)
operating_system = f"rhel{major_version}"
return binary_name

Some files were not shown because too many files have changed in this diff Show More