Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from damies13:master #12

Open
wants to merge 6,293 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6293 commits
Select commit Hold shift + click to select a range
3507c6e
Verify Disable log.html - Scenario in progress
damies13 Apr 15, 2024
ebfb430
fix path
damies13 Apr 15, 2024
ea60721
try Run Keyword And Ignore Error for macos
damies13 Apr 15, 2024
ac5d886
Bring window to foreground to close it
damies13 Apr 15, 2024
e0efd14
linter cheer
damies13 Apr 15, 2024
bab76b2
Now uncheck log.html and verify it gets removed
damies13 Apr 15, 2024
879fe84
next 2 tests - these should fail
damies13 Apr 15, 2024
9908407
Verify Disable log.html - Test Row, will probably fail
damies13 Apr 15, 2024
c3daae0
Running test for issue 52 and 53 on all python versions
ArekKuczynski Apr 15, 2024
56b4566
Test for Issue #52 & #53 final
ArekKuczynski Apr 15, 2024
4946917
Trying to make test for macos more stable
ArekKuczynski Apr 15, 2024
3f101da
Image updates
damies13 Apr 15, 2024
aa68624
Merge pull request #228 from NiceProjectPoland/test1.3.0_issue_52_and_53
damies13 Apr 15, 2024
008f82b
Started making test for Issue #70
ArekKuczynski Apr 15, 2024
f00a115
save 2
damies13 Apr 15, 2024
e2a39bc
deal with Merge conflicts
damies13 Apr 15, 2024
32f5d58
Test Group Save Settings
damies13 Apr 15, 2024
3c730e3
Corrections to test and changed ubuntu finised button png
ArekKuczynski Apr 15, 2024
3e29dff
More correction to test
ArekKuczynski Apr 15, 2024
b150baa
Trying to fix test for macos
ArekKuczynski Apr 15, 2024
dcb847f
Looks promissing for macos
ArekKuczynski Apr 15, 2024
49c6a9c
Small fix
ArekKuczynski Apr 15, 2024
61e46e8
Small fix
ArekKuczynski Apr 15, 2024
1881282
Still trying to fix test for macos
ArekKuczynski Apr 16, 2024
f4e6aac
Running test on all python verison
ArekKuczynski Apr 16, 2024
8d56c6c
Adjusting test for macos probably for the last time
ArekKuczynski Apr 16, 2024
628919f
Final changes to test
ArekKuczynski Apr 16, 2024
d032dd2
Added more time to finish run in gradually stop
ArekKuczynski Apr 16, 2024
e78462f
Should work now
ArekKuczynski Apr 16, 2024
1adb74f
Finish test cases for Issue #151
damies13 Apr 17, 2024
3185752
I forgot to save before check in
damies13 Apr 17, 2024
a691d26
Changed the way how the test works
ArekKuczynski Apr 17, 2024
e752525
Merge pull request #229 from NiceProjectPoland/Test-#205-for-Issue-#70
damies13 Apr 17, 2024
b46333e
RF 6.11 doesn't have the new VAR keyword yet
damies13 Apr 17, 2024
41b749e
Missed making change on copy paste
damies13 Apr 17, 2024
de063b1
Hopefully this fixes the fails on macos
damies13 Apr 17, 2024
fc16353
Changed the test structure for Issue #1 and small changes for Issue #…
ArekKuczynski Apr 17, 2024
1c9912c
Trying to adjust test for macos
ArekKuczynski Apr 17, 2024
71f5be4
Still strying to adjust test issue #70 for macos
ArekKuczynski Apr 17, 2024
a84cbf5
Improved test issue #1 with new test row settings and still trying to…
ArekKuczynski Apr 17, 2024
72f17ef
Small correction to Test for Issue #70 because of windows
ArekKuczynski Apr 17, 2024
ec8b429
Expanded time in test for Issue #70 and changed stop_run image for wi…
ArekKuczynski Apr 18, 2024
4ec449f
Trying something new for macos
ArekKuczynski Apr 18, 2024
651ffa6
Getting important test informations
ArekKuczynski Apr 18, 2024
a382ef6
Getting inportant informations
ArekKuczynski Apr 18, 2024
149936c
Small correction
ArekKuczynski Apr 18, 2024
1539ed8
More tweaks for macos
damies13 Apr 18, 2024
1a34e0d
Getting important data
ArekKuczynski Apr 18, 2024
f88369a
Still getting informations
ArekKuczynski Apr 18, 2024
038564f
Trying to fix problem with empty Manager INI file
ArekKuczynski Apr 18, 2024
788aa5c
New test version for Issue #1
ArekKuczynski Apr 18, 2024
0ddf04a
Forgot about yaml the file
ArekKuczynski Apr 18, 2024
d1534b3
trsettings
damies13 Apr 18, 2024
8443d17
Merge pull request #230 from NiceProjectPoland/test1.3.0-ScenarioSaves
ArekKuczynski Apr 18, 2024
caa02a1
Added test for Issue #123 and added lxml library to the setup-reporte…
ArekKuczynski Apr 18, 2024
a5a74e0
Tests for Issue #151 now all working and features implimented
damies13 Apr 19, 2024
ba70e00
Update version to 1.3.0
damies13 Apr 19, 2024
dc1c0da
Tweak test for Issue #52 to give more details about why failed
damies13 Apr 19, 2024
a8cd937
Improve message
damies13 Apr 19, 2024
f7704aa
raw strings for windows paths
damies13 Apr 20, 2024
02bfda6
Update version to Issue-#232-CURDIR+glob
damies13 Apr 20, 2024
f715c55
Improved 'Get Modules From Program. py File' Keyword
ArekKuczynski Apr 20, 2024
ce41381
Fix for Issue #232
damies13 Apr 20, 2024
1523795
Linter happiness
damies13 Apr 20, 2024
259e9e3
Update version to 1.3.0
damies13 Apr 21, 2024
4cff095
Update version to Issue-#138-reporter-time-range
damies13 Apr 21, 2024
df7e136
Final corrections
ArekKuczynski Apr 21, 2024
85f937b
Merge pull request #231 from NiceProjectPoland/Test-#218-for-Issue-#123
damies13 Apr 21, 2024
cfa511b
Stage 1 Add start and end time constraints to SQL
damies13 Apr 22, 2024
42c5ef7
Stage 2 - Input and parse date time strings
damies13 Apr 22, 2024
93eca39
First attempt at test case for Issue #138
damies13 Apr 25, 2024
2157649
*** Variables ***
damies13 Apr 25, 2024
788db27
Typo from restructure
damies13 Apr 25, 2024
20ac4ac
Linter happiness
damies13 Apr 25, 2024
2c5434f
Missed Settings
damies13 Apr 25, 2024
9cc5b14
This should get me to preview robots graph
damies13 Apr 25, 2024
d280806
more images for test case
damies13 Apr 25, 2024
b45ec88
Improve image for Report section
damies13 Apr 25, 2024
ff18d58
Hopefully this is a better approach to changing the time values
damies13 Apr 26, 2024
f21e24b
try again with offset
damies13 Apr 26, 2024
5e4ac35
missing offset
damies13 Apr 26, 2024
19c113c
Missing Value from what to type
damies13 Apr 27, 2024
14ac387
Test twaeks to prevent TclError error and settings not found
damies13 Apr 27, 2024
34d642c
Move Make Clipboard Not None
damies13 Apr 27, 2024
33b4332
Tweaks after testing on windows vm
damies13 Apr 27, 2024
bb65b51
updates for MacOS and Ubuntu
damies13 Apr 27, 2024
2aa8774
Ubuntu again - try like this
damies13 Apr 27, 2024
7092114
Try to improve the reliability of the test cases
damies13 Apr 27, 2024
a435952
While needs variables done slightly differently
damies13 Apr 28, 2024
d45eb10
try while again
damies13 Apr 28, 2024
42275be
try a miving offset
damies13 Apr 28, 2024
264c3fb
Moving offset on set as well
damies13 Apr 28, 2024
23c520b
try again after logic fix
damies13 Apr 28, 2024
fb7f726
Try again for MacOS to copy value
damies13 Apr 28, 2024
cca9cf7
Try again for MacOS to copy value
damies13 Apr 28, 2024
0fc8214
Try Again for MacOS Specific copy issue
damies13 Apr 28, 2024
d7c62d2
Another attempt at making MacOS working
damies13 Apr 28, 2024
b570b72
Hopefully this finishes the test for Macos
damies13 Apr 28, 2024
5a32272
Resolve conflicts from Merger of Issue #138 into release branch v1.3.0
damies13 Apr 28, 2024
c5296d5
Update version to 1.3.0
damies13 Apr 28, 2024
3120e64
Update version to Issue-#235-python-3-7-on-macos-arm64
damies13 Apr 28, 2024
8fb4cf4
Regression Tests - Agent Attempts 1
damies13 Apr 29, 2024
e345075
Regression Tests - Agent Attempts 1
damies13 Apr 29, 2024
ed7fe6a
Regression Tests - Agent Attempts 2
damies13 Apr 29, 2024
b522a88
Regression Tests - Agent Attempts 3
damies13 Apr 29, 2024
dda4811
Split Agent, Manager & reporter into own yaml files
damies13 Apr 29, 2024
c9d5553
agent tag macos-13 --> macos-latest
damies13 Apr 29, 2024
c845c78
Robot Tag for manager and reporter
damies13 Apr 29, 2024
c557d83
No Python 3.7
damies13 Apr 29, 2024
a11470d
Pip Update to preven pip errors
damies13 Apr 29, 2024
d0a5aae
Started making test cases for Issue-#174
ArekKuczynski Apr 29, 2024
e42664c
Small corrections
ArekKuczynski Apr 29, 2024
6e3f908
Update version to 1.3.0
damies13 Apr 30, 2024
bde9849
Trying to get inject sleep value in a different way
ArekKuczynski Apr 30, 2024
8db9f7a
Check if inject sleep executed in test TEST CASE should work now with…
ArekKuczynski Apr 30, 2024
a63a965
Small correction to make the test work on macos
ArekKuczynski Apr 30, 2024
be5c573
Minor corrections
ArekKuczynski May 1, 2024
94d06d5
Update version to Issue-#234-NiceProject-Sponsor
damies13 May 1, 2024
8eb48a0
Hopefully this renders nicely
damies13 May 1, 2024
1b67173
Scaled images
damies13 May 1, 2024
9626a6e
Table
damies13 May 1, 2024
6d55a09
middle Top
damies13 May 1, 2024
56690e5
First row
damies13 May 1, 2024
645d4d3
Try fix link to Arek
damies13 May 1, 2024
afa835d
Needs https://github.com
damies13 May 1, 2024
820b7f6
Shorter comment line
damies13 May 1, 2024
009183c
For the Linter
damies13 May 1, 2024
46f3595
Changed the way how the Check If Inject Sleep Option Was Executed in …
ArekKuczynski May 1, 2024
2f754e8
Still trying to make test work on macos
ArekKuczynski May 2, 2024
ee71300
Still trying
ArekKuczynski May 2, 2024
43b7cb4
Should work now on every os
ArekKuczynski May 2, 2024
41bf8f4
Merge pull request #237 from NiceProjectPoland/Test-#206-for-Issue-#174
damies13 May 3, 2024
b2ed491
Add timeout to Click Dialog Button
damies13 May 3, 2024
912dd45
Add sponsors link to the about page
damies13 May 4, 2024
0318fe1
Merge branch 'refs/heads/Issue-#234-NiceProject-Sponsor' into v1.3.0
damies13 May 4, 2024
4635e17
Update version to 1.3.0
damies13 May 4, 2024
ec80572
Pass through the timeout setting
damies13 May 5, 2024
55807fa
Tweak the twine upload command
damies13 May 5, 2024
0f40bf5
Dump GitHub context
damies13 May 5, 2024
410fa16
not ideal but lets try this
damies13 May 5, 2024
5b8994f
try with pypi gh action
damies13 May 5, 2024
51b63fd
token permissions
damies13 May 6, 2024
83dbda5
going back to the earlier way, but now with token permissions on job
damies13 May 6, 2024
9bbf8cf
Update version to master
damies13 May 6, 2024
e0a5603
Update version to 1.4.0
damies13 May 6, 2024
aab5651
Fix Table
damies13 May 13, 2024
2059065
fix table
damies13 May 13, 2024
2b6625b
Add "to " that was missing from the about statement
damies13 May 14, 2024
386b75f
Fix link to regression tests after yaml's were changed
damies13 May 14, 2024
428d18a
Started making Tests for Issue #58 and test for Issue #240 + some min…
ArekKuczynski May 16, 2024
b225b6d
This caused build failures for Arek and didn't work for me
damies13 May 17, 2024
131e83c
Update 1.4.0 with doc changes in master
damies13 May 17, 2024
e35de87
Merge branch 'v1.4.0' into Test-#204-for-Issue-#58
ArekKuczynski May 17, 2024
4d9cd08
Making sure test will work on macos
ArekKuczynski May 17, 2024
ffcce47
More corrections and added rundelrow images for ubuntu and macos
ArekKuczynski May 18, 2024
d037ae0
Update version to 1.3.1
damies13 May 19, 2024
790d708
Framework :: Robot Framework :: Tool
damies13 May 19, 2024
a464cee
Merge branch 'v1.3.1' into Test-#204-for-Issue-#58
ArekKuczynski May 19, 2024
5c87a7f
Merge pull request #242 from NiceProjectPoland/Test-#204-for-Issue-#58
damies13 May 19, 2024
b0a6e9f
Started making Bugfix and Test for Issue #241
ArekKuczynski May 23, 2024
51d898f
Small corrections to Test #241 and make Super-Linter happy
ArekKuczynski May 23, 2024
618ac57
Really small correction to Bugfix
ArekKuczynski May 24, 2024
6c032f0
Fix for bug-fix Issue #241
ArekKuczynski May 24, 2024
4779029
Improved Test Case for Issue #241
ArekKuczynski May 24, 2024
b6013a4
Checking if Test Cases for Issue #70 will run now on macos-latest
ArekKuczynski May 24, 2024
a7ace36
Merge pull request #243 from NiceProjectPoland/Bug-fix-for-Issue-#241
damies13 May 27, 2024
bcce3d3
Give agent each test different result directory
ArekKuczynski May 31, 2024
1866655
Log agent outputs
ArekKuczynski May 31, 2024
548e8d8
Add more information for unusual failures
ArekKuczynski May 31, 2024
fae6475
Use predefined scenario for the test cases
ArekKuczynski May 31, 2024
5ce8f2f
Forget to delete scenario files after test cases
ArekKuczynski May 31, 2024
0cda33b
Merge pull request #244 from NiceProjectPoland/Test-#205-for-Issue-#70
damies13 May 31, 2024
70391a0
Found this bug in windows path handling when writing tests for v1.4.0
damies13 Jun 2, 2024
207f50f
Merge branch 'v1.3.1' of https://github.com/damies13/rfswarm into v1.3.1
damies13 Jun 2, 2024
51c3da2
Update version to 1.3.1
damies13 Jun 2, 2024
000a6d4
Code fix for Issue #240
ArekKuczynski Jun 7, 2024
860064d
Make Super-Linter happy
ArekKuczynski Jun 7, 2024
6f5349b
Merge pull request #249 from NiceProjectPoland/Bug-fix-for-Issue-#240
damies13 Jun 8, 2024
79fa827
Update PIP the recommended way
damies13 Jun 24, 2024
fd6736e
Don't run publish workflow for forks
damies13 Jun 24, 2024
d14d476
Fix for RFSTestRepeater.py
damies13 Jun 25, 2024
93ac1e5
Better fix for RFSTestRepeater.py
damies13 Jun 25, 2024
3ee1efd
for linter
damies13 Jun 25, 2024
45f26c7
Fix for RFSListener3.py
damies13 Jun 25, 2024
9818bee
Started making test case for Issue #254
ArekKuczynski Jun 25, 2024
30b05c5
Small correction to test case placement
ArekKuczynski Jun 25, 2024
7b95917
Added correct macos tag to the test case
ArekKuczynski Jun 25, 2024
14eff3f
Fixing small mistake for ubuntu/linux
ArekKuczynski Jun 25, 2024
c671b8e
Cleaning test case code
ArekKuczynski Jun 25, 2024
b7169fa
Small changes to variable names
ArekKuczynski Jun 25, 2024
500d874
Merge pull request #255 from NiceProjectPoland/Test-for-Issue-#254
damies13 Jun 26, 2024
8dd24e9
This should fix Issue #254
damies13 Jun 26, 2024
78a6b38
Tweak test for reliability
damies13 Jun 26, 2024
7483d6c
Again tweaks to try and improve reliability of the test
damies13 Jun 26, 2024
cdd4c17
Started making test case for Issue #257
ArekKuczynski Jun 27, 2024
029d132
Bug fix for Issue-#257
ArekKuczynski Jun 28, 2024
8dbdbdb
This could work for Ubuntu
ArekKuczynski Jun 28, 2024
1638b5e
Improved test case Verify files section
ArekKuczynski Jun 29, 2024
7ce6fbd
Merge pull request #258 from NiceProjectPoland/Test-for-Issue-#257
damies13 Jun 29, 2024
1dce437
fix miscalculation in nic speed
damies13 Jun 29, 2024
47b5bac
linter cheer
damies13 Jul 2, 2024
0b847ae
Start of test case for Issue #250
damies13 Jul 2, 2024
c84abc0
try to get the start and end times as well as preview tab
damies13 Jul 2, 2024
6387734
templatefolder use basefolder
damies13 Jul 2, 2024
89ebc00
Make Clipboard Not None
damies13 Jul 2, 2024
d19f9d7
Progress test case for Issue #250
damies13 Jul 2, 2024
aa81ba1
generate html and capture the result
damies13 Jul 2, 2024
14cb94b
This should be the completed test case for Issue #250
damies13 Jul 2, 2024
8a7c571
Copy paste bug in test case for Issue #250
damies13 Jul 2, 2024
9089704
I think this is the fix for Issue #250
damies13 Jul 3, 2024
6f7a0d1
oops
damies13 Jul 3, 2024
7f77ce1
another oops
damies13 Jul 3, 2024
cade994
Tune images for test case verification
damies13 Jul 3, 2024
d45b53c
Building test data for Issue #261
damies13 Jul 7, 2024
a0b3e11
Test cases for Issue #261
damies13 Jul 7, 2024
419d804
Test teardowns for Issue #261
damies13 Jul 7, 2024
973cc69
Tuning tests for Issue #261
damies13 Jul 7, 2024
d9bd477
Hopefully assertions will fail where expected now
damies13 Jul 7, 2024
d8d33aa
Of course it fails here
damies13 Jul 7, 2024
4e91e3f
Fail in expected place for MacOS
damies13 Jul 7, 2024
1aedcd3
make the gh logs a little quieter
damies13 Jul 8, 2024
c31f627
First attempt at fixing Issue #261
damies13 Jul 8, 2024
c496f48
Missed Arg on Read Log
damies13 Jul 8, 2024
38a2ac0
Next attempt at fixing Issue #261
damies13 Jul 8, 2024
dbd8d3e
undo last change, as it only impacted init files
damies13 Jul 8, 2024
e0bd230
try using filequeue
damies13 Jul 8, 2024
67b0cbf
Try queueing downloads like we do with uploads
damies13 Jul 8, 2024
e70ac9c
more download queue stuff and downloaded file count
damies13 Jul 8, 2024
ca59aa5
Circular Reference Resource Files 2
damies13 Jul 8, 2024
34d0ee7
Check all the files
damies13 Jul 8, 2024
27e9f84
Create before empty
damies13 Jul 8, 2024
6f7c149
Rename files and improve handling of python module directories
damies13 Jul 9, 2024
b48b1e6
Fix for Create before empty
damies13 Jul 9, 2024
ab742e0
ignore .pyc files in test cases when scanning agent dir
damies13 Jul 9, 2024
3c589a9
Ooops with avoiding pyc files
damies13 Jul 9, 2024
fbb25cd
Remove Values From List
damies13 Jul 9, 2024
03ff231
Give the "Lots Of Resource Files" test a bit longer to run so it can …
damies13 Jul 9, 2024
0ea5855
Try to recover the std out logs and runner stats
damies13 Jul 9, 2024
41489bd
CPU Freq not work on MacOS
damies13 Jul 9, 2024
4341832
move process queue outside loot for adding to queue
damies13 Jul 10, 2024
05c38b3
Optimised the threads as much as I can for Windows (slowest os)
damies13 Jul 10, 2024
d583b88
Now we know it can pass on windows, reduce the noise from the agent log
damies13 Jul 10, 2024
b5af6cb
lets see if a simple 3 min delay in the test start is enough to fox t…
damies13 Jul 10, 2024
567fd78
Don't fail Close Manager GUI unless process is still running
damies13 Jul 11, 2024
2ef3722
This should help making the close manager gui more reliable
damies13 Jul 11, 2024
747e75e
Argggh if needs end
damies13 Jul 11, 2024
294788e
Continue This should help making the close manager gui more reliable
damies13 Jul 11, 2024
72a0e97
Update version to 1.3.2
damies13 Jul 11, 2024
62e15b4
Add Slack on main readme's
damies13 Sep 15, 2024
5df997d
Update perftest.resource
damies13 Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
github: [damies13]
custom: ["https://paypal.me/damies13/5"]
18 changes: 9 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Mobile phone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
Expand Down
7 changes: 7 additions & 0 deletions .github/linters/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
max-line-length = 120
ignore =
# Tabs
W191,
# line too long
E501
4 changes: 4 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"threshold": 30,
"reporters": ["console", "markdown"]
}
6 changes: 6 additions & 0 deletions .github/linters/.yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: default

rules:
line-length:
max: 120
level: warning
40 changes: 40 additions & 0 deletions .github/workflows/Main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Package Test Publish

on: push

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

jobs:
Package_For_PIP:
uses: ./.github/workflows/Package.yaml

# Regression_Tests:
# needs:
# - Package_For_PIP
# uses: ./.github/workflows/Regression_Tests.yaml

Regression_Tests_Agent:
needs:
- Package_For_PIP
uses: ./.github/workflows/Regression_Tests_Agent.yaml

Regression_Tests_Manager:
needs:
- Package_For_PIP
uses: ./.github/workflows/Regression_Tests_Manager.yaml

Regression_Tests_Reporter:
needs:
- Package_For_PIP
uses: ./.github/workflows/Regression_Tests_Reporter.yaml

Publish_Package:
if: github.repository_owner == 'damies13'
needs:
- Package_For_PIP
# - Regression_Tests
- Regression_Tests_Agent
- Regression_Tests_Manager
- Regression_Tests_Reporter
uses: ./.github/workflows/Publish.yaml
180 changes: 180 additions & 0 deletions .github/workflows/Package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
---
name: Package

on: workflow_call

jobs:
Package_For_PIP:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Apt Update
run: |
sudo apt update -y
- name: PIP Install
run: pip install --upgrade build setuptools twine wheel
- name: Get Branch Name
run: |
branchname=$(git rev-parse --abbrev-ref HEAD)
echo "branchname=$branchname" >> "$GITHUB_ENV"
- name: Get Current Release Tag
run: |
currrelease=$(git describe --abbrev=0 --tags)
echo "currrelease=$currrelease" >> "$GITHUB_ENV"
- name: Determine if this is a release branch
run: |
isrelease=0
if [[ $branchname =~ v[0-9]\. ]]; then
isrelease=1
fi
echo "isrelease=$isrelease" >> "$GITHUB_ENV"
- name: Determine if this is master branch
run: |
ismaster=0
if [[ $branchname == master ]]; then
ismaster=1
fi
echo "ismaster=$ismaster" >> "$GITHUB_ENV"

- name: Check Branch for Issue Number with Milestone
# if: ${{ env.isrelease == 1 }}
shell: python
# https://api.github.com/repos/damies13/rfswarm/milestones
run: |
import os
import re
import requests
branchname = os.getenv("branchname")
milestonever="NotSet"
ismilestone=0
print('branchname :', branchname)
m = re.search("#(\d*)", branchname)
if m is not None:
issueno = m[1]
print('issueno :', issueno)
issueresp = requests.get("https://api.github.com/repos/damies13/rfswarm/issues/{}".format(issueno))
issuedata = issueresp.json()
# print('issuedata', issuedata)
if 'milestone' in issuedata:
milestone = issuedata['milestone']
if 'title' in milestone:
milestonever = milestone['title']
print('milestonever :', milestonever)
ismilestone=1
env_file = os.getenv('GITHUB_ENV')
with open(env_file, "a") as myfile:
myfile.write("milestone={}\n".format(milestonever))
myfile.write("ismilestone={}\n".format(ismilestone))

- name: Get Date String
if: ${{ env.isrelease == 0 && env.ismaster == 0 }}
run: |
datestr=$(date +%Y%m%d%H%M%S)
echo "datestr=$datestr" >> "$GITHUB_ENV"

- name: Set Version Number to Branch Name
if: ${{ env.isrelease == 1 }}
run: |
numver=$(echo "$branchname" | sed -E 's/v([^-]*)/\1/')
echo "numver=$numver" >> "$GITHUB_ENV"
version=v$numver
echo "version=$version" >> "$GITHUB_ENV"
- name: Set Version Number to Milestone Name
if: ${{ env.ismilestone == 1 }}
run: |
numver=$(echo "$milestone" | sed -E 's/v([^-]*)/\1/')
numver=$numver.dev$datestr
echo "numver=$numver" >> "$GITHUB_ENV"
version=v$numver
echo "version=$version" >> "$GITHUB_ENV"
- name: Set New Version Number
if: ${{ env.isrelease == 0 && env.ismilestone == 0 }}
run: |
numver=$(echo "$currrelease" | sed -E 's/v([^-]*)/\1/')
mapfile -d . -t numverparts < <(echo "$numver")
len=${#numverparts[@]}
if [ "$len" -gt "2" ]; then
numver=${numverparts[0]}.${numverparts[1]}.$(( numverparts[2] + 1))
elif [ "$len" -eq "2" ]; then
numver=${numverparts[0]}.${numverparts[1]}.1
else
numver=${numverparts[0]}.0.1
fi
numver=$numver.dev$datestr
echo "numver=$numver" >> "$GITHUB_ENV"
version=v$numver
echo "version=$version" >> "$GITHUB_ENV"
- name: "Echo Vars 2"
run: |
echo numver: ${{ env.numver }}
echo version: ${{ env.version }}

- name: Update Version Number in python files
run: |
pwd
ls -la
# echo "get files"
files=$(find . -name 'rfswarm*.py')
for file in $files
do
# echo "version variable : $file"
sed -i -e "s/version = \"[^\"]*\"/version = \"${numver}\"/" "$file"
sed -i -e "s/version=\"[^\"]*\"/version = \"${numver}\"/" "$file"
# echo "version comment : $file"
sed -i -e "s/# Version .*/# Version ${numver}/" "$file"
done
files=$(find . -name 'setup-*.py')
for file in $files
do
# echo "version variable : $file"
sed -i -e "s/version = \"[^\"]*\"/version=\"${numver}\"/" "$file"
sed -i -e "s/version=\"[^\"]*\"/version=\"${numver}\"/" "$file"
# echo "version comment : $file"
# sed -i -e "s/# Version .*/# Version ${numver}/" "$file"
done
# echo "--------------- head rfswarm_agent.py ---------------"
# head -50 rfswarm_agent/rfswarm_agent.py
echo "--------------- head setup-manager.py ---------------"
head -10 setup-manager.py
echo "--------------- end head setup-manager.py ---------------"

- name: Clear Dist
run: |
rm -fR dist/
- name: Clear Build for Manager
run: |
rm -fR build/
- name: Build Manager
run: |
python3 setup-manager.py sdist bdist_wheel
- name: Clear Build for Agent
run: |
rm -fR build/
- name: Build Agent
run: |
python3 setup-agent.py sdist bdist_wheel
- name: Clear Build for Reporter
run: |
rm -fR build/
- name: Build Reporter
run: |
python3 setup-reporter.py sdist bdist_wheel
- name: Show Dist
run: |
ls -la dist

- name: Archive pip packages in dist
uses: actions/upload-artifact@v4
# https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts#passing-data-between-jobs-in-a-workflow
with:
name: dist
path: dist
retention-days: 5

#
103 changes: 103 additions & 0 deletions .github/workflows/Publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
---
name: Publish

on: workflow_call

jobs:
Publish_PIP:
runs-on: ubuntu-latest
# permissions:
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Branch Name
run: |
branchname=$(git rev-parse --abbrev-ref HEAD)
echo "branchname=$branchname" >> "$GITHUB_ENV"
- name: Determine if this is a release branch
run: |
isrelease=0
if [[ $branchname =~ v[0-9]\. ]]; then
isrelease=1
fi
echo "isrelease=$isrelease" >> "$GITHUB_ENV"
- name: Check Milestone
if: ${{ env.isrelease == 1 }}
shell: python
# https://api.github.com/repos/damies13/rfswarm/milestones
run: |
import os
import requests
branchname = os.getenv("branchname")
print("branchname:", branchname)
milestones = requests.get('https://api.github.com/repos/damies13/rfswarm/milestones')
dopublish = 0
for ms in milestones.json():
print(ms['title'])
if ms['title'] == branchname:
print(ms)
open_issues = ms['open_issues']
closed_issues = ms['closed_issues']
total_issues = open_issues + closed_issues
print('open', open_issues, 'closed', closed_issues, 'total', total_issues)
pct = (closed_issues/total_issues) * 100
print(pct, "%")
if pct == 100:
dopublish = 1
print('dopublish', dopublish)
env_file = os.getenv('GITHUB_ENV')
with open(env_file, "a") as myfile:
myfile.write("dopublish={}\n".format(dopublish))

- name: Echo Vars
run: |
echo branchname: ${{ env.branchname }}
echo isrelease: ${{ env.isrelease }}
echo dopublish : ${{ env.dopublish }}
- name: Apt Update
if: ${{ env.dopublish == 1 }}
run: |
sudo apt update -y
- name: Setup Python
if: ${{ env.dopublish == 1 }}
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: PIP Install
if: ${{ env.dopublish == 1 }}
run: pip install --upgrade build setuptools twine wheel
- name: Download packages to dist
if: ${{ env.dopublish == 1 }}
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Show Dist UM
if: ${{ env.dopublish == 1 && matrix.platform != 'windows-latest' }}
run: |
ls -la dist
- name: Show Dist W
if: ${{ env.dopublish == 1 && matrix.platform == 'windows-latest' }}
run: |
dir dist

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

# Still need to have a check all the milestones are complete
- name: Do Publish
if: ${{ env.dopublish == 1 }}
# https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#specifying-a-different-username
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# verbose: true
# password: ${{ secrets.PYPI_TOKEN }}
env:
# PYPI_USER: ${{ secrets.PYPI_TOKENU }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
echo ${#PYPI_TOKEN}
echo python3 -m twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} --verbose dist/rfswarm*
Loading