Skip to content

Commit 6d48e96

Browse files
committed
Record Oracle publisher services
1 parent 13de4a1 commit 6d48e96

1 file changed

Lines changed: 34 additions & 37 deletions

File tree

docs/research/new-publisher-source-planning/Oracle_New_Publisher_Service_Sanity_Check_2026-05-26.md

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,60 +36,57 @@ sensorhub.service: active
3636
met-office-datahub-publisher.service: active
3737
```
3838

39-
The Oracle service inventory shows `met-office-datahub-publisher.service` installed and running as the persistent service for the newest access-gated publisher.
39+
The initial check found only `met-office-datahub-publisher.service` installed as a persistent service for the newest publisher set. Environment Agency Hydrology, UK-AIR, and BGS SensorThings were already bootstrapped and one-shot published, but they were not yet represented by dedicated Oracle systemd units.
4040

41-
No persistent systemd units were discovered for Environment Agency Hydrology, UK-AIR, or BGS SensorThings during this check. Those publishers have been bootstrapped and one-shot published successfully, and their live CSAPI root deployments remain present, but they are not yet represented by dedicated Oracle scheduler/service units in the same way as Met Office.
41+
That operational gap was closed on 2026-05-26. A durable full-repo working tree was installed at:
4242

43-
## Public CORS Check
43+
```text
44+
/home/ubuntu/oshconnect-python-publishers
45+
```
4446

45-
Production-origin CORS check from `https://ogc-csapi-explorer.pages.dev` returned a single public origin header:
47+
It was seeded from controlled repo commit:
4648

4749
```text
48-
Access-Control-Allow-Origin: *
50+
13de4a1d8821ebb09cda35531afe3935eb538a55
4951
```
5052

51-
This confirms the live Caddy fix is still in place and avoids the previous duplicate-origin browser failure.
52-
53-
## Controlled-Repo Issue Draft
53+
The following persistent services were installed, enabled, and started:
5454

55-
The local environment did not provide a GitHub issue tool, `gh` CLI, or GitHub API token at the time of this check. If an issue is filed, file it only in a controlled OS4CSAPI repository, preferably `OS4CSAPI/OSHConnect-Python`.
55+
| Service | Module | Interval | First managed cycle |
56+
| --- | --- | ---: | --- |
57+
| `environment-agency-hydrology-publisher.service` | `publishers.environment_agency_hydrology.environment_agency_hydrology_publisher` | 900s | 5 published, 0 errors |
58+
| `uk-air-publisher.service` | `publishers.uk_air.uk_air_publisher` | 3600s | 4 published, 0 errors |
59+
| `bgs-sensorthings-publisher.service` | `publishers.bgs_sensorthings.bgs_sensorthings_publisher` | 21600s | 9 published, 0 errors |
5660

57-
Suggested title:
61+
All three services use the existing host-local environment file pattern:
5862

59-
```text
60-
Install persistent Oracle services for EA Hydrology, UK-AIR, and BGS publishers
63+
```ini
64+
EnvironmentFile=/etc/os4csapi/publisher-secrets.env
6165
```
6266

63-
Suggested body:
67+
No raw credentials are stored in git.
6468

65-
```markdown
66-
## Summary
69+
Post-install status check showed all three new services as `enabled` and `active`. Journals showed each service connected to all curated systems, posted its first managed cycle, and entered its sleep interval before the next cycle.
70+
71+
## Public CORS Check
6772

68-
Environment Agency Hydrology, UK-AIR, and BGS SensorThings were implemented, bootstrapped, one-shot published, and verified in production Explorer, but the Oracle host currently only has Met Office installed as a persistent new-publisher service.
73+
Production-origin CORS check from `https://ogc-csapi-explorer.pages.dev` returned a single public origin header:
6974

70-
## Current State
75+
```text
76+
Access-Control-Allow-Origin: *
77+
```
7178

72-
- `met-office-datahub-publisher.service` is installed and active.
73-
- No dedicated systemd units were discovered for:
74-
- Environment Agency Hydrology
75-
- UK-AIR
76-
- BGS SensorThings / UKGEOS
77-
- Live CSAPI root deployments are present:
78-
- `urn:os4csapi:deployment:environment-agency-hydrology-demo:v1` -> `05d0`
79-
- `urn:os4csapi:deployment:uk-air-demo:v1` -> `05g0`
80-
- `urn:os4csapi:deployment:bgs-sensorthings-demo:v1` -> `05ig`
81-
- `urn:os4csapi:deployment:met-office-datahub-demo:v1` -> `05l0`
79+
This confirms the live Caddy fix is still in place and avoids the previous duplicate-origin browser failure.
8280

83-
## Proposed Work
81+
## Latest Observation Spot Check
8482

85-
Add host-local systemd service/timer units or equivalent scheduler entries for the three one-shot-verified publishers, using the existing Oracle service pattern and without committing any secrets.
83+
Representative latest-observation read-back after service installation:
8684

87-
## Acceptance Criteria
85+
| Source | Datastream ID | Result |
86+
| --- | --- | --- |
87+
| Environment Agency Hydrology river level | `05i0` | latest observation returned |
88+
| UK-AIR NO2 | `05kg` | latest observation returned |
89+
| BGS water temperature | `05mg` | latest observation returned |
90+
| Met Office air temperature | `05r0` | latest observation returned |
8891

89-
- Environment Agency Hydrology publishes on a bounded recurring cadence.
90-
- UK-AIR publishes on a bounded recurring cadence.
91-
- BGS SensorThings publishes on a bounded recurring cadence appropriate for its source update frequency.
92-
- Units use host-local environment/secret files only.
93-
- `systemctl status` and journal checks are documented.
94-
- Production Explorer still loads the public endpoint without CORS-blocked OSH requests.
95-
```
92+
The BGS source currently reports older observations from 2026-04-13, which matches the upstream latest value observed during the publisher completion work. This is stale source data, not a service failure.

0 commit comments

Comments
 (0)