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

Celine config/report #223

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .celine/BuildConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"IngredientName": "gardener-extension-cri-resmgr",
"Description": "Gardener extension controller for the https://github.com/intel/cri-resource-manager container runtime proxy.",
"BuildInfo": {
"Name": "ge-crirm",
"FullName": "gardener-extension-cri-resmgr",
"SDL": [
{
"ID": "19289",
"URL": "https://sdl-e.app.intel.com/project?id=628822ec-155a-4ecb-b181-773d3fc0a324",
"Submitter": "sys_owrscan"
}
],
"ServerURL": "https://onebkc.intel.com",
"Type": "onebkc"
},
"BinaryScan": {
"ServerURL": "https://bdba001.icloud.intel.com",
"ServerGroup": "57"
},
"Protex": [
{
"Server": "https://gerprotex012.devtools.intel.com/",
"ProjectID": "c_gardener-extension-cri-rm_31307"
}
]
}
73 changes: 73 additions & 0 deletions .celine/report.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
### Report for {{ params.commit_id }}

#### Summary
Date: {{ params.run_date }}

|||
|-|-|
|Project name|{{ params.project_name }}|
|Trigger|{{ params.run_cause }}|
|Project repo|{{ params.repository }}|
|Branch|{{ params.branch }}|
|Diff|{{ params.compare_url }}|
|Build commit id|{{ params.commit_id }}|
|Status|{{ params.status }}|

{% if params.errors %}
#### Errors

{{ params.errors }}

{% endif %}

#### Generated artifacts
URL: [{{ user_payload.artifact_name }}]({{ user_payload.artifact_url }})

{% if user_payload.artifacts %}
#### Generated artifacts
{%- for artifact in user_payload.artifacts %}
- [{{ artifact.source }}]({{ artifact.target }})
{%- endfor %}

{% endif %}

{% if user_payload.scans %}
#### Scans summary

Build config: {{ user_payload.build_config }}<br/>
SDL upload: {{ user_payload.sdl_upload}}

|Scan|Status|Report|
|-|-|-|
{%- for scan_name, scan_info in user_payload.scans.items() %}
|{{ scan_name }}|{{ scan_info.status }}|{{ scan_info.report }}|

{%- endfor %}

#### Protex scans

{% set number_scan = user_payload.scans['protex'].report | replace("[Obl_Report_protex_c_intelmemorylatencycheckerintelmlc_23388.html](https://ubit-artifactory-or.intel.com/artifactory/celine-or-local/MLC/compliance_scans/", "") | replace("/protex/Obl_Report_protex_c_intelmemorylatencycheckerintelmlc_23388.html)", "") %}
Scan number: {{ number_scan }}

{% set url = 'https://ubit-artifactory-or.intel.com/artifactory/celine-or-local/MLC/compliance_scans/' %}
{% set protex_reports = [
'COS_Report_protex_c_intelmemorylatencycheckerintelmlc_23388.html',
'COS_Report_protex_c_intelmemorylatencycheckerintelmlc_23388.xlsx',
'Obl_Report_protex_c_intelmemorylatencycheckerintelmlc_23388.html',
'Obl_Report_protex_c_intelmemorylatencycheckerintelmlc_23388.xlsx',
'protex_c_intelmemorylatencycheckerintelmlc_23388.html',
'protex_c_intelmemorylatencycheckerintelmlc_23388.xml',
'protex_c_intelmemorylatencycheckerintelmlc_23388_results.xml',
'protex_summary_c_intelmemorylatencycheckerintelmlc_23388.xml'
]
%}

|Report|
|-|
{%- for report in protex_reports %}
|{{ '[' + report + '](' + url + number_scan + '/protex/' + report + ')' }}|
{%- endfor %}

{% endif %}

Celine report for {{ params.project_name }}. Go to [Logs]({{ params.current_job_url }}).
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Hello World Example Using reusable workflow

# Add your triggers here
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
on:
workflow_dispatch:

push:
branches: [ master ]

pull_request:
branches: [ master ]

release:
types:
- prereleased
- edited

jobs:
call-ci-workflow:
uses: intel-innersource/frameworks.devops.celine.celine/.github/workflows/makefile_ci.yml@v2
with:
project_name: gardener-extension-cri-resmgr
makefile_path: Makefile
runner_group_name: celine
image: amr-registry.caas.intel.com/celine/gecrirm:latest
buildconfig_path: BuildConfig.json
build_artifacts_path: gecrirm/build
artifactory_repository: celine-or-local
wiki: frameworks.devops.celine.celine.wiki
report_template_name: report.j2
mail_recipients: pawel.palucki@intel.com
secrets:
artifactory_api_token: ${{ secrets.ARTIFACTORY_API_TOKEN }}
jenkins_user: ${{ secrets.JENKINS_USER }}
jenkins_api_token: ${{ secrets.JENKINS_API_TOKEN }}
celine_ctx_address: ${{ secrets.CELINE_CTX_ADDRESS }}
celine_access_token: ${{ secrets.CELINE_ACCESS_TOKEN }}