nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.68k stars 2.36k forks source link

nx show projects --affected --files command gives wrong output when files argument contains long list of files #21319

Closed mlakmal closed 9 months ago

mlakmal commented 9 months ago

Current Behavior

when we run below command, we are getting large number of projects affected (output projects are correct) npx nx show projects --affected --files=libs/shared/components/sidePanelCmp.spec.ts,libs/shared/components/sidePanelCmp.ts,libs/shared/project.json,libs/smartrewards/project.json,libs/sms-resources/project.json,libs/spending-accounts/project.json,libs/sso/project.json,libs/test/jsons/prescriptionHomeMockData.ts,libs/test/project.json,libs/utility/project.json,libs/utility/services/navigationHelper.ts,libs/vivr/project.json,package-lock.json,package.json,tools/node-modules-overrides/istanbul-reports/lib/json/index.js,tools/nx-custom-remote-cache/index.js,tools/scripts/microapps/setup.js,tools/scripts/tasks/build/ng-build.ts,tools/scripts/tasks/common/get-args.ts,tools/scripts/tasks/linters/ts.ts,tools/scripts/tasks/serve/ng-serve.ts,tools/scripts/tasks/unit-test/generate-cumulative-coverage-reports.ts,tools/scripts/tasks/unit-test/ng-test.ts,tools/scripts/test.ts,tools/test/jest-minimal-reporter.js,tools/test/jest.preset.angular.ts

OUTPUT: lib-shared lib-pharmacy-prescriptions-checkout tcp-pharmacy lib-pharmacy-thirdparty-integration ci lib-engage-employer-challenges tcp lib-pharmacy-one-click-order lib-pharmacy-rapid-delivery lib-community-resources lib-engage-actionplans lib-clinical lib-engage lib-smartrewards lib-engage-self-report lib-engage-devices lib-engage-rewards lib-kodiak-procedures lib-test lib-my-health-records lib-pharmacy-carveout lib-benefits ... MORE projects lib-core lib-http lib-main

but when we run same command with additional files (listed below) on top of above files we dont get the same output of projects npx nx show projects --affected --files=.prettierignore, app/build-tools/withCustomModuleFederation.js, app/tcp-automation/.gitignore, app/tcp-navigation/project.json, app/tcp-pharmacy/project.json, app/tcp-profile/project.json, app/tcp-test/project.json, app/tcp/main/services/appInitializer.ts, app/tcp/project.json, app/tcp/tsconfig.app.json, libs/aae/project.json, libs/back-to-top/project.json, libs/benefits/assets/styles/partials/authsRefer.scss, libs/benefits/assets/styles/partials/benefits.scss, libs/benefits/assets/styles/partials/eeBenefits.scss, libs/benefits/components/authorizationsCmp.spec.ts, libs/benefits/components/authorizationsCmp.ts, libs/benefits/components/authsAndRefsCmp.content.ts, libs/benefits/components/eeBenefitsCmp.spec.ts, libs/benefits/components/eeBenefitsCmp.ts, libs/benefits/components/findGRSBenefitsCmp.ts, libs/benefits/components/grsBenefitDetailsCmp.spec.ts, libs/benefits/components/nsssGbdBenefitDetailsCmp.content.ts, libs/benefits/components/nsssGbdBenefitDetailsCmp.spec.ts, libs/benefits/components/nsssGbdBenefitDetailsCmp.ts, libs/benefits/components/supplementalBenefitsCmp.spec.ts, libs/benefits/components/supplementalBenefitsCmp.ts, libs/benefits/config/config.ci1aws.ts, libs/benefits/config/config.default.ts, libs/benefits/config/config.environment.ts, libs/benefits/config/config.prod1aws.ts, libs/benefits/config/config.prod2aws.ts, libs/benefits/config/config.sit1aws.ts, libs/benefits/config/config.stage1aws.ts, libs/benefits/config/config.stage2aws.ts, libs/benefits/config/config.ts, libs/benefits/enums/ supplementalBenefitsTypes.ts, libs/benefits/enums/benefitCodes.ts, libs/benefits/enums/features.ts, libs/benefits/interfaces/iGrsBenefit.ts, libs/benefits/models/benefitIndexModel.spec.ts, libs/benefits/models/benefitIndexModel.ts, libs/benefits/models/nsssBenefitDetailsModel.spec.ts, libs/benefits/models/nsssBenefitDetailsModel.ts, libs/benefits/project.json, libs/benefits/services/coveragePeriodsSvc.ts, libs/benefits/services/nsssBenefitDetailsSvc.spec.ts, libs/benefits/services/nsssBenefitDetailsSvc.ts, libs/benefits/values/benefitConstants.ts, libs/benefits/views/authorizationsCmp.html, libs/benefits/views/eeBenefitsCmp.html, libs/benefits/views/grsBenefitDetailsCmp.html, libs/benefits/views/supplementalBenefits.html, libs/benefits2/project.json, libs/billpay/assets/styles/partials/reinstateStatusComponent.scss, libs/billpay/components/billPayReinstatePaymentCmp.spec.ts, libs/billpay/components/billPayReinstatePaymentCmp.ts, libs/billpay/project.json, libs/care-gap/project.json, libs/castlight/project.json, libs/charts/project.json, libs/chat/project.json, libs/claim-form/project.json, libs/claims/project.json, libs/clinical/components/displayQuestionnaireCmp.spec.ts, libs/clinical/components/displayQuestionnaireCmp.ts, libs/clinical/config/config.default.ts, libs/clinical/config/iConfig.ts, libs/clinical/project.json, libs/clinical/services/clinicalQuestionnaireApi.spec.ts, libs/clinical/services/clinicalQuestionnaireApi.ts, libs/clinical/views/displayQuestionnaire.html, libs/cobrowse/project.json, libs/common/project.json, libs/community-resources/project.json, libs/contactus/project.json, libs/core/project.json, libs/covid/project.json, libs/dashboard/assets/styles/partials/personalizationChecklist.scss, libs/dashboard/assets/styles/partials/personalizationSlideout.scss, libs/dashboard/components/personalizationChecklistCmp.content.ts, libs/dashboard/project.json, libs/dashboard/views/personalizationChecklistCmp.html, libs/discount/project.json, libs/engage-actionplans/project.json, libs/engage-content/components/healthNewsWhatsNewCmp.content.ts, libs/engage-content/components/healthNewsWhatsNewCmp.ts, libs/engage-content/models/healthNewsModel.spec.ts, libs/engage-content/models/healthNewsModel.ts, libs/engage-content/project.json, libs/engage-devices/project.json, libs/engage-employer-challenges/project.json, libs/engage-programs/project.json, libs/engage-rewards/project.json, libs/engage-self-report/project.json, libs/engage/project.json, libs/faq/project.json, libs/forms/project.json, libs/health-wellness/project.json, libs/http/project.json, libs/idcards/project.json, libs/insurance/project.json, libs/kodiak-procedures/project.json, libs/legal/project.json, libs/main/project.json, libs/mbrportal/project.json, libs/microapps/project.json, libs/my-health-records/project.json, libs/navigation/project.json, libs/partner-carveout/project.json, libs/pcp/project.json, libs/pharmacy-carveout/project.json, libs/pharmacy-common/project.json, libs/pharmacy-one-click-order/project.json, libs/pharmacy-prescriptions-checkout/project.json, libs/pharmacy-rapid-delivery/project.json, libs/pharmacy-thirdparty-integration/project.json, libs/pharmacy/assets/styles/partials/vendorAHDReviewRefill.scss, libs/pharmacy/assets/styles/partials/vendorManageAutoEnrollment.scss, libs/pharmacy/assets/styles/partials/vendorPharmacyCardComponent.scss, libs/pharmacy/assets/styles/partials/vendorUnifiedCardCmp.scss, libs/pharmacy/components/linkViewComponent.ts, libs/pharmacy/components/prescriptionHomeCmpV2.spec.ts, libs/pharmacy/components/prescriptionHomeCmpV2.ts, libs/pharmacy/components/switchNinetyNewPrescriptionCmp.spec.ts, libs/pharmacy/components/switchNinetyNewPrescriptionCmp.ts, libs/pharmacy/components/vendorCouponComponent.content.ts, libs/pharmacy/components/vendorCouponComponent.ts, libs/pharmacy/components/vendorManageAutoCmp.spec.ts, libs/pharmacy/components/vendorManageAutoCmp.ts, libs/pharmacy/components/vendorManageAutoReviewCmp.spec.ts, libs/pharmacy/components/vendorManageAutoReviewCmp.ts, libs/pharmacy/components/vendorOrderDetailsPostpayCmp.ts, libs/pharmacy/components/vendorOrderDetailsPrepayCmp.ts, libs/pharmacy/components/vendorPaymentWalletCmp.spec.ts, libs/pharmacy/components/vendorPaymentWalletCmp.ts, libs/pharmacy/components/vendorPrescriptionReviewCmp.ts, libs/pharmacy/components/vendorRenewRefillCmp.content.ts, libs/pharmacy/components/vendorRenewRefillCmp.spec.ts, libs/pharmacy/components/vendorRenewRefillCmp.ts, libs/pharmacy/components/vendorReviewOrderPaymentCmp.spec.ts, libs/pharmacy/components/vendorReviewOrderPaymentCmp.ts, libs/pharmacy/components/vendorReviewOrderReceiptCmp.ts, libs/pharmacy/content/vendorPriceMedicationCmp.content.ts, libs/pharmacy/enums/vendorPaymentWallet.ts, libs/pharmacy/interfaces/vendorPaymentWallet.ts, libs/pharmacy/interfaces/vendorPharmacyCardComponent.ts, libs/pharmacy/mocks/mockVendorTherapeuticAlternativeDrugs.ts, libs/pharmacy/mocks/orderStatusMock.ts, libs/pharmacy/mocks/vendorPriceMedication.ts, libs/pharmacy/models/prescriptionListModelV2.spec.ts, libs/pharmacy/models/prescriptionListModelV2.ts, libs/pharmacy/models/prescriptionModelV2.spec.ts, libs/pharmacy/models/prescriptionModelV2.ts, libs/pharmacy/models/vendorPrescriptionReviewModel.spec.ts, libs/pharmacy/models/vendorPrescriptionReviewModel.ts, libs/pharmacy/models/vendorPriceMedicationMailDrugModel.spec.ts, libs/pharmacy/models/vendorPriceMedicationMailDrugModel.ts, libs/pharmacy/models/vendorPriceMedicationModel.spec.ts, libs/pharmacy/models/vendorPriceMedicationModel.ts, libs/pharmacy/models/vendorReviewOrderModel.spec.ts, libs/pharmacy/models/vendorReviewOrderModel.ts, libs/pharmacy/models/vendorTherapeuticAlternativeDrugModel.ts, libs/pharmacy/project.json, libs/pharmacy/services/cvsPharmacySvc.spec.ts, libs/pharmacy/services/cvsPharmacySvc.ts, libs/pharmacy/views/reviewOrder.html, libs/pharmacy/views/switchNinetyNewPrescriptionCmp.html, libs/pharmacy/views/vendorAHDReviewRefill.html, libs/pharmacy/views/vendorCoupon.html, libs/pharmacy/views/vendorManageAuto.html, libs/pharmacy/views/vendorManageAutoEnrollment.html, libs/pharmacy/views/vendorOrderDetailsPrepay.html, libs/pharmacy/views/vendorPaymentWalletCmp.html, libs/pharmacy/views/vendorPaymentWalletSummaryCmp.html, libs/pharmacy/views/vendorPharmacyCardComponent.html, libs/pharmacy/views/vendorRenewRefill.html, libs/pharmacy/views/vendorUnifiedCardCmp.html, libs/privacy/project.json, libs/profile/assets/styles/partials/profilev2.scss, libs/profile/assets/styles/partials/vendorDeliveryCmp.scss, libs/profile/components/vendorAdditionalInsuranceCmp.spec.ts, libs/profile/components/vendorAdditionalInsuranceCmp.ts, libs/profile/components/vendorDeliveryAddressCmp.content.ts, libs/profile/interfaces/vendorCommunicationSettingsSummary.ts, libs/profile/project.json, libs/profile/views/alternateAndPrimaryPhoneCmp.html, libs/profile/views/careGiverCmp.html, libs/profile/views/dashboardPrimaryContactDetailsCmp.html, libs/profile/views/primaryAddressCmp.html, libs/profile/views/vendorAdditionalInsuranceCmp.html, libs/profile/views/vendorCommunicationSettingsSummaryComponent.html, libs/profile/views/vendorDeliveryAddressSummaryCmp.html, libs/profile/views/vendorDeliveryCmp.html, libs/provider-finder/project.json, libs/reimbursements/project.json, libs/route/project.json, libs/search-provider/project.json, libs/secure-message/assets/styles/partials/messagesV2.scss, libs/secure-message/components/appealGreivanceCmp.spec.ts, libs/secure-message/components/appealGreivanceCmp.ts, libs/secure-message/components/messageComposeCmp.content.ts, libs/secure-message/enums/features.ts, libs/secure-message/project.json, libs/secure-message/values/messageListConstants.ts, libs/secure-message/views/appealGreivance.html, libs/shared/components/sidePanelCmp.spec.ts, libs/shared/components/sidePanelCmp.ts, libs/shared/project.json, libs/smartrewards/project.json, libs/sms-resources/project.json, libs/spending-accounts/project.json, libs/sso/project.json, libs/test/jsons/prescriptionHomeMockData.ts, libs/test/project.json, libs/utility/project.json, libs/utility/services/navigationHelper.ts, libs/vivr/project.json, package-lock.json, package.json, tools/node-modules-overrides/istanbul-reports/lib/json/index.js, tools/nx-custom-remote-cache/index.js, tools/scripts/microapps/setup.js, tools/scripts/tasks/build/ng-build.ts, tools/scripts/tasks/common/get-args.ts, tools/scripts/tasks/linters/ts.ts, tools/scripts/tasks/serve/ng-serve.ts, tools/scripts/tasks/unit-test/generate-cumulative-coverage-reports.ts, tools/scripts/tasks/unit-test/ng-test.ts, tools/scripts/test.ts, tools/test/jest-minimal-reporter.js, tools/test/jest.preset.angular.tsp AC64500@LNJ0CK2CP2H memberportal-ui % npx nx show projects --affected --files=.prettierignore,app/build-tools/withCustomModuleFederation.js,app/tcp-automation/.gitignore,app/tcp-navigation/project.json,app/tcp-pharmacy/project.json,app/tcp-profile/project.json,app/tcp-test/project.json,app/tcp/main/services/appInitializer.ts,app/tcp/project.json,app/tcp/tsconfig.app.json,libs/aae/project.json,libs/back-to-top/project.json,libs/benefits/assets/styles/partials/authsRefer.scss,libs/benefits/assets/styles/partials/benefits.scss,libs/benefits/assets/styles/partials/eeBenefits.scss,libs/benefits/components/authorizationsCmp.spec.ts,libs/benefits/components/authorizationsCmp.ts,libs/benefits/components/authsAndRefsCmp.content.ts,libs/benefits/components/eeBenefitsCmp.spec.ts,libs/benefits/components/eeBenefitsCmp.ts,libs/benefits/components/findGRSBenefitsCmp.ts,libs/benefits/components/grsBenefitDetailsCmp.spec.ts,libs/benefits/components/nsssGbdBenefitDetailsCmp.content.ts,libs/benefits/components/nsssGbdBenefitDetailsCmp.spec.ts,libs/benefits/components/nsssGbdBenefitDetailsCmp.ts,libs/benefits/components/supplementalBenefitsCmp.spec.ts,libs/benefits/components/supplementalBenefitsCmp.ts,libs/benefits/config/config.ci1aws.ts,libs/benefits/config/config.default.ts,libs/benefits/config/config.environment.ts,libs/benefits/config/config.prod1aws.ts,libs/benefits/config/config.prod2aws.ts,libs/benefits/config/config.sit1aws.ts,libs/benefits/config/config.stage1aws.ts,libs/benefits/config/config.stage2aws.ts,libs/benefits/config/config.ts,libs/benefits/enums/ supplementalBenefitsTypes.ts,libs/benefits/enums/benefitCodes.ts,libs/benefits/enums/features.ts,libs/benefits/interfaces/iGrsBenefit.ts,libs/benefits/models/benefitIndexModel.spec.ts,libs/benefits/models/benefitIndexModel.ts,libs/benefits/models/nsssBenefitDetailsModel.spec.ts,libs/benefits/models/nsssBenefitDetailsModel.ts,libs/benefits/project.json,libs/benefits/services/coveragePeriodsSvc.ts,libs/benefits/services/nsssBenefitDetailsSvc.spec.ts,libs/benefits/services/nsssBenefitDetailsSvc.ts,libs/benefits/values/benefitConstants.ts,libs/benefits/views/authorizationsCmp.html,libs/benefits/views/eeBenefitsCmp.html,libs/benefits/views/grsBenefitDetailsCmp.html,libs/benefits/views/supplementalBenefits.html,libs/benefits2/project.json,libs/billpay/assets/styles/partials/reinstateStatusComponent.scss,libs/billpay/components/billPayReinstatePaymentCmp.spec.ts,libs/billpay/components/billPayReinstatePaymentCmp.ts,libs/billpay/project.json,libs/care-gap/project.json,libs/castlight/project.json,libs/charts/project.json,libs/chat/project.json,libs/claim-form/project.json,libs/claims/project.json,libs/clinical/components/displayQuestionnaireCmp.spec.ts,libs/clinical/components/displayQuestionnaireCmp.ts,libs/clinical/config/config.default.ts,libs/clinical/config/iConfig.ts,libs/clinical/project.json,libs/clinical/services/clinicalQuestionnaireApi.spec.ts,libs/clinical/services/clinicalQuestionnaireApi.ts,libs/clinical/views/displayQuestionnaire.html,libs/cobrowse/project.json,libs/common/project.json,libs/community-resources/project.json,libs/contactus/project.json,libs/core/project.json,libs/covid/project.json,libs/dashboard/assets/styles/partials/personalizationChecklist.scss,libs/dashboard/assets/styles/partials/personalizationSlideout.scss,libs/dashboard/components/personalizationChecklistCmp.content.ts,libs/dashboard/project.json,libs/dashboard/views/personalizationChecklistCmp.html,libs/discount/project.json,libs/engage-actionplans/project.json,libs/engage-content/components/healthNewsWhatsNewCmp.content.ts,libs/engage-content/components/healthNewsWhatsNewCmp.ts,libs/engage-content/models/healthNewsModel.spec.ts,libs/engage-content/models/healthNewsModel.ts,libs/engage-content/project.json,libs/engage-devices/project.json,libs/engage-employer-challenges/project.json,libs/engage-programs/project.json,libs/engage-rewards/project.json,libs/engage-self-report/project.json,libs/engage/project.json,libs/faq/project.json,libs/forms/project.json,libs/health-wellness/project.json,libs/http/project.json,libs/idcards/project.json,libs/insurance/project.json,libs/kodiak-procedures/project.json,libs/legal/project.json,libs/main/project.json,libs/mbrportal/project.json,libs/microapps/project.json,libs/my-health-records/project.json,libs/navigation/project.json,libs/partner-carveout/project.json,libs/pcp/project.json,libs/pharmacy-carveout/project.json,libs/pharmacy-common/project.json,libs/pharmacy-one-click-order/project.json,libs/pharmacy-prescriptions-checkout/project.json,libs/pharmacy-rapid-delivery/project.json,libs/pharmacy-thirdparty-integration/project.json,libs/pharmacy/assets/styles/partials/vendorAHDReviewRefill.scss,libs/pharmacy/assets/styles/partials/vendorManageAutoEnrollment.scss,libs/pharmacy/assets/styles/partials/vendorPharmacyCardComponent.scss,libs/pharmacy/assets/styles/partials/vendorUnifiedCardCmp.scss,libs/pharmacy/components/linkViewComponent.ts,libs/pharmacy/components/prescriptionHomeCmpV2.spec.ts,libs/pharmacy/components/prescriptionHomeCmpV2.ts,libs/pharmacy/components/switchNinetyNewPrescriptionCmp.spec.ts,libs/pharmacy/components/switchNinetyNewPrescriptionCmp.ts,libs/pharmacy/components/vendorCouponComponent.content.ts,libs/pharmacy/components/vendorCouponComponent.ts,libs/pharmacy/components/vendorManageAutoCmp.spec.ts,libs/pharmacy/components/vendorManageAutoCmp.ts,libs/pharmacy/components/vendorManageAutoReviewCmp.spec.ts,libs/pharmacy/components/vendorManageAutoReviewCmp.ts,libs/pharmacy/components/vendorOrderDetailsPostpayCmp.ts,libs/pharmacy/components/vendorOrderDetailsPrepayCmp.ts,libs/pharmacy/components/vendorPaymentWalletCmp.spec.ts,libs/pharmacy/components/vendorPaymentWalletCmp.ts,libs/pharmacy/components/vendorPrescriptionReviewCmp.ts,libs/pharmacy/components/vendorRenewRefillCmp.content.ts,libs/pharmacy/components/vendorRenewRefillCmp.spec.ts,libs/pharmacy/components/vendorRenewRefillCmp.ts,libs/pharmacy/components/vendorReviewOrderPaymentCmp.spec.ts,libs/pharmacy/components/vendorReviewOrderPaymentCmp.ts,libs/pharmacy/components/vendorReviewOrderReceiptCmp.ts,libs/pharmacy/content/vendorPriceMedicationCmp.content.ts,libs/pharmacy/enums/vendorPaymentWallet.ts,libs/pharmacy/interfaces/vendorPaymentWallet.ts,libs/pharmacy/interfaces/vendorPharmacyCardComponent.ts,libs/pharmacy/mocks/mockVendorTherapeuticAlternativeDrugs.ts,libs/pharmacy/mocks/orderStatusMock.ts,libs/pharmacy/mocks/vendorPriceMedication.ts,libs/pharmacy/models/prescriptionListModelV2.spec.ts,libs/pharmacy/models/prescriptionListModelV2.ts,libs/pharmacy/models/prescriptionModelV2.spec.ts,libs/pharmacy/models/prescriptionModelV2.ts,libs/pharmacy/models/vendorPrescriptionReviewModel.spec.ts,libs/pharmacy/models/vendorPrescriptionReviewModel.ts,libs/pharmacy/models/vendorPriceMedicationMailDrugModel.spec.ts,libs/pharmacy/models/vendorPriceMedicationMailDrugModel.ts,libs/pharmacy/models/vendorPriceMedicationModel.spec.ts,libs/pharmacy/models/vendorPriceMedicationModel.ts,libs/pharmacy/models/vendorReviewOrderModel.spec.ts,libs/pharmacy/models/vendorReviewOrderModel.ts,libs/pharmacy/models/vendorTherapeuticAlternativeDrugModel.ts,libs/pharmacy/project.json,libs/pharmacy/services/cvsPharmacySvc.spec.ts,libs/pharmacy/services/cvsPharmacySvc.ts,libs/pharmacy/views/reviewOrder.html,libs/pharmacy/views/switchNinetyNewPrescriptionCmp.html,libs/pharmacy/views/vendorAHDReviewRefill.html,libs/pharmacy/views/vendorCoupon.html,libs/pharmacy/views/vendorManageAuto.html,libs/pharmacy/views/vendorManageAutoEnrollment.html,libs/pharmacy/views/vendorOrderDetailsPrepay.html,libs/pharmacy/views/vendorPaymentWalletCmp.html,libs/pharmacy/views/vendorPaymentWalletSummaryCmp.html,libs/pharmacy/views/vendorPharmacyCardComponent.html,libs/pharmacy/views/vendorRenewRefill.html,libs/pharmacy/views/vendorUnifiedCardCmp.html,libs/privacy/project.json,libs/profile/assets/styles/partials/profilev2.scss,libs/profile/assets/styles/partials/vendorDeliveryCmp.scss,libs/profile/components/vendorAdditionalInsuranceCmp.spec.ts,libs/profile/components/vendorAdditionalInsuranceCmp.ts,libs/profile/components/vendorDeliveryAddressCmp.content.ts,libs/profile/interfaces/vendorCommunicationSettingsSummary.ts,libs/profile/project.json,libs/profile/views/alternateAndPrimaryPhoneCmp.html,libs/profile/views/careGiverCmp.html,libs/profile/views/dashboardPrimaryContactDetailsCmp.html,libs/profile/views/primaryAddressCmp.html,libs/profile/views/vendorAdditionalInsuranceCmp.html,libs/profile/views/vendorCommunicationSettingsSummaryComponent.html,libs/profile/views/vendorDeliveryAddressSummaryCmp.html,libs/profile/views/vendorDeliveryCmp.html,libs/provider-finder/project.json,libs/reimbursements/project.json,libs/route/project.json,libs/search-provider/project.json,libs/secure-message/assets/styles/partials/messagesV2.scss,libs/secure-message/components/appealGreivanceCmp.spec.ts,libs/secure-message/components/appealGreivanceCmp.ts,libs/secure-message/components/messageComposeCmp.content.ts,libs/secure-message/enums/features.ts,libs/secure-message/project.json,libs/secure-message/values/messageListConstants.ts,libs/secure-message/views/appealGreivance.html,libs/shared/components/sidePanelCmp.spec.ts,libs/shared/components/sidePanelCmp.ts,libs/shared/project.json,libs/smartrewards/project.json,libs/sms-resources/project.json,libs/spending-accounts/project.json,libs/sso/project.json,libs/test/jsons/prescriptionHomeMockData.ts,libs/test/project.json,libs/utility/project.json,libs/utility/services/navigationHelper.ts,libs/vivr/project.json,package-lock.json,package.json,tools/node-modules-overrides/istanbul-reports/lib/json/index.js,tools/nx-custom-remote-cache/index.js,tools/scripts/microapps/setup.js,tools/scripts/tasks/build/ng-build.ts,tools/scripts/tasks/common/get-args.ts,tools/scripts/tasks/linters/ts.ts,tools/scripts/tasks/serve/ng-serve.ts,tools/scripts/tasks/unit-test/generate-cumulative-coverage-reports.ts,tools/scripts/tasks/unit-test/ng-test.ts,tools/scripts/test.ts,tools/test/jest-minimal-reporter.js,tools/test/jest.preset.angular.ts

OUTPUT: ONLY HAS below list which is smaller than above ci tcp-navigation tcp-pharmacy tcp-profile tcp-test tcp lib-aae lib-back-to-top lib-benefits lib-claim-form lib-benefits2 lib-insurance lib-test

Expected Behavior

affected projects should be same when number of files passed to --files argument (with common files)

GitHub Repo

No response

Steps to Reproduce

  1. listed in above current behaviour

Nx Report

Node   : 16.20.0
   OS     : darwin-arm64
   npm    : 8.19.4

   nx                 : 17.2.8
   @nx/js             : 17.2.8
   @nx/jest           : 17.2.8
   @nx/linter         : 17.2.8
   @nx/eslint         : 17.2.8
   @nx/workspace      : 17.2.8
   @nx/angular        : 17.2.8
   @nx/cypress        : 17.2.8
   @nx/devkit         : 17.2.8
   @nx/eslint-plugin  : 17.2.8
   @nrwl/tao          : 17.2.8
   @nx/web            : 17.2.8
   @nx/webpack        : 17.2.8
   nx-cloud           : 16.5.2
   typescript         : 4.9.5
   ---------------------------------------
   Community plugins:
   rxjs : 6.6.7

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

No response

mlakmal commented 9 months ago

it seems like args is omitting most of the files in --files argument when called in below function.

async function showProjectsHandler(args) { let graph = await (0, project_graph_1.createProjectGraphAsync)(); const nxJson = (0, nx_json_1.readNxJson)(); const { nxArgs } = (0, command_line_utils_1.splitArgsIntoNxArgsAndOverrides)(args, 'affected', { printWarnings: false, }, nxJson);

mlakmal commented 9 months ago

looks like this is an issue in yargs parser thats used in nrwl/nx. it doesnt support large input in single input arg. i was able to overcome this by splitting same arg to multiple inputs like below with shorter values

--files=test1.js,test2.js --files=test3.js,test4.js

github-actions[bot] commented 8 months ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.