Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: Added a --matrix-count parameter to versioned tests #230

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

jsumners-nr
Copy link
Contributor

@jsumners-nr jsumners-nr commented Aug 19, 2024

This PR adds a new option to the versioned tests runner that enables calculating the number of tests that will be run and printing only that information.

Example output
# ... snipped
@prisma/client(19)
prisma(104)


Module Test Versions Counts
@apollo/gateway                        6
@apollo/server                         12
@apollo/subgraph                       15
@aws-sdk/client-api-gateway            322
@aws-sdk/client-bedrock-runtime        68
@aws-sdk/client-dynamodb               337
@aws-sdk/client-elastic-load-balancing 318
@aws-sdk/client-elasticache            325
@aws-sdk/client-lambda                 337
@aws-sdk/client-rds                    364
@aws-sdk/client-redshift               326
@aws-sdk/client-rekognition            325
@aws-sdk/client-s3                     356
@aws-sdk/client-ses                    321
@aws-sdk/client-sns                    322
@aws-sdk/client-sqs                    322
@aws-sdk/lib-dynamodb                  125
@aws-sdk/util-dynamodb                 342
@elastic/elasticsearch                 18
@elastic/transport                     8
@grpc/grpc-js                          8
@hapi/hapi                             7
@hapi/vision                           4
@koa/router                            11
@langchain/community                   3
@langchain/core                        2
@langchain/openai                      3
@nestjs/cli                            14
@prisma/client                         19
amazon-dax-client                      1
amqplib                                6
apollo-server                          14
apollo-server-express                  14
async-listener                         7
aws-sdk                                1,216
axios                                  36
bluebird                               20
body-parser                            21
bunyan                                 2
cassandra-driver                       11
connect                                39
continuation-local-storage             3
director                               1
ejs                                    21
express                                16
express-enrouten                       8
fastify                                75
flush-write-stream                     3
generic-pool                           0
graphql                                42
graphql-tag                            18
ioredis                                37
kafkajs                                3
koa                                    16
koa-route                              4
koa-router                             12
memcached                              1
middie                                 21
mongodb                                46
mysql                                  17
mysql2                                 16
next                                   9
openai                                 57
parse-json                             14
pg                                     11
pg-native                              4
pino                                   37
prisma                                 104
q                                      3
react                                  42
react-dom                              30
redis                                  19
restify                                27
restify-errors                         13
split2                                 13
superagent                             27
swagger-ui-express                     12
undici                                 59
when                                   1
winston                                15
winston-transport                      8
----------------------------------------
total:                                 6,892

real	0m8.135s
user	0m4.113s
sys	0m1.883s

@jsumners-nr jsumners-nr marked this pull request as ready for review August 19, 2024 16:32
@jsumners-nr jsumners-nr requested a review from bizob2828 August 19, 2024 16:32
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. verified versioned runner still works and will only print out this count when passing in -m

@jsumners-nr jsumners-nr merged commit 72d8c7d into newrelic:main Aug 19, 2024
10 checks passed
@jsumners-nr jsumners-nr deleted the matrix-counts branch August 19, 2024 16:45
@github-actions github-actions bot mentioned this pull request Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants