Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed Mar 19, 2024
1 parent db66b25 commit 86d930c
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 71 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Golang
name: Protobuf

concurrency:
group: ${{github.repository}}-${{ github.ref_name }}-proto
Expand Down Expand Up @@ -29,8 +29,6 @@ jobs:
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
# - uses: bufbuild/buf-breaking-action@v1
# with:
# # The 'main' branch of the GitHub repository that defines the module.
Expand Down Expand Up @@ -63,5 +61,6 @@ jobs:
git add --all && git commit -m "Buf re-generated protos" || echo "No changes to commit"
git push
golang:
needs: proto
uses: zaphiro-technologies/github-workflows/.github/workflows/golang.yaml@main
secrets: inherit
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ generate:

.PHONY: docs
docs:
../proto-gen-md-diagrams/proto-gen-md-diagrams -d proto -md true
../proto-gen-md-diagrams/proto-gen-md-diagrams -d zaphiro -md true
mkdir -p docs
# mv -f proto/**/*.md docs #why it works on my mac but not in the action?
mv -f proto/*/v1/*.md docs
# mv -f zaphiro/**/*.md docs #why it works on my mac but not in the action?
mv -f zaphiro/*/v1/*.md docs

.PHONY: proto-lint
proto-lint:
Expand Down
8 changes: 4 additions & 4 deletions docs/conf2.proto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package: c37118.v1
# Package: zaphiro.c37118.v1

<!-- markdownlint-disable -->
Messages describing PMU C37.118 Configurations.
Expand Down Expand Up @@ -92,7 +92,7 @@ class Config {

## Message: Conf2Frame

**FQN**: c37118.v1.Conf2Frame
**FQN**: zaphiro.c37118.v1.Conf2Frame

Configuration frame 2
Headers used in rabbitMQ:
Expand All @@ -114,7 +114,7 @@ Headers used in rabbitMQ:

## Message: Conf2Header

**FQN**: c37118.v1.Conf2Header
**FQN**: zaphiro.c37118.v1.Conf2Header

Configuration frame 2 header

Expand All @@ -134,7 +134,7 @@ Configuration frame 2 header

## Message: Config

**FQN**: c37118.v1.Config
**FQN**: zaphiro.c37118.v1.Config

Single PMU configuration according to Configuration frame 2

Expand Down
8 changes: 4 additions & 4 deletions docs/data.proto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package: grid.v1
# Package: zaphiro.grid.v1

<!-- markdownlint-disable -->
Messages to support data injection in the platform.
Expand All @@ -24,7 +24,7 @@ Data are grouped into sets, where each id identifies a specific measurement. The

## Enum: DataType

**FQN**: grid.v1.DataType
**FQN**: zaphiro.grid.v1.DataType

The collection of Data Types defined so far. They are useful to map
measurements to their rappresentation. Some of the descriptions are taken from [here](https://github.com/3lbits/Grunnprofil/blob/main/DIGIN10/docs/MeasurementType.adoc) This is important since all measurements
Expand Down Expand Up @@ -187,7 +187,7 @@ DataSet .. ` Data`

## Message: Data

**FQN**: grid.v1.Data
**FQN**: zaphiro.grid.v1.Data

A single data.
Headers used in rabbitMQ (only if not sent as part of `DataSet`):
Expand All @@ -210,7 +210,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`):

## Message: DataSet

**FQN**: grid.v1.DataSet
**FQN**: zaphiro.grid.v1.DataSet

A set of data.
Headers used in rabbitMQ:
Expand Down
24 changes: 12 additions & 12 deletions docs/device_event.proto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package: grid.v1
# Package: zaphiro.grid.v1

<!-- markdownlint-disable -->
Messages to support device event detection in the platform. Device events are sub classes of Events.
Expand All @@ -7,9 +7,9 @@ Messages to support device event detection in the platform. Device events are su

## Imports

| Import | Description |
|---------------------|-------------|
| grid/v1/event.proto | |
| Import | Description |
|-----------------------------|-------------|
| zaphiro/grid/v1/event.proto | |



Expand Down Expand Up @@ -150,7 +150,7 @@ DataError --> `DeviceEvent`

## Message: DeviceEvent

**FQN**: grid.v1.DeviceEvent
**FQN**: zaphiro.grid.v1.DeviceEvent

A device event.
Headers used in rabbitMQ:
Expand All @@ -177,7 +177,7 @@ Headers used in rabbitMQ:

## Message: CommunicationError

**FQN**: grid.v1.CommunicationError
**FQN**: zaphiro.grid.v1.CommunicationError



Expand All @@ -191,7 +191,7 @@ Headers used in rabbitMQ:

## Message: TimeQuality

**FQN**: grid.v1.TimeQuality
**FQN**: zaphiro.grid.v1.TimeQuality



Expand All @@ -205,7 +205,7 @@ Headers used in rabbitMQ:

## Message: SyncStatus

**FQN**: grid.v1.SyncStatus
**FQN**: zaphiro.grid.v1.SyncStatus



Expand All @@ -219,7 +219,7 @@ Headers used in rabbitMQ:

## Message: Power

**FQN**: grid.v1.Power
**FQN**: zaphiro.grid.v1.Power



Expand All @@ -233,7 +233,7 @@ Headers used in rabbitMQ:

## Message: Config

**FQN**: grid.v1.Config
**FQN**: zaphiro.grid.v1.Config



Expand All @@ -247,7 +247,7 @@ Headers used in rabbitMQ:

## Message: Trigger

**FQN**: grid.v1.Trigger
**FQN**: zaphiro.grid.v1.Trigger



Expand All @@ -261,7 +261,7 @@ Headers used in rabbitMQ:

## Message: DataError

**FQN**: grid.v1.DataError
**FQN**: zaphiro.grid.v1.DataError



Expand Down
8 changes: 4 additions & 4 deletions docs/event.proto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package: grid.v1
# Package: zaphiro.grid.v1

<!-- markdownlint-disable -->
Messages to support event detection in the platform.
Expand All @@ -23,7 +23,7 @@ The event detected may be originated from different sources: devices (e.g. a PMU

## Enum: EventStatus

**FQN**: grid.v1.EventStatus
**FQN**: zaphiro.grid.v1.EventStatus

The collection of Event Status defined so far.

Expand All @@ -39,7 +39,7 @@ The collection of Event Status defined so far.

## Enum: EventSourceType

**FQN**: grid.v1.EventSourceType
**FQN**: zaphiro.grid.v1.EventSourceType



Expand Down Expand Up @@ -116,7 +116,7 @@ Event --> `EventStatus`

## Message: Event

**FQN**: grid.v1.Event
**FQN**: zaphiro.grid.v1.Event

A generic event.
Headers used in rabbitMQ (only if not sent as part of `DataSet`):
Expand Down
12 changes: 6 additions & 6 deletions docs/fault.proto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Package: grid.v1
# Package: zaphiro.grid.v1

<!-- markdownlint-disable -->
Messages describing faults.
Expand All @@ -22,7 +22,7 @@ Messages describing faults.

## Enum: PhaseConnectedFaultKind

**FQN**: grid.v1.PhaseConnectedFaultKind
**FQN**: zaphiro.grid.v1.PhaseConnectedFaultKind


The type of fault connection among phases.
Expand All @@ -42,7 +42,7 @@ Messages describing faults.

## Enum: PhaseCode

**FQN**: grid.v1.PhaseCode
**FQN**: zaphiro.grid.v1.PhaseCode


An unordered enumeration of phase identifiers. Allows designation of phases for both transmission and distribution equipment, circuits and loads. The enumeration, by itself, does not describe how the phases are connected together or connected to ground. Ground is not explicitly denoted as a phase.
Expand Down Expand Up @@ -230,7 +230,7 @@ EquipmentFault --> `Fault`

## Message: Fault

**FQN**: grid.v1.Fault
**FQN**: zaphiro.grid.v1.Fault

Abnormal condition causing current flow through conducting equipment, such as caused by equipment failure or short circuits from objects not typically modelled (for example, a tree falling on a line).

Expand Down Expand Up @@ -261,7 +261,7 @@ Headers used in rabbitMQ:

## Message: LineFault

**FQN**: grid.v1.LineFault
**FQN**: zaphiro.grid.v1.LineFault

A fault that occurs on an AC line segment at some point along the length.

Expand All @@ -285,7 +285,7 @@ Headers used in rabbitMQ:

## Message: EquipmentFault

**FQN**: grid.v1.EquipmentFault
**FQN**: zaphiro.grid.v1.EquipmentFault


A fault applied at the terminal, external to the equipment. This class is not used to specify faults internal to the equipment.
Expand Down
Loading

0 comments on commit 86d930c

Please sign in to comment.