Changes

Summary

  1. fix(graph-metrics): create the files of the metrics DB writable by any user (details)
  2. fix(graph-metrics): tolerate up to 100 duplicated result ids after dedup, as a warning (details)
Commit 2018fba2fe822456b1641dd80b06c9378bdeb8cb by Claudio Atzori
fix(graph-metrics): create the files of the metrics DB writable by any user

The metrics DB is written by the pipeline, which runs as the production user, and
by people repairing a stage. With the default umask a file created by one user
cannot be overwritten by the other, and an unpartitioned table such as
graph_metrics_runs rewrites its _SUCCESS marker at every write, so a run failed
at its last step after computing all the metrics.

The Spark actions of the metrics workflow now set
spark.hadoop.fs.permissions.umask-mode from the optional metricsUmask parameter,
which defaults to 000 (files 666, folders 777). It is a literal of each action
and not part of sparkClusterOpts, which the pipeline workflows override when they
call this workflow as a sub-workflow. Callers do not need to pass it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The file was modifieddhp-workflows/dhp-graph-metrics/README.md
The file was modifieddhp-workflows/dhp-graph-metrics/src/main/resources/eu/dnetlib/dhp/oa/graph/metrics/oozie_app/workflow.xml
Commit ae67fadb6b84259a07554f69854f64d9c0b120ba by Claudio Atzori
fix(graph-metrics): tolerate up to 100 duplicated result ids after dedup, as a warning

The dedup scan of the 20261128 release introduced 24 duplicated result ids
(none in the previous stages). Until they are investigated, up to 100 are
reported as a warning; above it, and for any project id, the rule blocks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The file was modifieddhp-workflows/dhp-graph-metrics/src/main/resources/eu/dnetlib/dhp/oa/graph/metrics/sql/expectations.sql
The file was modifieddhp-workflows/dhp-graph-metrics/src/test/java/eu/dnetlib/dhp/oa/graph/metrics/GraphMetricsJobTest.java