---
## Open Science and OSPO at CERN
###### Giacomo Tenaglia for CERN OSPO - ACTS workshop - 2024-11-21
---
## Agenda
* Open Science and OSPO at CERN.
* Best practices for license compliance.
* Project/community health metrics.
---
## Open Source 101
###### Disclaimer: I am not a lawyer
* Copyright holder:
* Not necessarily the author
* Has **exclusive** rights to authorise certain actions
* Open-source license: a ~~hack~~tool to authorise actions on copyrighted software
* "The 4 freedoms": use, study, share, improve
* Sometimes: make sure "derivative work" preserves the 4 freedoms
* [CERN Academic Training Open Source 2023.](https://indico.cern.ch/e/opensource-2023)
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_557880fc5b125c9e9734b83b81c2559c.png" data-background-size="cover" data-background-opacity=".1" -->
## Open Science at CERN
###### [CERN Convention (1953)](https://council.web.cern.ch/en/content/convention-establishment-european-organization-nuclear-research)
> "...and the results of its experimental and theoretical work shall be published or otherwise made generally available"
---
## Open Science at CERN
###### Driving Open Science Globally
![](https://codimd.web.cern.ch/uploads/upload_40d17f2fb66c80c0f304c520aff49b77.png)<!-- .element style="border: 0; box-shadow: none; height: 100%; width: 100%;" -->
---
## Open Source & Open Science
* Some of CERN’s [Open Science](https://openscience.cern) elements, from its [Policy](https://openscience.cern/policies):
* Open Access
* Open Data
* **Open Source**
* Research Integrity
* Open Infrastructure
* Research Assessment
---
## Open Source at CERN
###### Milestones
![](https://codimd.web.cern.ch/uploads/upload_f840f5ab61206fd8f9f12c34c4e2e52e.png)<!-- .element style="border: 0; box-shadow: none; height: 100%; width: 100%;" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_880481a541fcad981a8210a5ad1e6dbc.png" data-background-size="contain" data-background-opacity=".1" -->
## Open Source at CERN
###### Milestones
* 1970: [First CERN Computing and Data Handling School.](https://cds.cern.ch/record/186419)
* 1983: [HEPVM tape distributed freely to more than 30 sites.](https://cerncourier.com/a/computing-at-cern-the-mainframe-era/)
* 1984: [CERN makes Cernlib "freely available" to other labs.](https://ref.web.cern.ch/ref/CERN/CNL/2001/001/cernlib/)
* 1994: ["Licensing the Web" as Open Source.](https://home.cern/science/computing/birth-web/licensing-web)
* 2011: [CERN Open Hardware License released.](https://cern-ohl.web.cern.ch/)
* 2012: [CERN Open Source License Task Force report.](https://cds.cern.ch/record/1482206?ln=en)
* 2019: [MALT project.](https://malt.web.cern.ch/malt/)
* 2022: [CERN Open Science Policy.](https://openscience.cern/policies)
* 2023: [Creation of CERN Open Source Program Office.](https://opensource.cern)
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_b69f22b42c84f261e11aff7a80cf5ccf.png" data-background-size="60%" data-background-opacity=".1" -->
## CERN OSPO
###### Open Source Program Office
* Official body at CERN to support open-source hardware + software
* [Mandate approved May 2023.](https://cds.cern.ch/record/2879995)
* Inter-departmental, cross-organization body: rare yet good uptake.
* 12 official representatives (10..20% FTE each): experienced practitioners.
* Substantial offer by CERN, for CERN staff and users.
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_b69f22b42c84f261e11aff7a80cf5ccf.png" data-background-size="60%" data-background-opacity=".1" -->
## CERN OSPO in practice
###### 2024 (the first year)
* 41 email conversations, 25 forum topics:
* 9 requests for open-sourcing.
* 7 instances of help with licensing.
* 13 external contacts.
* Conferences: CHEP (OSPO, catalogues), FPGA Dev Forum, FOSS Backstage.
* 5 presentations outside CERN.
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_b69f22b42c84f261e11aff7a80cf5ccf.png" data-background-size="60%" data-background-opacity=".1" -->
## CERN OSPO in practice
###### A few current/future initiatives
* [Technical website](https://ospo.docs.cern.ch):
* Key concepts, recommendations, how-to guides.
* "License chooser" (MPL 2.0?).
* [Project with Software Heritage](https://opensource.cern/cern-open-source-heritage): measuring impact.
* CERN-made software/hardware catalogues.
* CERN sponsoring non-CERN open source we rely on?
* ...
---
## Best practices for license compliance
---
## (Previous) CERN guidelines
* [Open Source Software Licence Task Force report (2012)](https://cds.cern.ch/record/1482206?ln=en)
* [Policy on Software Dissemination (2017)](https://indico.cern.ch/event/722019/contributions/2968146/attachments/1654484/2647882/SW_policy_CERN_final.pdf)
```
# Copyright (C) 2023, CERN
#
# This software is distributed under the terms of the GNU General Public
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
#
# In applying this license, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
```
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_8a1cb96507476c38f00c945d48e46b89.jpg"; data-background-size="cover" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_cb0bbc0edff291d1d1219da5ef3402f3.png"; data-background-size="contain" -->
---
## REUSE
###### https://reuse.software
* FSFE initiative
* Machine/human-readable annotations
* Pros: automation, standardisation
* Cons: repo modifications
* https://reuse.software/tutorial/
---
## REUSE: provide licenses
###### https://reuse.software
![](https://codimd.web.cern.ch/uploads/upload_aa1bb8bda4fbca2f3a9c1798a064dba7.png)
---
## REUSE: add © and license
###### https://reuse.software
In each file:
```
$ head pytest/regressions/test_reprogramming.py
"""
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: 2022 CERN
"""
import json
```
SPDX: [Software Package Data Exchange](https://spdx.dev/)
---
## REUSE: confirm compliance
###### https://reuse.software
```
$ pipx run reuse lint
# SUMMARY
* Bad licenses:
* Deprecated licenses:
* Licenses without file extension:
* Missing licenses:
* Unused licenses:
* Used licenses: CC-BY-SA-4.0, CC0-1.0, CERN-OHL-W-2.0+, GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later
* Read errors: 0
* Files with copyright information: 182 / 182
* Files with license information: 182 / 182
Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
```
---
## Examples
* https://github.com/fsfe/reuse-tool
* https://github.com/giacomd/covfie
---
## Project/community health metrics
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_83d7afc6a8241d920972eb62c5af70f4.png"; data-background-size="contain" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_ff6bd2fc8c27dd0eeb562947139d3672.png"; data-background-size="contain" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_9cf08fbd19d25d09eba64a38efc11a39.png"; data-background-size="contain" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_1e85f5112381ccb17a8a8e1cfb219310.png"; data-background-size="contain" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_4815ea5a855085508ed9ac3c1090a5d5.png"; data-background-size="contain" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_74c54d99ffe08a2b10a2b9579807bd86.png"; data-background-size="contain" -->
---
## CHAOSS Metrics
###### https://chaoss.community/
* Linux Foundation project focused on having a "data science approach" to FOSS community metrics.
* [Metrics KB](https://chaoss.community/kb-metrics-and-metrics-models/)
* [Maintained/sponsored software](https://chaoss.community/software/)
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_148ab6da2c367c6f5e61ef80f025c752.png"; data-background-size="contain" -->
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_4a44a9a969f75c22b061181dda54d16d.png"; data-background-size="contain" -->
---
## Demo
* [Demo for acts-project/acts](https://cauldron.io/project/8759?from_date=2023-11-21&to_date=2024-11-21&tab=overview)
---
## CHAOSS pointers
* [Strategies for Building Healthy Open Source Communities](https://archive.fosdem.org/2024/schedule/event/fosdem-2024-1938-strategies-for-building-healthy-open-source-communities/) (FOSDEM 2024)
* [From data tsunami to actionable insights](https://osseu2024.sched.com/event/1ej4m/from-data-tsunami-to-actionable-insights-dawn-foster-chaoss-cali-dolfi-red-hat) (OSSEU 2024)
---
<!-- .slide: data-background="https://codimd.web.cern.ch/uploads/upload_b69f22b42c84f261e11aff7a80cf5ccf.png" data-background-size="60%" data-background-opacity=".1" -->
## Thank you!
###### You are doing a great job!
* CERN OSPO: Open.Source@cern.ch
* https://ospo.docs.cern.ch - Technical documentation
* https://ospo.web.cern.ch - Discussion forum (CERN account required)
---
{"title":"Open Science and OSPO at CERN @ ACTS","date":"2024-11-21T00:00:00.000Z","author":"Giacomo Tenaglia <Giacomo.Tenaglia@cern.ch>","tags":"presentation, OSPO, ACTS","slideOptions":{"transition":"slide","theme":"cern4","slideNumber":true}}