fix smoke test workflow
Some checks failed
deploy / deploy (push) Successful in 11s
test / smoke-test (push) Failing after 13s

This commit is contained in:
Dusan Vojacek
2026-04-05 18:25:32 +02:00
parent c11ce83a97
commit 679777d140
6 changed files with 8 additions and 2 deletions

View File

@@ -9,7 +9,9 @@ on:
jobs: jobs:
smoke-test: smoke-test:
runs-on: ubuntu-latest # Stejný label jako deploy.yml — výchozí act_runner má typicky jen `self-hosted`,
# ne `ubuntu-latest` (ten by vyžadoval GITEA_RUNNER_LABELS s docker:// image).
runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="DataSourcePerFileMappings"> <component name="DataSourcePerFileMappings">
<file url="file://$PROJECT_DIR$/../ems-cursor-db-pracovni/porovnani-view-status.sql" value="26ebef46-ff23-475b-8adc-082723263a02" />
<file url="file://$PROJECT_DIR$/db/migration/V009__postgrest_roles.sql" value="26ebef46-ff23-475b-8adc-082723263a02" /> <file url="file://$PROJECT_DIR$/db/migration/V009__postgrest_roles.sql" value="26ebef46-ff23-475b-8adc-082723263a02" />
<file url="file://$PROJECT_DIR$/db/views/R__z_postgrest_ems_anon_grants.sql" value="26ebef46-ff23-475b-8adc-082723263a02" /> <file url="file://$PROJECT_DIR$/db/views/R__z_postgrest_ems_anon_grants.sql" value="26ebef46-ff23-475b-8adc-082723263a02" />
</component> </component>

1
.idea/ems-cursor.iml generated
View File

@@ -2,6 +2,7 @@
<module type="DBE_MODULE" version="4"> <module type="DBE_MODULE" version="4">
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$/../ems-cursor-db-pracovni" />
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>

1
.idea/sqldialects.xml generated
View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="SqlDialectMappings"> <component name="SqlDialectMappings">
<file url="file://$PROJECT_DIR$/../ems-cursor-db-pracovni/porovnani-view-status.sql" dialect="PostgreSQL" />
<file url="file://$PROJECT_DIR$/db/migration/V009__postgrest_roles.sql" dialect="PostgreSQL" /> <file url="file://$PROJECT_DIR$/db/migration/V009__postgrest_roles.sql" dialect="PostgreSQL" />
<file url="file://$PROJECT_DIR$/db/views/R__z_postgrest_ems_anon_grants.sql" dialect="PostgreSQL" /> <file url="file://$PROJECT_DIR$/db/views/R__z_postgrest_ems_anon_grants.sql" dialect="PostgreSQL" />
</component> </component>

View File

@@ -36,3 +36,4 @@ GRANT SELECT ON ems.baseline_load_forecast_accuracy TO ems_anon;
GRANT SELECT ON ems.vw_baseline_load_forecast_accuracy_daily TO ems_anon; GRANT SELECT ON ems.vw_baseline_load_forecast_accuracy_daily TO ems_anon;
grant select on ems.asset_heat_pump to ems_anon;

View File

@@ -127,7 +127,7 @@ Produkční compose mapuje frontend na **`127.0.0.1:8080`**, backend na **`127.0
| Workflow | Účel | Poznámka | | Workflow | Účel | Poznámka |
|----------|------|----------| |----------|------|----------|
| `.gitea/workflows/test.yml` | Smoke (soubory, layout) | `runs-on: ubuntu-latest` stáhne image; nepotřebuje Docker. | | `.gitea/workflows/test.yml` | Smoke (soubory, layout) | `runs-on: self-hosted` — stejný runner jako deploy; bez extra labelu `ubuntu-latest` na act_runneru by job s `ubuntu-latest` nikdy nenašel runnera. |
| `.gitea/workflows/deploy.yml` | Deploy po pushi na `main` | Job kontejner + mounty + viz sekce 5. | | `.gitea/workflows/deploy.yml` | Deploy po pushi na `main` | Job kontejner + mounty + viz sekce 5. |
`workflow_dispatch` na deploy umožňuje ruční opakování bez prázdného commitu. `workflow_dispatch` na deploy umožňuje ruční opakování bez prázdného commitu.