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

Scanner: How to upgrade scan-code version from ORT #4296

Closed
porsche-rishisaxena opened this issue Jul 20, 2021 · 12 comments
Closed

Scanner: How to upgrade scan-code version from ORT #4296

porsche-rishisaxena opened this issue Jul 20, 2021 · 12 comments
Labels
question An issue that is actually a question

Comments

@porsche-rishisaxena
Copy link

Scanner: We realized that ORT is running with year old version of scan-code. How to upgrade scan-code version from ORT to its latest version (scan-code)?

@tsteenbe
Copy link
Member

@porsche-rishisaxena We will be soon upgrading to the latest version of ScanCode currently doing upgrade tests, but if you have locally or in your Docker image have newer version of ScanCode the ORT will use it.

@tsteenbe tsteenbe added the question An issue that is actually a question label Jul 21, 2021
@porsche-rishisaxena
Copy link
Author

Thank you @tsteenbe for the providing an update. Would you be so kind to provide some more insight to scan-code version upgrade in context to timelines?

@tsteenbe
Copy link
Member

@porsche-rishisaxena It's currently being worked on, expect at the latest last week of August if all goes well

@sschuberth
Copy link
Member

@tsteenbe I'd be interested in what HERE is doing in the ScanCode upgrading context to maintain compatibility with existing scan results. That's a difficult topic, and one of the reasons why we didn't do the upgrade yet ourselves.

@porsche-rishisaxena
Copy link
Author

@tsteenbe Would you be so kind to provide more information on what version of scan-code is under testing for the upgrade?

We ran multiple test with different version of Scan-Code and the latest version of scan-code also result with a bug.
Reference: #4295 (comment)

@sschuberth
Copy link
Member

sschuberth commented Aug 4, 2021

Would you be so kind to provide more information on what version of scan-code is under testing for the upgrade?

See the draft PR at #4324, it's version 21.7.30 (currently).

@porsche-rishisaxena
Copy link
Author

@tsteenbe: Is there any update on the progress or result from testing on the scan-code upgrade?

@mnonnenmacher
Copy link
Member

mnonnenmacher commented Oct 27, 2021

To give an update on this, I am currently working on some refactorings required to make the ScanCode version configurable. One blocker is currently that the ScanCode license texts included with ORT need to match the used ScanCode version. This will be fixed by #4523 and could later be improved by downloading license texts from https://scancode-licensedb.aboutcode.org/ or by aboutcode-org/scancode-toolkit#2738. This in turn depends on a refactoring of our utils modules which I have started in #4624 and which will require one more PR afterwards. Once this is done we can go ahead with #4582 and let users choose the ScanCode version they want to use, provided that there are no breaking changes in ScanCode's output format.

@porsche-rishisaxena
Copy link
Author

Thank you so much @mnonnenmacher for making this issue progressive.
Is there any possibility to project any tentative timelines on the refactoring and making the scan-code version configurable to be upgraded?
Can we from Porsche AG side help in any way to move things forward in timely manner?

@mnonnenmacher
Copy link
Member

@porsche-rishisaxena I cannot commit to a timeline as this is a side-task for me, but the largest part of the work is already done, so I hope this can be finished within the next two weeks.

@mnonnenmacher
Copy link
Member

@porsche-rishisaxena With the merge of my latest PR (#4669) ORT does not require a specific ScanCode version anymore. We do not yet provide an easy way to build the Docker image with a different ScanCode version, but you could already fork this repository and replace the ScanCode version in the Dockerfile or create your own Dockerfile that inherits from ours.

@sschuberth
Copy link
Member

We do not yet provide an easy way to build the Docker image with a different ScanCode version

This has been resolved meanwhile in #4721, and upgrading ScanCode is now as easy as setting the SCANCODE_VERSION build argument when running docker build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question An issue that is actually a question
Projects
None yet
Development

No branches or pull requests

4 participants