forked from wandb/wandb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk): use transaction log to cap memory usage (wandb#4724)
- Loading branch information
Showing
50 changed files
with
2,724 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pytest | ||
pytest-cov | ||
pytest-xdist | ||
pytest-flask | ||
pytest-split | ||
pytest-mock | ||
pytest-timeout | ||
pytest-openfiles | ||
pytest-flakefinder | ||
pytest-rerunfailures | ||
parameterized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
|
||
import wandb | ||
|
||
# Temporary environment variable for testing grpc service mode | ||
os.environ["WANDB_SERVICE_TRANSPORT"] = "grpc" | ||
|
||
run = wandb.init() | ||
print("somedata") | ||
wandb.log(dict(m1=1)) | ||
wandb.log(dict(m2=2)) | ||
status = run.status() | ||
print("STATUS", status) | ||
wandb.finish() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugin: | ||
- wandb | ||
tag: | ||
shard: grpc | ||
assert: | ||
- :wandb:runs_len: 1 | ||
- :wandb:runs[0][config]: {} | ||
- :wandb:runs[0][summary]: | ||
m1: 1 | ||
m2: 2 | ||
- :wandb:runs[0][exitcode]: 0 | ||
- :op:contains: | ||
- :wandb:runs[0][telemetry][3] # feature | ||
- 23 # service | ||
- :op:contains: | ||
- :wandb:runs[0][telemetry][3] # feature | ||
- 6 # grpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python | ||
import time | ||
|
||
import wandb | ||
import yea | ||
|
||
|
||
def main(): | ||
run = wandb.init() | ||
history = 20 | ||
for i in range(history): | ||
if i % 10 == 0: | ||
print(i) | ||
run.log(dict(num=i)) | ||
time.sleep(0.1) | ||
print("done") | ||
run.finish() | ||
|
||
|
||
if __name__ == "__main__": | ||
yea.setup() | ||
main() |
24 changes: 24 additions & 0 deletions
24
tests/standalone_tests/mitm_tests/t1_mem_pressure_init.yea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
plugin: | ||
- wandb | ||
tag: | ||
shards: | ||
- standalone-mitm | ||
option: | ||
- :wandb:mitm | ||
command: | ||
program: mem_pressure.py | ||
assert: | ||
- :wandb:runs_len: 1 | ||
trigger: | ||
- :wandb:init: | ||
command: pause | ||
service: graphql | ||
time: 20 | ||
- :wandb:log: | ||
command: pause | ||
service: file_stream | ||
count: 1 | ||
skip: 10 | ||
- :wandb:finish: | ||
command: unpause | ||
service: file_stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.