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

Build failed when verifying the setup #1782

Closed
Punpun1643 opened this issue Jun 5, 2022 · 8 comments
Closed

Build failed when verifying the setup #1782

Punpun1643 opened this issue Jun 5, 2022 · 8 comments

Comments

@Punpun1643
Copy link
Contributor

Punpun1643 commented Jun 5, 2022

Hi! I am trying to set up the project. However, while verifying my setup, I face build failure issue below:

Tell us about your environment

RepoSense Version: master branch (my forked repo)
OS and Version: macOS Monterey 12.2.1

Please include the steps to reproduce the bug.

  1. ./gradlew clean build
  2. ./gradlew test systemtest

What was expected to happen?
Both finish with a BUILD SUCCESSFUL message.

What actually happened? Please include a screenshot of the output.
Both finish with a BUILD FAILED message, with > Task :installFrontend FAILED

94F12D68-5AB1-40FE-998A-5E4F050BF2C1_4_5005_c

There seem to be many deprecated packages and there is a message stating that Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0

0F662134-53EA-447D-BE39-23FB43FC789D_4_5005_c
91EEF83A-28D7-4F4D-B234-72E9F3C66C20_4_5005_c
07D7CC08-94EC-41EA-8CD0-81B34E0E9C73_4_5005_c

I found a similar issue #1133 as I was trying to resolve this issue.
Based on the comments, I have tried the following:

  1. Running RepoConfigurationTest.java, all test cases passed.
  2. Running the app from code gradlew run, failed with the above-mentioned errors (failed for task :installFrontend). Report is generated in the reposense-report folder.
  3. Generating report locally, report is generated successfully.

Based on this would it be alright for me to proceed to the next step? Thank you!

@yhtMinceraft1010X
Copy link
Contributor

Thanks for opening this issue. There are already PRs available for some of what is mentioned:

As for the installFrontend failure, I am not sure what is happening at the moment.

@damithc
Copy link
Collaborator

damithc commented Jun 6, 2022

@yhtMinceraft1010X what's the advice for @Punpun1643 on how to proceed with the set up ?

@Punpun1643
Copy link
Contributor Author

Hi @yhtMinceraft1010X, thank you for the response!

I tried doing the necessary updates to match both the PRs mentioned. Link to the updates could be found in this branch
I think the Gradle upgrade seems to work. However, I am still facing issues on the task :installFrontend even after updating the node packages as per #1762

After updating the node packages, I made sure I did the following:

  1. npm update in the cypress directory
  2. Delete the package-lock.json file and node_modules directory and run npm install in the frontend directory
  3. Re-run ./gradlew clean build at the project root.

These are the errors that I am still facing:
FF52E098-D6E1-4F42-BD39-E75AC51F43C5

Is there any advice on how I should proceed? Thank you!

@yhtMinceraft1010X
Copy link
Contributor

@Punpun1643 What's your Node version?

We currently use Node 14.

@Punpun1643
Copy link
Contributor Author

@yhtMinceraft1010X, I'm using v16.15.0, should I downgrade it?

@yhtMinceraft1010X
Copy link
Contributor

@yhtMinceraft1010X, I'm using v16.15.0, should I downgrade it?

Right now we don't have support for Node 16. It's still a work in progress so I suggest downgrading to v14.19.0

@yhtMinceraft1010X
Copy link
Contributor

Right now we don't have support for Node 16. It's still a work in progress so I suggest downgrading to v14.19.0

@Punpun1643 This is a follow-up comment. How's the setting up process at this point in time?

@Punpun1643
Copy link
Contributor Author

@yhtMinceraft1010X, sorry for the late response. I have managed to set up successfully after downgrading to v14.19.0. Thanks a lot for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants