Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
65f2e97f
Unverified
Commit
65f2e97f
authored
10 months ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
improve docs
parent
a91f3b95
No related branches found
No related tags found
No related merge requests found
Pipeline
#62141
passed with stages
in 1 minute and 43 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+3
-3
3 additions, 3 deletions
CHANGELOG.md
CONTRIBUTING.md
+2
-3
2 additions, 3 deletions
CONTRIBUTING.md
stress_tests/client.py
+8
-3
8 additions, 3 deletions
stress_tests/client.py
with
13 additions
and
9 deletions
CHANGELOG.md
+
3
−
3
View file @
65f2e97f
The changelog is kept as
[
release notes
](
https://git.dms-serwis.com.pl/smokserwis/coolamqp/-/releases
)
Previous release notes are hosted on
[
GitHub
](
https://github.com/smok-serwis/coolamqp/releases
)
.
on GitHub. This file serves to only note what changes
Since v1.3.2 they'll be put here and in release description.
have been made so far, between releases.
# v1.3.2
# v1.3.2
...
@@ -8,3 +7,4 @@ have been made so far, between releases.
...
@@ -8,3 +7,4 @@ have been made so far, between releases.
*
compile_definitions will now depend on requests
*
compile_definitions will now depend on requests
*
added support for infinite (None) timeouts during start
*
added support for infinite (None) timeouts during start
*
stress tests will run for 120 seconds now
*
stress tests will run for 120 seconds now
*
stress tests will be harder
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CONTRIBUTING.md
+
2
−
3
View file @
65f2e97f
# Contributing guide
# Contributing guide
1.
Keep it unit tested.
1.
Keep it unit tested, so that coverage doesn't fall down too much.
1.
1. If it's cool af, you don't have to.
2.
Exhaustive pydoc. Remember to update the
[
docs/
](
docs/
)
.
2.
Exhaustive pydoc.
3.
If you introduce any gotchas, document them in
[
docs/
](
docs/
)
.
3.
If you introduce any gotchas, document them in
[
docs/
](
docs/
)
.
4.
We aim to support Python 2.7 as long as possible, keep that in account.
4.
We aim to support Python 2.7 as long as possible, keep that in account.
...
...
This diff is collapsed.
Click to expand it.
stress_tests/client.py
+
8
−
3
View file @
65f2e97f
...
@@ -6,7 +6,7 @@ import uuid
...
@@ -6,7 +6,7 @@ import uuid
from
collections
import
deque
from
collections
import
deque
from
queue
import
Empty
from
queue
import
Empty
from
satella.coding.concurrent
import
TerminableThread
from
satella.coding.concurrent
import
TerminableThread
,
ThreadCollection
from
coolamqp.clustering.events
import
ReceivedMessage
,
NothingMuch
from
coolamqp.clustering.events
import
ReceivedMessage
,
NothingMuch
from
coolamqp.objects
import
Queue
,
Message
from
coolamqp.objects
import
Queue
,
Message
...
@@ -116,9 +116,13 @@ def run(client_notify, result_client, server_notify, server_result):
...
@@ -116,9 +116,13 @@ def run(client_notify, result_client, server_notify, server_result):
lftf
=
LogFramesToFile
(
'
client.txt
'
)
lftf
=
LogFramesToFile
(
'
client.txt
'
)
amqp
=
connect
(
on_fail
=
result_client
,
log_frames
=
lftf
)
amqp
=
connect
(
on_fail
=
result_client
,
log_frames
=
lftf
)
cad
=
ConnectAndDisconnectThread
(
amqp
)
cad
.
start
()
tc
=
ThreadCollection
()
for
i
in
range
(
3
):
cad
=
ConnectAndDisconnectThread
(
amqp
)
tc
.
add
(
cad
)
tc
.
start
()
started_at
=
time
.
monotonic
()
started_at
=
time
.
monotonic
()
terminating
=
False
terminating
=
False
while
not
terminating
and
(
time
.
monotonic
()
<
started_at
+
RUNNING_INTERVAL
):
# run for however long is required
while
not
terminating
and
(
time
.
monotonic
()
<
started_at
+
RUNNING_INTERVAL
):
# run for however long is required
...
@@ -130,6 +134,7 @@ def run(client_notify, result_client, server_notify, server_result):
...
@@ -130,6 +134,7 @@ def run(client_notify, result_client, server_notify, server_result):
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
break
break
tc
.
terminate
().
join
()
server_notify
.
put
(
None
)
server_notify
.
put
(
None
)
lftf
.
close
()
lftf
.
close
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment