Skip to content

Commit 9f47bcc

Browse files
author
Adriano Santos
committed
fix: build any without new function
1 parent 9aa5e51 commit 9f47bcc

9 files changed

Lines changed: 276 additions & 340 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,6 @@ jobs:
5555
- name: Shutdown Ubuntu MySQL (SUDO)
5656
run: sudo service mysql stop
5757

58-
# - name: Set up MariaDB
59-
# uses: getong/mariadb-action@v1.11
60-
# with:
61-
# host port: 3307
62-
# container port: 3307
63-
# character set server: 'utf8'
64-
# collation server: 'utf8_general_ci'
65-
# mariadb version: '10.4.10'
66-
# mysql database: 'eigr-functions-db'
67-
#
68-
# - name: Wait for MariaDB to be Ready
69-
# run: |
70-
# for i in {1..10}; do
71-
# if mysqladmin ping -h127.0.0.1 -P3307 --silent; then
72-
# echo "MariaDB is ready!"
73-
# break
74-
# fi
75-
# echo "Waiting for MariaDB..."
76-
# sleep 5
77-
# done
78-
#
79-
# - name: Set up MariaDB User
80-
# run: |
81-
# # Create 'admin' user with password 'admin' and grant privileges
82-
# mysql -h127.0.0.1 -P3307 -uroot -e "CREATE USER IF NOT EXISTS 'admin'@'%' IDENTIFIED BY 'admin';"
83-
# mysql -h127.0.0.1 -P3307 -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;"
84-
# mysql -h127.0.0.1 -P3307 -uroot -e "FLUSH PRIVILEGES;"
85-
8658
- name: Install NATS with JetStream
8759
run: |
8860
wget https://github.com/nats-io/nats-server/releases/download/v2.10.0/nats-server-v2.10.0-linux-amd64.tar.gz
@@ -140,21 +112,6 @@ jobs:
140112
elixir --name spawn@127.0.0.1 -S mix test --max-cases=1
141113
cd ../../
142114
143-
# - name: Run tests spawn_statestores_mariadb
144-
# run: |
145-
# cd spawn_statestores/statestores_mariadb
146-
# mix deps.get
147-
# MIX_ENV=test \
148-
# PROXY_DATABASE_TYPE=mariadb \
149-
# PROXY_DATABASE_PORT=3307 \
150-
# PROXY_DATABASE_USERNAME=admin \
151-
# PROXY_DATABASE_SECRET=admin \
152-
# PROXY_CLUSTER_STRATEGY=gossip \
153-
# PROXY_HTTP_PORT=9005 \
154-
# SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= \
155-
# elixir --name spawn@127.0.0.1 -S mix test
156-
# cd ../../
157-
158115
- name: Run tests statestores_native
159116
run: |
160117
cd spawn_statestores/statestores_native
@@ -168,11 +125,4 @@ jobs:
168125
mix deps.get
169126
MIX_ENV=test PROXY_DATABASE_TYPE=native PROXY_CLUSTER_STRATEGY=gossip PROXY_HTTP_PORT=9005 SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= elixir --name spawn@127.0.0.1 -S mix test
170127
cd ../../
171-
172-
# - name: Run tests operator
173-
# run: |
174-
# cd spawn_operator/spawn_operator
175-
# mix deps.get
176-
# MIX_ENV=test PROXY_DATABASE_TYPE=native PROXY_CLUSTER_STRATEGY=gossip PROXY_HTTP_PORT=9005 SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= elixir --name spawn@127.0.0.1 -S mix test
177-
# cd ../../
178128

lib/_generated/io/cloudevents/v1/spec.pb.ex

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule Io.Cloudevents.V1.CloudEvent.AttributesEntry do
22
@moduledoc false
3-
use Protobuf, map: true, protoc_gen_elixir_version: "0.14.0", syntax: :proto3
3+
use Protobuf, map: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
44

55
def descriptor do
66
# credo:disable-for-next-line
@@ -58,13 +58,13 @@ defmodule Io.Cloudevents.V1.CloudEvent.AttributesEntry do
5858
}
5959
end
6060

61-
field(:key, 1, type: :string)
62-
field(:value, 2, type: Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue)
61+
field :key, 1, type: :string
62+
field :value, 2, type: Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue
6363
end
6464

6565
defmodule Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue do
6666
@moduledoc false
67-
use Protobuf, protoc_gen_elixir_version: "0.14.0", syntax: :proto3
67+
use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
6868

6969
def descriptor do
7070
# credo:disable-for-next-line
@@ -184,20 +184,20 @@ defmodule Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue do
184184
}
185185
end
186186

187-
oneof(:attr, 0)
187+
oneof :attr, 0
188188

189-
field(:ce_boolean, 1, type: :bool, json_name: "ceBoolean", oneof: 0)
190-
field(:ce_integer, 2, type: :int32, json_name: "ceInteger", oneof: 0)
191-
field(:ce_string, 3, type: :string, json_name: "ceString", oneof: 0)
192-
field(:ce_bytes, 4, type: :bytes, json_name: "ceBytes", oneof: 0)
193-
field(:ce_uri, 5, type: :string, json_name: "ceUri", oneof: 0)
194-
field(:ce_uri_ref, 6, type: :string, json_name: "ceUriRef", oneof: 0)
195-
field(:ce_timestamp, 7, type: Google.Protobuf.Timestamp, json_name: "ceTimestamp", oneof: 0)
189+
field :ce_boolean, 1, type: :bool, json_name: "ceBoolean", oneof: 0
190+
field :ce_integer, 2, type: :int32, json_name: "ceInteger", oneof: 0
191+
field :ce_string, 3, type: :string, json_name: "ceString", oneof: 0
192+
field :ce_bytes, 4, type: :bytes, json_name: "ceBytes", oneof: 0
193+
field :ce_uri, 5, type: :string, json_name: "ceUri", oneof: 0
194+
field :ce_uri_ref, 6, type: :string, json_name: "ceUriRef", oneof: 0
195+
field :ce_timestamp, 7, type: Google.Protobuf.Timestamp, json_name: "ceTimestamp", oneof: 0
196196
end
197197

198198
defmodule Io.Cloudevents.V1.CloudEvent do
199199
@moduledoc false
200-
use Protobuf, protoc_gen_elixir_version: "0.14.0", syntax: :proto3
200+
use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
201201

202202
def descriptor do
203203
# credo:disable-for-next-line
@@ -502,20 +502,19 @@ defmodule Io.Cloudevents.V1.CloudEvent do
502502
}
503503
end
504504

505-
oneof(:data, 0)
505+
oneof :data, 0
506506

507-
field(:id, 1, type: :string)
508-
field(:source, 2, type: :string)
509-
field(:spec_version, 3, type: :string, json_name: "specVersion")
510-
field(:type, 4, type: :string)
507+
field :id, 1, type: :string
508+
field :source, 2, type: :string
509+
field :spec_version, 3, type: :string, json_name: "specVersion"
510+
field :type, 4, type: :string
511511

512-
field(:attributes, 5,
512+
field :attributes, 5,
513513
repeated: true,
514514
type: Io.Cloudevents.V1.CloudEvent.AttributesEntry,
515515
map: true
516-
)
517516

518-
field(:binary_data, 6, type: :bytes, json_name: "binaryData", oneof: 0)
519-
field(:text_data, 7, type: :string, json_name: "textData", oneof: 0)
520-
field(:proto_data, 8, type: Google.Protobuf.Any, json_name: "protoData", oneof: 0)
517+
field :binary_data, 6, type: :bytes, json_name: "binaryData", oneof: 0
518+
field :text_data, 7, type: :string, json_name: "textData", oneof: 0
519+
field :proto_data, 8, type: Google.Protobuf.Any, json_name: "protoData", oneof: 0
521520
end

0 commit comments

Comments
 (0)