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, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), and UntiedDocumentation.context.
Referenced by testing.tools.safetynet_job.JobRun._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 testing.tools.safetynet_job.JobRun._BuildRunMetadata(), testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_job.JobRun._WriteRawJson(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.
Referenced by testing.tools.safetynet_job.JobRun.Run().
|
protected |
Initial run, just write a checkpoint. Returns: Exit code for the script.
Definition at line 87 of file safetynet_job.py.
References testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.
Referenced by testing.tools.safetynet_job.JobRun.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, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, and open().
Referenced by testing.tools.safetynet_job.JobRun._IncrementalRun(), and testing.tools.safetynet_job.JobRun._InitialRun().
|
protected |
Definition at line 171 of file safetynet_job.py.
References ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, and open().
Referenced by testing.tools.safetynet_job.JobRun._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 testing.tools.safetynet_job.JobRun._IncrementalRun(), testing.tools.safetynet_job.JobRun._InitialRun(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, ALData.context, ByteTranslatorMessage.context(), Candidate.context, ContextItem.context(), CppParser.context, CurrentContext.context(), DataIndex.context(), JavaScriptJob.context, MessageItem.context(), MultiContextItem.context(), MultiDataIndex.context(), PoItem.context, QBenchmarkGlobalData.context, QBenchmarkResult.context, QDateTimeParser.context, QFFmpeg::Codec.context(), QFFmpeg::Codec::Data.context, QGtk3Interface.context(), QGuiGLThreadContext.context, QIBusPlatformInputContextPrivate.context, QIconDirInfo.context, QLiteHtmlWidgetPrivate.context, QMacCGContext.context, QMakeParser::ParseCtx.context, QMessageLogger.context, QNtlmPhase2Block.context, QOpenGLCompositor.context(), QOpenGLDebugLoggerPrivate.context, QOpenGLPaintDevice.context(), QOpenGLTexturePrivate.context, QOpenGLTimeMonitorPrivate.context, QOpenGLTimerQueryPrivate.context, QOpenGLVersionFunctionsBackend.context, QOpenGLVertexArrayObjectPrivate.context, QOpenGLWidget.context(), QOpenGLWidgetPrivate.context, QOpenGLWindow.context(), QOpenGLWindowPrivate.context, QPlatformOpenGLContext.context(), QPlatformOpenGLContextPrivate.context, QPulseAudioEngine.context(), QQmlData.context, QQmlData::DeferredData.context, QQmlExpression.context(), QQmlJavaScriptExpression.context(), QQmlJS::ContextualTypes.context(), QQmlJSMetaPropertyBinding::Content::TranslationString.context, QQmlObjectCreator.context, QQmlPropertyPrivate.context, QQmlScriptStringPrivate.context, QQmlTranslation::QsTrData.context, QQnxScreenEventThread.context(), QQuick3DObjectPrivate::ConnectionKey.context, QQuickCanvasItem.context, QQuickCanvasItem.context(), QQuickCanvasItemPrivate.context, QQuickGraphicsDevicePrivate.context, QQuickGraphicsDevicePrivate::DeviceAndContext.context, QQuickShortcut.context, QQuickShortcut.context(), QQuickStyledTextPrivate.context, QQuickWindowPrivate.context, QRhiD3D11.context, QSGBatchRenderer::ShaderManager.context, QSGOpenVGRenderContext::InitParams.context, QSGRenderer.context(), QShortcut.context, QShortcut.context(), QShortcutEntry.context, QSSGCustomMaterialSystem.context, QSSGRhiShaderPipeline.context(), QTlsPrivate::QSecureTransportContext.context, QTlsPrivate::TlsCryptographSecureTransport.context, QtObject::Contexts.context, QV4::ArgumentsObject.context(), QV4::CallData.context, QV4::CppStackFrame.context(), QV4::CppStackFrameBase.context, QV4::Heap::QQuickJSContext2D.context(), QV4::JSTypesStackFrame.context(), QV4::MetaTypesStackFrame.context(), QV4::Script.context, QWindowsOpengl32DLL.context, SpellCheckInfo.context, testing.tools.safetynet_job.JobRun.context, TMMKey.context, TranslatorMessage.context(), UntiedDocumentation.context, testing.tools.safetynet_compare.CompareRun.git, testing.tools.safetynet_job.JobRun.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(), testing.tools.safetynet_compare.CompareRun._CleanUp(), testing.tools.safetynet_compare.CompareRun._CreateTempRepo(), testing.tools.safetynet_compare.CompareRun._DrawConclusions(), testing.tools.safetynet_compare.CompareRun._GetProfileFilePath(), testing.tools.safetynet_job.JobRun._IncrementalRun(), testing.tools.safetynet_compare.CompareRun._InitPaths(), testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch(), testing.tools.safetynet_compare.CompareRun._MoveImages(), testing.tools.safetynet_compare.CompareRun._PrintConclusions(), testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._RunAsync(), testing.tools.safetynet_measure.PerformanceRun._RunCallgrind(), testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_compare.CompareRun.Run(), testing.tools.safetynet_job.JobRun.Run(), testing.tools.safetynet_measure.PerformanceRun.Run(), and testing.tools.safetynet_compare.CompareRun.RunSingleTestCase().
testing.tools.safetynet_job.JobRun.context = context |
Definition at line 50 of file safetynet_job.py.
Referenced by testing.tools.safetynet_job.JobRun._BuildRunMetadata(), testing.tools.safetynet_job.JobRun._IncrementalRun(), testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_job.JobRun._WriteRawJson(), and testing.tools.safetynet_job.JobRun.Run().
testing.tools.safetynet_job.JobRun.git = GitHelper() |
Definition at line 48 of file safetynet_job.py.
Referenced by testing.tools.safetynet_compare.CompareRun._CheckoutBranch(), testing.tools.safetynet_compare.CompareRun._CreateTempRepo(), testing.tools.safetynet_job.JobRun._IncrementalRun(), testing.tools.safetynet_job.JobRun._InitialRun(), testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranchesInThisRepo(), testing.tools.safetynet_compare.CompareRun._RestoreLocalChanges(), testing.tools.safetynet_compare.CompareRun._StashLocalChanges(), and testing.tools.safetynet_job.JobRun.Run().