NIFI-12999: Revert "Bump webpack-dev-middleware and karma-webpack (#8547)"#8603
NIFI-12999: Revert "Bump webpack-dev-middleware and karma-webpack (#8547)"#8603sardell wants to merge 1 commit intoapache:mainfrom
Conversation
This reverts commit 69f1a3b.
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for flagging this issue @sardell.
As the previous PR has been merged for NIFI-12935, this PR should have a new Jira issue for tracking.
To the substance of the issue, however, can you clarify how this is a problem for a local build as opposed to GitHub Actions build? I see that package-lock.json references Node 18, so it is unclear how this works in automated builds. It also works on recent local builds, so is the issue limited to running Registry unit tests? If it is possible to rescope the changes, as opposed to just reverting that would be ideal, but I understand it may be more complicated.
|
@exceptionfactory Thanks for taking a look. I created https://issues.apache.org/jira/browse/NIFI-12999 to track the issue.
That is a great question, and I'm not 100% sure. Maybe there is some global caching going on with those deps in GitHub Actions or some configuration that causes them to fail silently in that environment, but I'm not sure. I would have to investigate further.
The issue happens to me whenever I try to build the project with maven (used EDIT: In regard to rescoping the changes, we could do that but registry has many outdated deps, specifically Angular 11, that would require much bigger changes than a simple update with npm. |
|
@exceptionfactory I've confirmed with @koccs that he's able to reproduce the issue building the latest from |
@sardell Is it possible to update the version of node that this requires? Possibly in the pom.xml? Or maybe even update the registry's package.json such that we don't fail because of it? I know we don't want to support npm versions less than the minimum but I think newer versions of npm are fine right? I am also a bit confused. I tried to run ➜ main git:(NIFI-12956) ✗ pwd
npm WARN EBADENGINE Unsupported engine { up to date, audited 1427 packages in 1s 179 packages are looking for funding 13 vulnerabilities (1 moderate, 6 high, 6 critical) To address issues that do not require attention, run: To address all issues (including breaking changes), run: Run added 1426 packages, and audited 1427 packages in 17s 179 packages are looking for funding 13 vulnerabilities (1 moderate, 6 high, 6 critical) To address issues that do not require attention, run: To address all issues (including breaking changes), run: Run
webpack was not included as a framework in karma configuration, setting this automatically... 04 04 2024 13:31:13.449:INFO [karma-server]: Karma v6.4.1 server started at http://localhost:9876/ NfRegistryCreateBucket Component isolated unit tests NfRegistryManageUser Component NfRegistry Component NfRegistryManageGroup Component NfRegistryExplorer Component NfRegistryUsersAdministration Component NfRegistryGridListViewer Component NfRegistryCreateNewGroup Component isolated unit tests NfRegistryAdministration Component NfRegistryAddUser Component isolated unit tests NfRegistryAddUsersToGroup Component isolated unit tests NfRegistryAddUserToGroups Component isolated unit tests NfRegistryWorkflowAdministration Component NfRegistry Auth Guard Service NfRegistryResourcesAuthGuard isolated unit tests Chrome 123.0.0.0 (Mac OS 10.15.7) NfRegistry Auth Guard Service NfRegistryResourcesAuthGuard isolated unit tests should navigate to test url (registry security configured and we know who you are) FAILED NfRegistry Auth Guard Service NfRegistryLoginAuthGuard isolated unit tests NfRegistry Service w/ Angular testing utils Chrome 123.0.0.0 (Mac OS 10.15.7): Executed 108 of 245 (1 FAILED) ERROR (11.915 secs / 11.71 secs) =============================== Coverage summary ===============================
|
|
@sardell Running Can you please provide more details on your environment and how you are running this to see this failure? |
|
I'm simply building the project from the root with |
|
Thanks for providing additional details @sardell. As an additional point of reference, I am able to build |
|
@exceptionfactory Thanks for sharing. I investigated a little more and I think I found the issue. There's a configuration property for npm called |
Link to Jira: https://issues.apache.org/jira/browse/NIFI-12999
This PR reverts commit 69f1a3b (PR #8547). This commit on
mainis currently causing local builds of NiFi to fail due to a dependency in nifi-registry's package-lock.json requiring a version of Node.js higher than the one we use to build nifi-registry. cc @scottyaslanSummary
NIFI-00000
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation