finos / community

FINOS Community, Project and SIG wide collaboration space
http://community.finos.org
66 stars 28 forks source link

CDM Technical On-Boarding - FINOS Internal only #205

Closed robmoffat closed 1 year ago

robmoffat commented 2 years ago

Contribution process (v. 1.1, last updated on December 20, 2021)

Below is the list of tasks that FINOS Team and the contribution author go through in order to complete the FINOS contribution process.

Identify project meta (Lead: FINOS Contrib POC, Support: FINOS Marketing)

Maintainers, contributors and CLAs (Lead: FINOS Contrib POC, Support: FINOS infra)

Project Communication Channel(s)

Code validation (only if code is contributed) (Lead: FINOS Infra)

Generated code

Approval (Lead: FINOS Infra)

Code transfer (Lead: FINOS Infra)

Infra setup (Lead: FINOS Infra)

Announcement (Lead: FINOS Contrib POC)

robmoffat commented 2 years ago

@minesh-s-patel @iansloyan

iansloyan commented 2 years ago

Yes I have access now, thank you @robmoffat

minesh-s-patel commented 2 years ago

README file is available in this PR: https://github.com/REGnosys/rosetta-cdm/blob/5026e807e1f6889a48fec9ea8cc8832ddf62a4b1/README.md

robmoffat commented 2 years ago

Update for 13 October 2022:

minesh-s-patel commented 2 years ago

@robmoffat

The Current CDM Github will have its first stable release (3.0.0) in the next couple of weeks. The 3.0.0 will be the candidate version that will be contributed to FINOS.

Tech tasks in order

robmoffat commented 2 years ago

Update 19th October 2022:

From @minesh-s-patel:

The Current CDM Github will have its first stable release (3.0.0) in the next couple of weeks

CDM 3.0.0 on Nov 7th.

From @iansloyan:

Agreed in the meeting:

robmoffat commented 2 years ago

From 24 Oct Meeting:

robmoffat commented 2 years ago

From 28 Oct Meeting:

robmoffat commented 2 years ago

Hi @minesh-s-patel,

@maoo and I are looking at trying to complete the code validation steps ahead of the repo transfer later this week. We are running into some build issues both on rosetta-cdm and rosetta-dsl.

First, on rosetta-dsl:


mvn install 

...

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project com.regnosys.rosetta: Could not resolve dependencies for project com.regnosys.rosetta:com.regnosys.rosetta:eclipse-plugin:0.0.0.master: Could not find artifact org.eclipse.xsemantics:org.eclipse.xsemantics.runtime:jar:1.20.0-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

On rosetta-cdm:

mvn org.owasp:dependency-check-maven:check -DfailBuildOnCVSS=7     

....

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cdm: Could not resolve dependencies for project com.isda:cdm:jar:0.0.0.master: The following artifacts could not be resolved: com.regnosys.rosetta:com.regnosys.rosetta.lib:jar:4.44.2, com.regnosys.rosetta:com.regnosys.rosetta.blueprints:jar:4.44.2, com.regnosys:rosetta-common:jar:3.18.0, com.regnosys:rosetta-testing:jar:3.18.0, com.regnosys:ingest-test-framework:jar:3.18.0: Failure to find com.regnosys.rosetta:com.regnosys.rosetta.lib:jar:4.44.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

@maoo tells me there is an issue raised for this already: https://github.com/REGnosys/rosetta-dsl/pull/417 This is the one right?

robmoffat commented 2 years ago

From 9 Nov Meeting:

robmoffat commented 2 years ago

Nov 16:

NB: ICMA contribution is a mandatory dependency. No sight of where this is right now. @iansloyan says it is going through the approval process.

robmoffat commented 2 years ago

23rd Nov:

CVE Scanning

Independent Build

@iansloyan 's PR:

robmoffat commented 1 year ago

30th Nov:

Independent Build

CVE Scanning

LIcense Scanning

@iansloyan 's PR

minesh-s-patel commented 1 year ago

The GitHub Actions PR cannot be merged because the REGnosys CDM Repo does not support github actions (CDM project: https://github.com/REGnosys/rosetta-cdm/pull/1847). This PR can be merged once migrated to the open source finos org.

minesh-s-patel commented 1 year ago

@robmoffat

I ran the following command (from your github actions PR) and the build was successful

What was the issue you was seeing?

mvn org.codehaus.mojo:license-maven-plugin:2.0.0:download-licenses
minesh-s-patel commented 1 year ago

I think we have a clean run for licences. @maoo @robmoffat CAn you confirm when you have a sec?

> export ALLOW_LICENSES="'The Apache Software License, Version 2.0' and licenses/license/name!='BSD' and licenses/license/name!='BSD-style license' and licenses/license/name!='Apache License, Version 2.0'"

> export REPORT_PATH="target/generated-resources/licenses.xml"

> mvn org.codehaus.mojo:license-maven-plugin:2.0.0:download-licenses
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for cdm-parent 0.0.0.master:
[INFO]
[INFO] cdm-parent ......................................... SUCCESS [  1.283 s]
[INFO] rosetta-source ..................................... SUCCESS [ 11.508 s]
[INFO] scheme-import ...................................... SUCCESS [  7.329 s]
[INFO] rosetta-project .................................... SUCCESS [  3.068 s]
[INFO] tests .............................................. SUCCESS [  1.698 s]
[INFO] isda-demo .......................................... SUCCESS [  0.195 s]
[INFO] cdm-distribution ................................... SUCCESS [  0.201 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  25.544 s
[INFO] Finished at: 2022-12-13T09:42:45Z
[INFO] ------------------------------------------------------------------------

> xq "//dependency[licenses/license/name!=$ALLOW_LICENSES]" ./$REPORT_PATH
<results/>
minesh-s-patel commented 1 year ago

@robmoffat

Can you please mark the following as checked?

Logo is accepted by stakeholders (We used the logo at OSFF - so we can mark that one off) Minesh identifies all (future) contributors to CDM The code bindings build process runs successfully. Status: waiting on refactor to new namespaces / structure > 7th Nov The codebase doesn’t have any unfriendly licenses across direct and transitive libraries

Only thing on my list:

The codebase doesn’t have HIGH or CRITICAL CVEs across direct and transitive libraries

This is incorrectly marked as done.

Rob & Mao: Add section about contributing via Legend (add limitations)

Most of the other actions are either for ISDA/ISLA/ICMA/FINOS or require information in order to complete (e.g. what to put in the NOTICE file?)

maoo commented 1 year ago

CVE and license scanning are green on Rosetta CDM. Well done @minesh-s-patel !

https://github.com/finos/rosetta-cdm/actions/runs/3684917909 https://github.com/finos/rosetta-cdm/actions/runs/3684696554

robmoffat commented 1 year ago

14th Dec:

Main areas still to resolve prior to onboarding:

After Onboarding:

robmoffat commented 1 year ago

https://jira.linuxfoundation.org/plugins/servlet/desk/portal/4/SUPPORT-14860

maoo commented 1 year ago

Just moved all checks into https://github.com/finos/community/issues/224 . Closing this issue as dup.