bonitasoft / bonita-documentation-site

The sources of the Bonita Documentation site
https://documentation.bonitasoft.com/
GNU General Public License v2.0
9 stars 5 forks source link

chore: add an antora extension to log aggregated component #673

Closed tbouffard closed 7 months ago

tbouffard commented 7 months ago

The sources (providing the repository URL and ref, several elements can be used) are only logged when the debug level is enabled to prevent from generating too many logs.

Logs examples

With test data.

Log level DEBUG
[14:44:35.185] INFO (bonita-log-aggregated-component): Discovered the following component versions
[14:44:35.188] INFO (bonita-log-aggregated-component): name: bcd, version: 3.4, files: 5
[14:44:35.189] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.189] INFO (bonita-log-aggregated-component): name: bcd, version: 3.5, files: 5
[14:44:35.190] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.190] INFO (bonita-log-aggregated-component): name: bcd, version: 4.0, files: 5
[14:44:35.190] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.191] INFO (bonita-log-aggregated-component): name: bcd, version: 4.1, files: 5
[14:44:35.191] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.191] INFO (bonita-log-aggregated-component): name: bcd, version: 4.2, files: 5
[14:44:35.192] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.192] INFO (bonita-log-aggregated-component): name: bonita, version: 0, files: 2
[14:44:35.192] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.193] INFO (bonita-log-aggregated-component): name: bonita, version: 7.4, files: 5
[14:44:35.193] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.193] INFO (bonita-log-aggregated-component): name: bonita, version: 7.11, files: 10
[14:44:35.193] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.194] INFO (bonita-log-aggregated-component): name: bonita, version: 2021.1, files: 10
[14:44:35.194] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.194] INFO (bonita-log-aggregated-component): name: bonita, version: 2021.2, files: 9
[14:44:35.194] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.195] INFO (bonita-log-aggregated-component): name: bonita, version: 2022.1, files: 5
[14:44:35.195] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.195] INFO (bonita-log-aggregated-component): name: bonita, version: 2022.2, files: 5
[14:44:35.195] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.196] INFO (bonita-log-aggregated-component): name: central, version: 1.0, files: 3
[14:44:35.196] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.196] INFO (bonita-log-aggregated-component): name: central, version: 2.0, files: 3
[14:44:35.196] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.196] INFO (bonita-log-aggregated-component): name: cloud, version: latest, files: 5
[14:44:35.196] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.197] INFO (bonita-log-aggregated-component): name: labs, version: latest, files: 5
[14:44:35.197] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.197] INFO (bonita-log-aggregated-component): name: test-toolkit, version: 1.0, files: 2
[14:44:35.197] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
[14:44:35.197] INFO (bonita-log-aggregated-component): name: test-toolkit, version: 2.0, files: 2
[14:44:35.198] DEBUG (bonita-log-aggregated-component): sources: [{"url":"https://github.com/bonitasoft/bonita-documentation-site.git","refname":"chore/log_component_version_during_processing"}]
Logs of the original extension
Discovered the following component versions
{
  name: 'bcd',
  version: '3.4',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bcd',
  version: '3.5',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bcd',
  version: '4.0',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bcd',
  version: '4.1',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bcd',
  version: '4.2',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '0',
  files: 2,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '7.4',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '7.11',
  files: 10,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '2021.1',
  files: 10,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '2021.2',
  files: 9,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '2022.1',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'bonita',
  version: '2022.2',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'central',
  version: '1.0',
  files: 3,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'central',
  version: '2.0',
  files: 3,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'cloud',
  version: 'latest',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'labs',
  version: 'latest',
  files: 5,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'test-toolkit',
  version: '1.0',
  files: 2,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
{
  name: 'test-toolkit',
  version: '2.0',
  files: 2,
  sources: [
    {
      url: 'https://github.com/bonitasoft/bonita-documentation-site.git',
      refname: 'chore/log_component_version_during_processing'
    }
  ]
}
github-actions[bot] commented 7 months ago

:recycle: PR Preview d720c1160a76a4e24dfc5def63a74d1a3e5c788f has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

github-actions[bot] commented 7 months ago

:recycle: PR Preview d720c1160a76a4e24dfc5def63a74d1a3e5c788f has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud