Comments (2)
What is the definition of "slow"?
Would you like to track it down to test cases (functions or methods) or classes(e.g. HgTests)?
I want to help but i do not understand the goal fully.
I did a trace which test classes take most of the time:
########## UnitTestCases
.............ss....s..
----------------------------------------------------------------------
Ran 22 tests in 0.078s
OK (skipped=3)
0.37user 0.06system 0:00.47elapsed 91%CPU (0avgtext+0avgdata 27316maxresident)k
4640inputs+0outputs (1major+10419minor)pagefaults 0swaps
########## TasksTestCases
.........
----------------------------------------------------------------------
Ran 9 tests in 0.047s
OK
0.32user 0.03system 0:00.36elapsed 98%CPU (0avgtext+0avgdata 26024maxresident)k
232inputs+8outputs (0major+5434minor)pagefaults 0swaps
########## SCMBaseTestCases
.
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
0.26user 0.03system 0:00.30elapsed 99%CPU (0avgtext+0avgdata 25680maxresident)k
8inputs+0outputs (0major+5368minor)pagefaults 0swaps
########## GitTests
.........................................................
----------------------------------------------------------------------
Ran 57 tests in 26.869s
OK
15.70user 11.71system 0:27.34elapsed 100%CPU (0avgtext+0avgdata 34408maxresident)k
21025inputs+102040outputs (12major+3756229minor)pagefaults 0swaps
########## SvnTests
..........................................
----------------------------------------------------------------------
Ran 42 tests in 66.416s
OK
31.56user 12.04system 1:06.85elapsed 65%CPU (0avgtext+0avgdata 41508maxresident)k
12568inputs+247448outputs (27major+3559449minor)pagefaults 0swaps
########## HgTests
..................................
----------------------------------------------------------------------
Ran 34 tests in 76.240s
OK
63.75user 11.45system 1:16.60elapsed 98%CPU (0avgtext+0avgdata 29988maxresident)k
0inputs+35328outputs (0major+4090705minor)pagefaults 0swaps
from obs-service-tar_scm.
What is the definition of "slow"?
For a test case, I guess anything longer than 0.5s or so.
Would you like to track it down to test cases (functions or methods) or classes(e.g. HgTests)?
Test cases, definitely. E.g. if HgTests
had (say) 20 tests taking 0.1s each, and 2 tests taking 10s each then there would normally be no good reason to skip the quick tests because they only take 2s in total. There would be a separate reason for optionally skipping all tests for a particular SCM, e.g. if you don't have hg
or bzr
installed, but that is a different scenario which should not be confused with this issue of slow tests.
So as in the original description here, what is needed is a decorator for marking which tests are slow, which also provides an easy way of skipping those tests, e.g. via CLI option or environment variable.
from obs-service-tar_scm.
Related Issues (20)
- KeyError: 'object_kind' in TarSCM/tasks.py on Leap 15.4 HOT 2
- Support different scm repository name in case of forks HOT 1
- obs_scm seems to broken on CentOS_8 HOT 7
- make included .git reproducible
- Service broken if .lock file left over by previous versions HOT 2
- Causes "unresolvable" error for Fedora 34+ HOT 3
- 'exclude' behaviour change in obs_scm HOT 1
- test fail on Fedora 37 HOT 4
- .obscpio file format hex code means? HOT 1
- obs_gbp: dpkg-scansources also finds any .dsc in the source clone
- Use numeric owner and group to avoid privacy leaking HOT 1
- Error with Python 3.12 due to deprecated and removed 'readfp' usage HOT 2
- Error in Fedora_Rawhide: AttributeError: 'RawConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? HOT 1
- project top level has a directory with the same name as the branch, the pull will fail.
- Chooses the wrong tag in case of several tags being present HOT 1
- @TAG_OFFSET@ not working without a tag in versionformat
- Please provide better documentation
- We should default to main branches too HOT 1
- package-meta HOT 1
- Enable changesgenerate to create a new top level entry per git tag encountered
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-service-tar_scm.