![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
__init__ (self, args, context) | |
Run (self) | |
Public Attributes | |
git = GitHelper() | |
args = args | |
context = context | |
Protected Member Functions | |
_InitialRun (self) | |
_IncrementalRun (self, last_revision_covered) | |
_WriteRawJson (self, output_info) | |
_BuildRunMetadata (self, revision_before, revision_after, comparison_performed) | |
_WriteCheckpoint (self, checkpoint) | |
A single run looking for regressions since the last one.
Definition at line 38 of file safetynet_job.py.
testing.tools.safetynet_job.JobRun.__init__ | ( | self, | |
args, | |||
context ) |
Constructor. Args: args: Namespace with arguments passed to the script. context: JobContext for this run.
Definition at line 41 of file safetynet_job.py.
|
protected |
Definition at line 176 of file safetynet_job.py.
References ALData.context, Candidate.context, CppParser.context, JavaScriptJob.context, MetaStrings::MagicComment.context, PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::CodecContext::Data.context, QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidgetPrivate.context, QOpenGLWindowPrivate.context, QPlatformOpenGLContextPrivate.context, QQmlData.context, QQmlData::DeferredData.context, QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QShortcut.context, QShortcutEntry.context, QSSGCustomMaterialSystem.context, QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::CallData.context, QV4::CppStackFrameBase.context, QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, context, TMMKey.context, and UntiedDocumentation.context.
Referenced by _IncrementalRun().
|
protected |
Incremental run, compare against last checkpoint and update it. Args: last_revision_covered: String with hash for last checkpoint. Returns: Exit code for the script.
Definition at line 103 of file safetynet_job.py.
References _BuildRunMetadata(), _WriteCheckpoint(), _WriteRawJson(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, Candidate.context, CppParser.context, JavaScriptJob.context, MetaStrings::MagicComment.context, PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::CodecContext::Data.context, QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidgetPrivate.context, QOpenGLWindowPrivate.context, QPlatformOpenGLContextPrivate.context, QQmlData.context, QQmlData::DeferredData.context, QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QShortcut.context, QShortcutEntry.context, QSSGCustomMaterialSystem.context, QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::CallData.context, QV4::CppStackFrameBase.context, QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, context, TMMKey.context, UntiedDocumentation.context, testing.tools.safetynet_compare.CompareRun.git, and git.
Referenced by Run().
|
protected |
Initial run, just write a checkpoint. Returns: Exit code for the script.
Definition at line 87 of file safetynet_job.py.
References _WriteCheckpoint(), testing.tools.safetynet_compare.CompareRun.git, and git.
Referenced by Run().
|
protected |
Definition at line 185 of file safetynet_job.py.
References QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, Candidate.context, CppParser.context, JavaScriptJob.context, MetaStrings::MagicComment.context, PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::CodecContext::Data.context, QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidgetPrivate.context, QOpenGLWindowPrivate.context, QPlatformOpenGLContextPrivate.context, QQmlData.context, QQmlData::DeferredData.context, QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QShortcut.context, QShortcutEntry.context, QSSGCustomMaterialSystem.context, QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::CallData.context, QV4::CppStackFrameBase.context, QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, context, TMMKey.context, UntiedDocumentation.context, and open().
Referenced by _IncrementalRun(), and _InitialRun().
|
protected |
Definition at line 171 of file safetynet_job.py.
References ALData.context, Candidate.context, CppParser.context, JavaScriptJob.context, MetaStrings::MagicComment.context, PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::CodecContext::Data.context, QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidgetPrivate.context, QOpenGLWindowPrivate.context, QPlatformOpenGLContextPrivate.context, QQmlData.context, QQmlData::DeferredData.context, QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QShortcut.context, QShortcutEntry.context, QSSGCustomMaterialSystem.context, QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::CallData.context, QV4::CppStackFrameBase.context, QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, context, TMMKey.context, UntiedDocumentation.context, and open().
Referenced by _IncrementalRun().
testing.tools.safetynet_job.JobRun.Run | ( | self | ) |
Searches for regressions. Will only write a checkpoint when first run, and on all subsequent runs a comparison is done against the last checkpoint. Returns: Exit code for the script: 0 if no significant changes are found; 1 if there was an error in the comparison; 3 if there was a regression; 4 if there was an improvement and no regression.
Definition at line 52 of file safetynet_job.py.
References _IncrementalRun(), _InitialRun(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, Candidate.context, CppParser.context, JavaScriptJob.context, MetaStrings::MagicComment.context, PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::CodecContext::Data.context, QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidgetPrivate.context, QOpenGLWindowPrivate.context, QPlatformOpenGLContextPrivate.context, QQmlData.context, QQmlData::DeferredData.context, QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QShortcut.context, QShortcutEntry.context, QSSGCustomMaterialSystem.context, QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::CallData.context, QV4::CppStackFrameBase.context, QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, context, TMMKey.context, UntiedDocumentation.context, testing.tools.safetynet_compare.CompareRun.git, git, and open().
testing.tools.safetynet_job.JobRun.args = args |
Definition at line 49 of file safetynet_job.py.
Referenced by testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand(), _IncrementalRun(), testing.tools.safetynet_measure.PerformanceRun._RunCallgrind(), _WriteCheckpoint(), Run(), and testing.tools.safetynet_measure.PerformanceRun.Run().
testing.tools.safetynet_job.JobRun.context = context |
Definition at line 50 of file safetynet_job.py.
Referenced by _BuildRunMetadata(), _IncrementalRun(), _WriteCheckpoint(), _WriteRawJson(), and Run().
testing.tools.safetynet_job.JobRun.git = GitHelper() |
Definition at line 48 of file safetynet_job.py.
Referenced by _IncrementalRun(), _InitialRun(), and Run().