Skip to content
Navigation Menu
DigitalInnovation
International-PIGW-PartnerSubscription

Type / to search
Code
Issues
Pull requests
48
Actions
Projects
Wiki
Security
27
Insights
Back to pull request #1452
Feature: Code changes for Gibralter attributes check updates #231
Jobs
Run details
Annotations
1 error and 1 warning
Unit-Testing-And-Sonar
failed 7 minutes ago in 4m 11s
Search logs
10s
0s
2s
8s
0s
49s
2s
5s
46s
2m 5s
Run DigitalInnovation/international-centralized-pipelineactions/workflows/sonar-analysis@main
Run echo Hello, You are Executing Composite action to Execute Buildbranch_name
Hello, You are Executing Composite action to Execute Buildbranch_name
Run ls -lart
total 72
drwxr-xr-x  3 runner runner 4096 Mar 31 06:21 ..
drwxr-xr-x  3 runner runner 4096 Mar 31 06:21 .github
drwxr-xr-x  5 runner runner 4096 Mar 31 06:21 EventListener
drwxr-xr-x  4 runner runner 4096 Mar 31 06:21 FoodProductContentExtractor
drwxr-xr-x  4 runner runner 4096 Mar 31 06:21 FoodProductImageryExtractor
drwxr-xr-x  5 runner runner 4096 Mar 31 06:21 ImageryExtractor
drwxr-xr-x  4 runner runner 4096 Mar 31 06:21 Partner-Subscription-Automation
drwxr-xr-x  6 runner runner 4096 Mar 31 06:21 Partner-Subscription
drwxr-xr-x  5 runner runner 4096 Mar 31 06:21 PricingExtractor
-rw-r--r--  1 runner runner 4099 Mar 31 06:21 README.md
drwxr-xr-x  5 runner runner 4096 Mar 31 06:21 ProductHierarchyExtractor
drwxr-xr-x  3 runner runner 4096 Mar 31 06:21 monitoring
-rw-r--r--  1 runner runner 2050 Mar 31 06:21 catalog-info.yaml
drwxr-xr-x  5 runner runner 4096 Mar 31 06:21 SellingAttributesExtractor
drwxr-xr-x 15 runner runner 4096 Mar 31 06:21 .
drwxr-xr-x  6 runner runner 4096 Mar 31 06:22 ProductCoreExtractor
drwxr-xr-x  7 runner runner 4096 Mar 31 06:23 .git
Run set -x
++ echo refs/pull/1452/merge
++ cut -d / -f3
+ pr=1452
++ echo Feature/PIGW-157
+ branch_name=Feature/PIGW-157
+ echo '#############################'
#############################
Feature/PIGW-157
+ echo Feature/PIGW-157
+ echo Feature/PIGW-157
+ echo '#############################'
+ echo 'Waiting for quality gate status to be available'
+ sleep 120
Feature/PIGW-157
#############################
Waiting for quality gate status to be available
++ curl -s -u ***: 'https://sonarcloud.io/api/qualitygates/project_status?projectKey=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&branch=Feature/PIGW-157'
++ jq .projectStatus.status
++ tr -d '"'
+ QGSTATUS=ERROR
+ '[' ERROR = null ']'
+ '[' ERROR = ERROR ']'
Sonarqube analysis Project status is -- ERROR
+ echo 'Sonarqube analysis Project status is -- ERROR'
++ curl -s -u ***: 'https://sonarcloud.io/api/measures/component?component=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&metricKeys=bugs&branch=Feature/PIGW-157'
++ jq -r '.component.measures[0].value'
+ bugs=0
++ curl -s -u ***: 'https://sonarcloud.io/api/measures/component?component=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&metricKeys=code_smells&branch=Feature/PIGW-157'
++ jq -r '.component.measures[0].value'
+ code_smell=8
++ curl -s -u ***: 'https://sonarcloud.io/api/measures/component?component=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&metricKeys=vulnerabilities&branch=Feature/PIGW-157'
++ jq -r '.component.measures[0].value'
+ vulnerability=0
++ curl -s -u ***: 'https://sonarcloud.io/api/measures/component?component=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&metricKeys=security_hotspots&branch=Feature/PIGW-157'
++ jq -r '.component.measures[0].value'
+ sec_hotspot=0
++ curl -s -u ***: 'https://sonarcloud.io/api/measures/component?component=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&metricKeys=coverage&branch=Feature/PIGW-157'
++ jq -r '.component.measures[0].value'
+ code_cover=72.6
++ curl -s -u ***: 'https://sonarcloud.io/api/measures/component?component=digitalinnovation_International-PIGW-PartnerSubscription-ProductCoreExtractor&metricKeys=duplicated_lines_density&branch=Feature/PIGW-157'
++ jq -r '.component.measures[0].value'
+ dup_lines_den=1.2
+ htm=''\''<html><p>Sonar analysis is not successful for the below pull request</p><br><p><b>Repo Name: </b>International-PIGW-PartnerSubscription</p><p><b>Triggered By: </b>AlokAnand100000</p><p><b>Base Branch: </b>Feature/PIGW-157</p><p><b>Target Branch: </b>development</p><p><b>Pull Request ID: </b>1452</p><p><b>Github Actions Run No: </b>231</p><p><b>Github Actions Run ID: </b>14165356357</p><br><table><tr><th>Bugs</th><th>Code Smell</th><th>Vulnerability</th><th>Security Hotspots</th><th>Code Coverage</th><th>Duplicate Line Density</th></tr><tr><td>0</td><td>8</td><td>0</td><td>0</td><td>72.6</td><td>1.2</td></tr></table></html>'\'''
+ echo Here0001
+ curl -H 'Content-Type: application/json' -d '{'\''text'\'': '\''<html><p>Sonar analysis is not successful for the below pull request</p><br><p><b>Repo Name: </b>International-PIGW-PartnerSubscription</p><p><b>Triggered By: </b>AlokAnand100000</p><p><b>Base Branch: </b>Feature/PIGW-157</p><p><b>Target Branch: </b>development</p><p><b>Pull Request ID: </b>1452</p><p><b>Github Actions Run No: </b>231</p><p><b>Github Actions Run ID: </b>14165356357</p><br><table><tr><th>Bugs</th><th>Code Smell</th><th>Vulnerability</th><th>Security Hotspots</th><th>Code Coverage</th><th>Duplicate Line Density</th></tr><tr><td>0</td><td>8</td><td>0</td><td>0</td><td>72.6</td><td>1.2</td></tr></table></html>'\''}' ***
Here0001
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   668  100    26  100   642    257   6356 --:--:-- --:--:-- --:--:--  6680
+ echo Here002
Webhook Url is not updatedHere002
+ [[ Feature/PIGW-157 == \F\e\a\t\u\r\e\/* ]]
+ curl -X DELETE -H 'Accept: application/vnd.github+json' -H 'Authorization: ***' https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/1452/labels/Sonar_analysis_successful
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   157  100   157    0     0    529      0 --:--:-- --:--:-- --:--:--   528
{
  "message": "Label does not exist",
  "documentation_url": "https://docs.github.com/rest/issues/labels#remove-a-label-from-an-issue",
  "status": "404"
}
+ curl -X DELETE -H 'Accept: application/vnd.github+json' -H 'Authorization: ***' https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/1452/labels/Sonar_analysis_not_available_yet
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
{
100   157  100   157    0     0    462      0 --:--:-- --:--:-- --:--:--   463
  "message": "Label does not exist",
  "documentation_url": "https://docs.github.com/rest/issues/labels#remove-a-label-from-an-issue",
  "status": "404"
}
+ curl -X POST -H 'Accept: application/vnd.github+json' -H 'Authorization: ***' https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/1452/labels -d '{"labels":["Sonar_analysis_failed"]}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    36    0     0  100    36      0     39 --:--:-- --:--:-- --:--:--    39
100   659  100   623  100    36    677     39 --:--:-- --:--:-- --:--:--   716
[
  {
    "id": 4801161789,
    "node_id": "LA_kwDOF-u7ZM8AAAABHivqPQ",
    "url": "https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/labels/Junit_test_successful",
    "name": "Junit_test_successful",
    "color": "ededed",
    "default": false,
    "description": null
  },
  {
    "id": 4928621471,
    "node_id": "LA_kwDOF-u7ZM8AAAABJcTLnw",
    "url": "https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/labels/Sonar_analysis_failed",
    "name": "Sonar_analysis_failed",
    "color": "ededed",
    "default": false,
    "description": null
  }
]
+ gh_msg='<html><p>Sonar analysis is not successful.</p><br><table><tr><th>Bugs</th><th>Code Smell</th><th>Vulnerability</th><th>Security Hotspots</th><th>Code Coverage</th><th>Duplicate Line Density</th></tr><tr><td>0</td><td>8</td><td>0</td><td>0</td><td>72.6</td><td>1.2</td></tr></table></html>'
+ curl -X POST -H 'Accept: application/vnd.github+json' -H 'Authorization: ***' https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/1452/comments -d '{"body":"<html><p>Sonar analysis is not successful.</p><br><table><tr><th>Bugs</th><th>Code Smell</th><th>Vulnerability</th><th>Security Hotspots</th><th>Code Coverage</th><th>Duplicate Line Density</th></tr><tr><td>0</td><td>8</td><td>0</td><td>0</td><td>72.6</td><td>1.2</td></tr></table></html>"}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
{
100   299    0     0  100   299      0    513 --:--:-- --:--:-- --:--:--   512
100  2546  100  2247  100   299   3857    513 --:--:-- --:--:-- --:--:--  4367
  "url": "https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/comments/2765254162",
  "html_url": "https://github.com/DigitalInnovation/International-PIGW-PartnerSubscription/pull/1452#issuecomment-2765254162",
  "issue_url": "https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/1452",
  "id": 2765254162,
  "node_id": "IC_kwDOF-u7ZM6k0m4S",
  "user": {
    "login": "Y1001135",
    "id": 78605327,
    "node_id": "MDQ6VXNlcjc4NjA1MzI3",
    "avatar_url": "https://avatars.githubusercontent.com/u/78605327?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/Y1001135",
    "html_url": "https://github.com/Y1001135",
    "followers_url": "https://api.github.com/users/Y1001135/followers",
    "following_url": "https://api.github.com/users/Y1001135/following{/other_user}",
    "gists_url": "https://api.github.com/users/Y1001135/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/Y1001135/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/Y1001135/subscriptions",
    "organizations_url": "https://api.github.com/users/Y1001135/orgs",
    "repos_url": "https://api.github.com/users/Y1001135/repos",
    "events_url": "https://api.github.com/users/Y1001135/events{/privacy}",
    "received_events_url": "https://api.github.com/users/Y1001135/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": false
  },
  "created_at": "2025-03-31T06:25:36Z",
  "updated_at": "2025-03-31T06:25:36Z",
  "author_association": "MEMBER",
  "body": "<html><p>Sonar analysis is not successful.</p><br><table><tr><th>Bugs</th><th>Code Smell</th><th>Vulnerability</th><th>Security Hotspots</th><th>Code Coverage</th><th>Duplicate Line Density</th></tr><tr><td>0</td><td>8</td><td>0</td><td>0</td><td>72.6</td><td>1.2</td></tr></table></html>",
  "reactions": {
    "url": "https://api.github.com/repos/DigitalInnovation/International-PIGW-PartnerSubscription/issues/comments/2765254162/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
  },
  "performed_via_github_app": null
}
+ '[' -d international-centralized-pipelineactions ']'
+ sudo git config --global user.email <PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>
+ sudo git config --global user.name Y1001135
+ git clone https://***@github.com/DigitalInnovation/international-centralized-pipelineactions.git
Cloning into 'international-centralized-pipelineactions'...
++ grep '^International-PIGW-PartnerSubscription,' ./international-centralized-pipelineactions/Exception/sonar_analysis_exception.csv
++ head -1
+ '[' -z International-PIGW-PartnerSubscription,Testing,31-12-2024,Aman ']'
Here
+ echo Here
++ grep '^International-PIGW-PartnerSubscription,' ./international-centralized-pipelineactions/Exception/sonar_analysis_exception.csv
++ cut -d , -f3
+ datevar=31-12-2024
++ echo 31-12-2024
++ cut -d - -f1
+ dateExp=31
++ echo 31-12-2024
++ cut -d - -f2
+ monExp=12
++ echo 31-12-2024
++ cut -d - -f3
+ yearExp=2024
++ TZ=Europe/London
++ date +%d-%m-%Y
+ datevarTod=31-03-2025
++ echo 31-03-2025
++ cut -d - -f1
+ dateTod=31
++ echo 31-03-2025
++ cut -d - -f2
+ monTod=03
++ echo 31-03-2025
++ cut -d - -f3
+ yearTod=2025
++ date -d '2024-12-31 GMT' +%s
+ utcExp=1735603200
++ date -d '2025-03-31 GMT' +%s
+ utcTod=1743379200
1735603200
+ echo 1735603200
+ echo 1743379200
+ '[' 1743379200 -gt 1735603200 ']'
+ echo 'Sonar Exception date exceeded. So stopping the workflow.'
+ exit 1
1743379200
Sonar Exception date exceeded. So stopping the workflow.
Error: Process completed with exit code 1.
0s
0s
0s
0s
0s
0s
0s
Feature: Code changes for Gibralter attributes check updates · DigitalInnovation/International-PIGW-PartnerSubscription@9bad64c....whta is the issue and fix it