Skip to content
Open
2 changes: 2 additions & 0 deletions .github/workflows/nightly-ci-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ jobs:
path: ${{ env.CI_DASHBOARD_DIR }}/site

deploy_to_github_pages:
# Only the develop branch has permission to publish to GitHub Pages
if: ${{ github.ref_name == 'develop' }}
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build_site
Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/weekly-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:
runs-on: daq
needs: make_nightly_tag
timeout-minutes: 120
env:
TAG: ${{ needs.make_nightly_tag.outputs.tag }}
RESULTS_DIR: ${{ needs.make_nightly_tag.outputs.tag }}/code_coverage_results/html
outputs:
coverage_results_dir: ${{ steps.run_lcov.outputs.results_dir }}
coverage_results_dir: ${{ steps.create_build_area.outputs.results_dir }}
defaults:
run:
shell: bash
Expand All @@ -43,10 +46,11 @@ jobs:
- name: Create build area
id: create_build_area
run: |
echo "results_dir=$RESULTS_DIR" >> "$GITHUB_OUTPUT"
source /cvmfs/dunedaq.opensciencegrid.org/setup_dunedaq.sh
setup_dbt latest_v5
dbt-create -n ${{ needs.make_nightly_tag.outputs.tag }}
cd ${{ needs.make_nightly_tag.outputs.tag }}
dbt-create -n $TAG
cd $TAG
source env.sh
cd ../daq-release-lcov/scripts
./checkout-daq-package.py -i ../configs/coredaq/coredaq-develop/release.yaml -a -o ${DBT_AREA_ROOT}/sourcecode
Expand All @@ -62,13 +66,23 @@ jobs:
dbt-workarea-env
# spack load dbe
dbt-lcov.sh
echo "results_dir=${DBT_AREA_ROOT}/code_coverage_results/html" >> "$GITHUB_OUTPUT"
- name: Create fallback html
if: failure()
run: |
if [[ ! -f "$RESULTS_DIR/index.html" ]]; then
mkdir -p "$RESULTS_DIR"
{
echo "It appears there was a problem with the code coverage workflow."
echo "Contact Software Coordination."
} > "$RESULTS_DIR/index.html"
fi
- name: Upload html output as artifact
if: always()
uses: actions/upload-artifact@v7
with:
if-no-files-found: error
name: code_coverage
path: ${{ steps.run_lcov.outputs.results_dir }}
path: ${{ env.RESULTS_DIR }}

send_slack_message:
if: (github.event_name != 'workflow_dispatch') || (github.event_name == 'workflow_dispatch' && github.event.inputs.send-slack-message == 'yes')
Expand Down
3 changes: 0 additions & 3 deletions scripts/github-ci/ci-dashboard/collect-ci-metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ for REPO in "${dune_packages_with_ci[@]}"; do
gh run download --repo "$FULL_NAME" --name link_checker_log --dir "artifacts/$REPO/" 2>/dev/null
gh run download --repo "$FULL_NAME" --name nightly_linting_results --dir "artifacts/$REPO/" 2>/dev/null
gh run download --repo "$FULL_NAME" --name clang_format_summary --dir "artifacts/$REPO/" 2>/dev/null

# Reset workflow inactivity timer
gh api -X PUT "repos/$FULL_NAME/actions/workflows/dunedaq-develop-cpp-ci.yml/enable"
done

echo "]" >> "$OUTFILE"
Expand Down