Compare commits

...

24 Commits

Author SHA1 Message Date
d1ab43d02e prompt fix
Some checks failed
Run Tox Check / tox-py312 (pull_request) Successful in 16s
Run Tox Check / tox-pep8 (pull_request) Failing after 16s
2026-03-04 13:43:01 +00:00
379d8d7ea8 Switch to debug
Some checks failed
Run Tox Check / tox-py312 (pull_request) Successful in 15s
Run Tox Check / tox-pep8 (pull_request) Failing after 15s
2026-03-04 13:27:23 +00:00
a4c114b9a9 Added logging for updated files
Some checks failed
Run Tox Check / tox-py312 (pull_request) Successful in 17s
Run Tox Check / tox-pep8 (pull_request) Failing after 15s
2026-03-04 13:23:30 +00:00
9efb301f51 Added better prompt (#80)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 8s
Reviewed-on: #80
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2026-03-04 11:16:24 +00:00
2b2df92bcf LLM Metadata generation script (#79)
Reviewed-on: #79
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2026-03-04 10:27:39 +00:00
6e50b23d94 public EPS to Helpcenter (#78)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 5s
Reviewed-on: #78
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: lbelejka <lukas.belejkanic@t-systems.com>
Co-committed-by: lbelejka <lukas.belejkanic@t-systems.com>
2026-02-25 14:39:12 +00:00
ba47f9b9ed Make ESW public (#77)
Reviewed-on: #77
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2026-02-25 14:16:34 +00:00
d8ae35b40e esw made public (#76)
make ESW service public

Co-authored-by: lhajba <lacefhun@gmail.com>
Reviewed-on: #76
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
Co-committed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
2026-02-25 11:56:00 +00:00
93a8885313 Make obsutil documentation public (#75)
Reviewed-on: #75
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Dmitrii Sabelnikov <Dmitriy.Sabelnikov@t-systems.com>
Co-committed-by: Dmitrii Sabelnikov <Dmitriy.Sabelnikov@t-systems.com>
2026-02-25 07:40:33 +00:00
56357cc2be Make ED Sustainability document public (#74)
Reviewed-on: #74
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
2026-02-23 14:03:10 +00:00
29a155f7bb Added sustainability to ED (#73)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 5s
Reviewed-on: #73
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2026-02-19 10:35:18 +00:00
dc947a468a Fix Windows linebreaks in obs_3rd_party yaml files (#71)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 25s
Reviewed-on: #71
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Dmitrii Sabelnikov <Dmitriy.Sabelnikov@t-systems.com>
Co-committed-by: Dmitrii Sabelnikov <Dmitriy.Sabelnikov@t-systems.com>
2026-01-19 17:13:18 +00:00
149b10a7dc Add obsutil (#66)
Reviewed-on: #66
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-committed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
2026-01-19 17:12:14 +00:00
93f9f9de14 Add obs_3rd_party-dotnet-sdk.yaml (#70)
Reviewed-on: #70
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Dmitrii Sabelnikov <Dmitriy.Sabelnikov@t-systems.com>
Co-committed-by: Dmitrii Sabelnikov <Dmitriy.Sabelnikov@t-systems.com>
2026-01-19 09:43:24 +00:00
24e1553031 adding rabbitmq metadata (#69)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 21s
Reviewed-on: #69
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
2026-01-16 07:39:21 +00:00
4fbbad883d adding rabbitmq metadata
All checks were successful
Run Tox Check / tox-py312 (pull_request) Successful in 21s
Run Tox Check / tox-pep8 (pull_request) Successful in 16s
Updates Opensearch filters / update-opensearch-filters (pull_request) Successful in 12s
2026-01-15 08:16:24 +00:00
8dbe6bb501 add regions (#68)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 23s
Co-authored-by: Kvrivishvili, Iustina <iustina.kvrivishvili@t-systems.com>
Reviewed-on: #68
Reviewed-by: Martynov, Sergei <smartyno@noreply.gitea.eco.tsi-dev.otc-service.com>
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2025-12-26 17:33:35 +00:00
9b64d2035c Enable Enterprise Dashboard Alerting document to be publicly available (#65)
Some checks failed
Create Weekly Analytics Stats / run-analytics (push) Failing after 22s
Reviewed-on: #65
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-committed-by: Tino Schreiber <tino.schreiber@t-systems.com>
2025-11-20 09:38:09 +00:00
61cbd5e3bc add cloud_environments (#27)
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Reviewed-on: #27
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-11-19 14:34:22 +00:00
0df49d17a1 Add ESW as service (#64)
All checks were successful
Create Weekly Analytics Stats / run-analytics (push) Successful in 7s
Reviewed-on: #64
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-11-12 14:18:00 +00:00
76cac820ae move dev-guides into doc folder and rename the doc-type accordingly (#62)
All checks were successful
Create Weekly Analytics Stats / run-analytics (push) Successful in 6s
Reviewed-on: #62
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-10-15 12:06:31 +00:00
8c9ca536e8 move dli dev guide to new location (#61)
Reviewed-on: #61
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2025-10-14 12:19:34 +00:00
62d7563010 Prevent upload to swift if its from a fork (#60)
All checks were successful
Create Weekly Analytics Stats / run-analytics (push) Successful in 12s
Reviewed-on: #60
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-10-08 12:23:49 +00:00
1ed083a057 actions-github (#58)
Reviewed-on: #58
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2025-10-08 06:45:16 +00:00
38 changed files with 799 additions and 80 deletions

View File

@ -0,0 +1,10 @@
---
name: eu_de
internal_org: docs
public_org: opentelekomcloud-docs
regions:
- eu-de
affected_locations:
- "EU-DE-01 AZ1 (Germany/Biere)"
- "EU-DE-02 AZ2 (Germany/Magdeburg)"
- "EU-DE-03 AZ3 (Germany/Biere)"

View File

@ -0,0 +1,10 @@
---
name: swiss
internal_org: docs-swiss
public_org: opentelekomcloud-docs-swiss
regions:
- eu-ch2
affected_locations:
- "EU-CH2-01 SwissCloud AZ1 (Switzerland/Zollikofen)"
- "EU-CH2-02 SwissCloud AZ2 (Switzerland/Bern)"
- "EU-CH2-03 SwissCloud AZ3 (Switzerland/Zollikofen)"

View File

@ -2,10 +2,10 @@
hc_location: devg/apig hc_location: devg/apig
html_location: docs/apig/dev html_location: docs/apig/dev
link: /api-gateway/dev-guide/ link: /api-gateway/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: apig service_type: apig
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: hidden visibility: hidden

View File

@ -2,10 +2,10 @@
hc_location: devg/as hc_location: devg/as
html_location: docs/as/dev html_location: docs/as/dev
link: /auto-scaling/dev-guide/ link: /auto-scaling/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: as service_type: as
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -2,10 +2,10 @@
hc_location: devg/bms hc_location: devg/bms
html_location: docs/bms/dev html_location: docs/bms/dev
link: /bare-metal-server/dev-guide/ link: /bare-metal-server/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: bms service_type: bms
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -2,10 +2,10 @@
hc_location: devg/dli hc_location: devg/dli
html_location: docs/dli/dev html_location: docs/dli/dev
link: /data-lake-insight/dev-guide/ link: /data-lake-insight/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: dli service_type: dli
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -2,10 +2,10 @@
hc_location: devg/dms hc_location: devg/dms
html_location: docs/dms/dev html_location: docs/dms/dev
link: /distributed-message-service/dev-guide/ link: /distributed-message-service/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: dms service_type: dms
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -0,0 +1,13 @@
---
hc_location: api/rabbitmq
html_location: docs/dms_rabbitmq/api-ref
link: /distributed-message-service-rabbitmq/api-ref/
rst_location: api-ref/source
service_type: dms_rabbitmq
title: API Reference
type: api-ref
cloud_environments:
- name: eu_de
visibility: internal
pdf_visibility: public
pdf_enabled: true

View File

@ -0,0 +1,13 @@
---
hc_location: usermanual/rabbitmq
html_location: docs/dms_rabbitmq/umn
link: /distributed-message-service-rabbitmq/umn/
rst_location: umn/source
service_type: dms_rabbitmq
title: User Guide
type: umn
cloud_environments:
- name: eu_de
visibility: internal
pdf_visibility: public
pdf_enabled: true

View File

@ -2,10 +2,10 @@
hc_location: devg/dws hc_location: devg/dws
html_location: docs/dws/dev html_location: docs/dws/dev
link: /data-warehouse-service/dev-guide/ link: /data-warehouse-service/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: dws service_type: dws
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -2,10 +2,10 @@
hc_location: devg/ecs hc_location: devg/ecs
html_location: docs/ecs/dev html_location: docs/ecs/dev
link: /elastic-cloud-server/dev-guide/ link: /elastic-cloud-server/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: ecs service_type: ecs
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -6,6 +6,6 @@ title: Alerting
type: alerting type: alerting
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: hidden visibility: public
pdf_visibility: hidden pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -0,0 +1,11 @@
---
link: /enterprise-dashboard/sustainability/
rst_location: doc/sustainability/source
service_type: ed
title: Sustainability
type: sustainability
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -8,6 +8,6 @@ title: API Reference
type: api-ref type: api-ref
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -8,6 +8,6 @@ title: User Guide
type: umn type: umn
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
pdf_visibility: public pdf_visibility: public
pdf_enabled: true pdf_enabled: true

View File

@ -0,0 +1,13 @@
---
hc_location: usermanual/esw
html_location: docs/esw/umn
link: /enterprise-switch/umn/
rst_location: umn/source
service_type: esw
title: User Guide
type: umn
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -2,10 +2,10 @@
hc_location: devg/evs hc_location: devg/evs
html_location: docs/evs/dev html_location: docs/evs/dev
link: /elastic-volume-service/dev-guide/ link: /elastic-volume-service/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: evs service_type: evs
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -2,10 +2,10 @@
hc_location: devg/functiongraph hc_location: devg/functiongraph
html_location: docs/fg/dev html_location: docs/fg/dev
link: /function-graph/dev-guide/ link: /function-graph/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: fg service_type: fg
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: internal

View File

@ -2,10 +2,10 @@
hc_location: devg/ims hc_location: devg/ims
html_location: docs/ims/dev html_location: docs/ims/dev
link: /image-management-service/dev-guide/ link: /image-management-service/dev-guide/
rst_location: dev_guide/source rst_location: doc/dev-guide/source
service_type: ims service_type: ims
title: Developer Guide title: Developer Guide
type: dev type: dev-guide
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: public visibility: public

View File

@ -0,0 +1,13 @@
---
hc_location: utiltg/obs
html_location: docs/obs/tool-obsutil
link: /object-storage-service/tool-guide-obsutil/
rst_location: doc/tool-obsutil/source
service_type: obs
title: Tool Guide (obsutil)
type: tool-guide-obsutil
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: true

View File

@ -0,0 +1,13 @@
---
hc_location: sdk/dotnet-devg-obs
html_location: docs/obs_3rd_party/dotnet_sdk
link: /object-storage-service-3rd-party/dotnet-sdk/
rst_location: doc/dotnet-sdk/source
service_type: obs_3rd_party
title: .NET SDK
type: dotnet-sdk
cloud_environments:
- name: eu_de
visibility: public
pdf_visibility: public
pdf_enabled: false

View File

@ -0,0 +1,13 @@
---
service_type: dms_rabbitmq
repositories:
- environment: public
repo: opentelekomcloud-docs/distributed-message-service-rabbitmq
type: github
cloud_environments:
- eu_de
- environment: internal
repo: docs/distributed-message-service-rabbitmq
type: gitea
cloud_environments:
- eu_de

View File

@ -0,0 +1,13 @@
---
service_type: esw
repositories:
- environment: public
repo: opentelekomcloud-docs/enterprise-switch
type: github
cloud_environments:
- eu_de
- environment: internal
repo: docs/enterprise-switch
type: gitea
cloud_environments:
- eu_de

View File

@ -17,6 +17,7 @@
# documents/services/service_categories is being merged with # documents/services/service_categories is being merged with
# the content here. # the content here.
--- ---
cloud_environments: []
documents: [] documents: []
service_categories: [] service_categories: []
services: [] services: []

View File

@ -0,0 +1,12 @@
---
service_category: application
service_title: Distributed Message Service (for RabbitMQ)
service_type: dms_rabbitmq
service_uri: distributed-message-service-rabbitmq
teams:
- name: docs-paas-rw
permission: write
cloud_environments:
- name: eu_de
visibility: internal
is_global: false

View File

@ -1,5 +1,5 @@
--- ---
service_category: security-services service_category: md
service_title: Enterprise Project Service service_title: Enterprise Project Service
service_type: eps service_type: eps
service_uri: enterprise-project-service service_uri: enterprise-project-service
@ -8,5 +8,5 @@ teams:
permission: write permission: write
cloud_environments: cloud_environments:
- name: eu_de - name: eu_de
visibility: internal visibility: public
is_global: false is_global: false

View File

@ -0,0 +1,12 @@
---
service_category: network
service_title: Enterprise Switch
service_type: esw
service_uri: enterprise-switch
teams:
- name: docs-network-rw
permission: write
cloud_environments:
- name: eu_de
visibility: public
is_global: false

View File

@ -62,10 +62,20 @@ class Services(object):
if other in self._service_data["service_categories"]: if other in self._service_data["service_categories"]:
self._service_data["service_categories"].remove(other) self._service_data["service_categories"].remove(other)
self._service_data["service_categories"].append(other) self._service_data["service_categories"].append(other)
# sort cloud environments by <name>
self._service_data["cloud_environments"] = sorted(
self._service_data["cloud_environments"],
key=lambda x: f"{x.get('name')}",
)
def _rewrite_data(self): def _rewrite_data(self):
otc_metadata.data.rewrite_data("services.yaml", self._service_data) otc_metadata.data.rewrite_data("services.yaml", self._service_data)
@property
def all_cloud_environments(self):
"Cloud Environments data listing."
return copy.deepcopy(self._service_data["cloud_environments"])
@property @property
def all_services(self): def all_services(self):
"Service Categories data listing." "Service Categories data listing."

View File

@ -6,17 +6,33 @@ jobs:
tox-docs: tox-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
{%- if environment == 'internal' %}
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1 - uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
with: with:
tox-env: docs tox-env: docs
- name: Upload documentation preview - name: Upload documentation preview
{% raw -%}
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
{%- endraw %}
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1 uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
{%- elif environment == 'public' %}
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
with:
tox-env: docs
- name: Upload documentation preview
{% raw -%}
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
{%- endraw %}
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
{%- endif %}
with: with:
docs_path: "doc/build/html" docs_path: "doc/build/html"
docs_service: {{ service_uri }} docs_service: {{ service_uri }}
swift_container: "gitea_action_logs" {%- if environment == 'internal' %}
{% raw -%} {% raw -%}
swift_container: "gitea_action_logs"
otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }} otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }}
otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }} otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }}
otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }} otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }}
@ -27,4 +43,20 @@ jobs:
repo: ${{ gitea.repository }} repo: ${{ gitea.repository }}
pr_number: ${{ gitea.event.pull_request.number }} pr_number: ${{ gitea.event.pull_request.number }}
run_id: ${{ gitea.run_id }} run_id: ${{ gitea.run_id }}
ci_platform: gitea
{%- endraw %} {%- endraw %}
{%- elif environment == 'public' %}
{% raw -%}
swift_container: "gh_action_logs"
otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }}
otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }}
otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }}
otc_swift_domain: ${{ secrets.OTC_SWIFT_DOMAIN }}
otc_swift_endpoint: ${{ secrets.OTC_SWIFT_ENDPOINT }}
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
run_id: ${{ github.run_id }}
ci_platform: github
{%- endraw %}
{%- endif %}

View File

@ -6,17 +6,33 @@ jobs:
tox-pdf-docs: tox-pdf-docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
{%- if environment == 'internal' %}
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1 - uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
with: with:
tox-env: pdf-docs tox-env: pdf-docs
- name: Upload documentation preview - name: Upload documentation preview
{% raw -%}
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
{%- endraw %}
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1 uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
{%- elif environment == 'public' %}
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
with:
tox-env: pdf-docs
- name: Upload documentation preview
{% raw -%}
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
{%- endraw %}
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
{%- endif %}
with: with:
docs_path: "doc/build/pdf" docs_path: "doc/build/pdf"
docs_service: {{ service_uri }} docs_service: {{ service_uri }}
swift_container: "gitea_action_logs" {%- if environment == 'internal' %}
{% raw -%} {% raw -%}
swift_container: "gitea_action_logs"
otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }} otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }}
otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }} otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }}
otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }} otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }}
@ -27,4 +43,20 @@ jobs:
repo: ${{ gitea.repository }} repo: ${{ gitea.repository }}
pr_number: ${{ gitea.event.pull_request.number }} pr_number: ${{ gitea.event.pull_request.number }}
run_id: ${{ gitea.run_id }} run_id: ${{ gitea.run_id }}
ci_platform: gitea
{%- endraw %} {%- endraw %}
{%- elif environment == 'public' %}
{% raw -%}
swift_container: "gh_action_logs"
otc_swift_username: ${{ secrets.OTC_SWIFT_USERNAME }}
otc_swift_password: ${{ secrets.OTC_SWIFT_PASSWORD }}
otc_swift_project_name: ${{ secrets.OTC_SWIFT_PROJECT_NAME }}
otc_swift_domain: ${{ secrets.OTC_SWIFT_DOMAIN }}
otc_swift_endpoint: ${{ secrets.OTC_SWIFT_ENDPOINT }}
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
pr_number: ${{ github.event.pull_request.number }}
run_id: ${{ github.run_id }}
ci_platform: github
{%- endraw %}
{%- endif %}

View File

@ -152,7 +152,7 @@ commands =
rm -rf {toxinidir}/packages.txt rm -rf {toxinidir}/packages.txt
wget -O {toxinidir}/bindep.txt https://raw.githubusercontent.com/opentelekomcloud/otcdocstheme/main/bindep.txt wget -O {toxinidir}/bindep.txt https://raw.githubusercontent.com/opentelekomcloud/otcdocstheme/main/bindep.txt
bash -c "bindep test -b -f {toxinidir}/bindep.txt > {toxinidir}/packages.txt || true" bash -c "bindep test -b -f {toxinidir}/bindep.txt > {toxinidir}/packages.txt || true"
bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v apt &>/dev/null; then apt update && xargs apt install --no-install-recommends -y < {toxinidir}/packages.txt; fi; fi' bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v apt &>/dev/null; then sudo apt update && xargs sudo apt install --no-install-recommends -y < {toxinidir}/packages.txt; fi; fi'
bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v dnf &>/dev/null; then dnf install -y $(cat {toxinidir}/packages.txt); fi; fi' bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v dnf &>/dev/null; then dnf install -y $(cat {toxinidir}/packages.txt); fi; fi'
[doc8] [doc8]

View File

@ -2,6 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
stestr>=2.0.0 # Apache-2.0 pytest
testtools>=2.2.0 # MIT pytest-cov
flake8 flake8
pyyaml

View File

@ -356,8 +356,10 @@ def process_repositories(args, service):
context["docs"].append(doc) context["docs"].append(doc)
if args.cloud_environment == "swiss": if args.cloud_environment == "swiss":
context["template"] = "helpcenter-swiss-base-jobs" context["template"] = "helpcenter-swiss-base-jobs"
elif args.cloud_environment == "eu_de": elif args.cloud_environment == "eu_de" and args.target_environment == "internal":
context["template"] = "helpcenter-base-jobs" context["template"] = "helpcenter-base-jobs"
elif args.cloud_environment == "eu_de" and args.target_environment == "public":
context["template"] = "helpcenter-base-jobs-no-check"
context["service_type"] = service['service_type'] context["service_type"] = service['service_type']
zuul_yaml_content = zuul_yaml_template.render(**context) zuul_yaml_content = zuul_yaml_template.render(**context)
@ -371,21 +373,33 @@ def process_repositories(args, service):
"""Update actions""" """Update actions"""
context = dict(docs=[]) context = dict(docs=[])
context["service_uri"] = service['service_uri'] context["service_uri"] = service['service_uri']
context["environment"] = args.target_environment
actions_yaml_content_html = actions_yaml_template_html.render(**context) actions_yaml_content_html = actions_yaml_template_html.render(**context)
actions_yaml_content_pdf = actions_yaml_template_pdf.render(**context) actions_yaml_content_pdf = actions_yaml_template_pdf.render(**context)
if args.target_environment == "internal":
actions_yaml_content_html_path = pathlib.Path(copy_to, ".gitea", "workflows", "build-html-docs.yaml") actions_yaml_content_html_path = pathlib.Path(copy_to, ".gitea", "workflows", "build-html-docs.yaml")
actions_yaml_content_html_path.parent.mkdir(parents=True, exist_ok=True) actions_yaml_content_html_path.parent.mkdir(parents=True, exist_ok=True)
actions_yaml_content_pdf_path = pathlib.Path(copy_to, ".gitea", "workflows", "build-pdf-docs.yaml") actions_yaml_content_pdf_path = pathlib.Path(copy_to, ".gitea", "workflows", "build-pdf-docs.yaml")
actions_yaml_content_pdf_path.parent.mkdir(parents=True, exist_ok=True) actions_yaml_content_pdf_path.parent.mkdir(parents=True, exist_ok=True)
elif args.target_environment == "public":
actions_yaml_content_html_path = pathlib.Path(copy_to, ".github", "workflows", "build-html-docs.yaml")
actions_yaml_content_html_path.parent.mkdir(parents=True, exist_ok=True)
actions_yaml_content_pdf_path = pathlib.Path(copy_to, ".github", "workflows", "build-pdf-docs.yaml")
actions_yaml_content_pdf_path.parent.mkdir(parents=True, exist_ok=True)
with open(actions_yaml_content_html_path, "w", encoding="utf-8", newline="") as out: with open(actions_yaml_content_html_path, "w", encoding="utf-8", newline="") as out:
logging.debug(f"Generating {actions_yaml_content_html_path} from template...") logging.debug(f"Generating {actions_yaml_content_html_path} from template...")
out.write(actions_yaml_content_html) out.write(actions_yaml_content_html)
repo_to.index.add([".gitea/workflows/build-html-docs.yaml"])
with open(actions_yaml_content_pdf_path, "w", encoding="utf-8", newline="") as out: with open(actions_yaml_content_pdf_path, "w", encoding="utf-8", newline="") as out:
logging.debug(f"Generating {actions_yaml_content_pdf_path} from template...") logging.debug(f"Generating {actions_yaml_content_pdf_path} from template...")
out.write(actions_yaml_content_pdf) out.write(actions_yaml_content_pdf)
if args.target_environment == "internal":
repo_to.index.add([".gitea/workflows/build-html-docs.yaml"])
repo_to.index.add([".gitea/workflows/build-pdf-docs.yaml"]) repo_to.index.add([".gitea/workflows/build-pdf-docs.yaml"])
elif args.target_environment == "public":
repo_to.index.add([".github/workflows/build-html-docs.yaml"])
repo_to.index.add([".github/workflows/build-pdf-docs.yaml"])
if len(repo_to.index.diff("HEAD")) == 0: if len(repo_to.index.diff("HEAD")) == 0:
# Nothing to commit # Nothing to commit

483
tools/generate_meta.py Executable file

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ usedevelop = True
setenv = setenv =
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs} commands = pytest {posargs}
[testenv:pep8] [testenv:pep8]
commands = flake8 {posargs} commands = flake8 {posargs}