orfeas_petri_flow 0.9.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/MIT-LICENSE +0 -1
- data/lib/petri_flow/tasks/petri_flow.rake +19 -1
- data/lib/petri_flow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9cbc8ff96618fd5882f9c4a77556594ffd6eda4db5499dd8bb0577f5d7aa091
|
|
4
|
+
data.tar.gz: c48d63fc243271cf9d7e4062dd47c9727db3464f844881a69200ddad38efba5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9781d473fff37db31c240ba08490e14d4e9c9f136d3e7da91ea2197b8a722d6971ec20a7886e7ee1e4d143e4788766054b7b627e347618059c35de1f950a53bc
|
|
7
|
+
data.tar.gz: b57d00e5dce2e1df0b036bc31cbebe08be2a193272b2cb6220430654d51411ca8abd468f7b6e43f6b9462debf60608527618688cc8280e0e2cf919e327b3d8dc
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to the PetriFlow gem will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.0.0] - 2026-11-22
|
|
8
|
+
|
|
9
|
+
Released with Lyra 1.0.0 and PAM DSL 1.0.0.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **The gems' MIT-LICENSE copyright line no longer names the University of the Aegean**, which is
|
|
13
|
+
the author's affiliation, not a copyright holder.
|
|
14
|
+
- **`rake petri_flow:verify` exits 1 when a workflow fails verification**: a terminal place it
|
|
15
|
+
cannot reach, an unbounded net, or a run that can stop short of a terminal place. The reports
|
|
16
|
+
are written first, as before. `PETRI_FLOW_EXPECTED_FAILURES` (class names, comma-separated)
|
|
17
|
+
exempts a workflow kept flawed on purpose, as a demonstration. It used to exit 0 whatever it
|
|
18
|
+
found.
|
|
19
|
+
|
|
7
20
|
## [0.9.3] - 2026-11-04
|
|
8
21
|
|
|
9
22
|
### Security
|
data/MIT-LICENSE
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2025 Michail Pantelelis (mpantel@aegean.gr)
|
|
4
|
-
University of the Aegean - ORFEAS Framework
|
|
5
4
|
|
|
6
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -27,7 +27,25 @@ namespace :petri_flow do
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
runner = PetriFlow::VerificationRunner.new
|
|
30
|
-
runner.run_all
|
|
30
|
+
results = runner.run_all
|
|
31
|
+
|
|
32
|
+
# A workflow fails verification when a terminal place is unreachable, the
|
|
33
|
+
# net is unbounded, or it can stop short of a terminal place. The reports
|
|
34
|
+
# are written either way; then the task exits 1 if any failed, unless
|
|
35
|
+
# PETRI_FLOW_EXPECTED_FAILURES names it (a workflow kept flawed on purpose,
|
|
36
|
+
# as a demonstration).
|
|
37
|
+
failed = results.filter_map do |_id, r|
|
|
38
|
+
unreachable = r[:terminal_reachability].select { |_place, reachable| !reachable }.keys
|
|
39
|
+
unbounded = r.dig(:verification, :boundedness, :is_bounded) == false
|
|
40
|
+
improper = r.dig(:verification, :liveness, :terminates_properly) == false
|
|
41
|
+
next if unreachable.empty? && !unbounded && !improper
|
|
42
|
+
|
|
43
|
+
[r[:class_name], { unreachable: unreachable, unbounded: unbounded, terminates_improperly: improper }]
|
|
44
|
+
end.to_h
|
|
45
|
+
expected = ENV.fetch("PETRI_FLOW_EXPECTED_FAILURES", "").split(",").map(&:strip)
|
|
46
|
+
unexpected = failed.except(*expected)
|
|
47
|
+
failed.each { |name, why| puts "#{expected.include?(name) ? 'expected failure' : 'FAILED'}: #{name} #{why}" }
|
|
48
|
+
abort "petri_flow:verify: #{unexpected.size} workflow(s) failed verification: #{unexpected.keys.join(', ')}" if unexpected.any?
|
|
31
49
|
end
|
|
32
50
|
|
|
33
51
|
namespace :verify do
|
data/lib/petri_flow/version.rb
CHANGED