Quality access control adjustment method, equipment, medium and program product
By setting a preset quality access control level for the test software module before the software version is delivered, and adjusting and requesting approval when necessary, the problem of low delivery quality of software version in the existing technology is solved, and higher delivery quality control is achieved.
Patent Information
- Application Number
- CN202411928717.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the delivery quality of the software version is low and the quality control cannot be effectively carried out, resulting in poor delivery quality.
When obtaining the test instructions for the newly added software module to be tested, the quality access control level is set to a preset level, and an adjustment request is generated when it is necessary to lower the quality access control level, a request is sent to the approval equipment, and the actual level is set according to the approval information for testing.
By strictly controlling the quality access control of the software module to be tested, we ensure that the quality access control level reduction process is controlled, and avoid the problem of low delivery quality caused by arbitrary reduction of the quality access control level, thereby improving the delivery quality of the software module.
Smart Images

Figure CN119718956A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology, and in particular to a quality access control adjustment method, device, medium and program product. Background Art
[0002] Before a software version is delivered, it is necessary to check the version quality and match the inspection result with the quality access level corresponding to the software version to determine whether it meets the delivery requirements.
[0003] In the related art, for a newly added software version, the default quality access control switch is off and the access control level is the lowest level.
[0004] However, the above process will make it impossible to effectively control the quality of the newly added software versions, thereby reducing the delivery quality. Summary of the invention
[0005] The present invention provides a quality gate adjustment method, device, medium and program product to solve the technical problem of low delivery quality of software versions in related technologies.
[0006] According to one aspect of the present invention, a quality gate adjustment method is provided, which is applied to an execution device, and the method includes:
[0007] When a test instruction of a newly added software module to be tested is obtained, the level of the quality access control is set to a preset level; wherein the preset level is a level other than the lowest level;
[0008] When it is determined that the level of the quality gate needs to be lowered, an adjustment request is generated; wherein the adjustment request includes: the identifier of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted;
[0009] Sending the adjustment request to the approval device, and receiving the approval information sent by the approval device according to the adjustment request; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted;
[0010] The level of the quality gate is set to the actual level, and the software module to be tested is tested based on the actual level.
[0011] According to another aspect of the present invention, a quality gate adjustment method is provided, which is applied to an approval device, and the method includes:
[0012] Receive an adjustment request sent by an execution device; wherein the adjustment request includes: an identifier of the software module to be tested, a preset level, and a required level of the quality gate to be adjusted;
[0013] If it is determined that the current level of the quality gate is the same as the preset level, and there is no historical change information of the quality gate related to the identifier of the software module to be tested between the current time and the time when the adjustment request is sent, the required level of the quality gate to be adjusted is determined as the actual level of the quality gate to be adjusted;
[0014] Sending approval information to the execution device; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality gate to be adjusted.
[0015] According to another aspect of the present invention, a quality gate adjustment device is provided, the device is arranged in an execution device, and the device comprises:
[0016] A setting module, used to set the level of the quality access control to a preset level when a test instruction of a newly added software module to be tested is obtained; wherein the preset level is a level other than the lowest level;
[0017] A generating module, configured to generate an adjustment request when it is determined that the level of the quality gate needs to be lowered; wherein the adjustment request includes: an identifier of the software module to be tested, the preset level, and a required level of the quality gate to be adjusted;
[0018] A sending and receiving module, used to send the adjustment request to the approval device, and receive the approval information sent by the approval device according to the adjustment request; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted;
[0019] A test module is set to set the level of the quality gate to the actual level, and test the software module to be tested based on the actual level.
[0020] According to another aspect of the present invention, a quality access control adjustment device is provided, which is arranged in an approval device, and includes:
[0021] A receiving module, configured to receive an adjustment request sent by an execution device; wherein the adjustment request includes: an identifier of the software module to be tested, a preset level, and a required level of the quality gate to be adjusted;
[0022] A first determination module is used to determine the required level of the quality gate to be adjusted as the actual level of the quality gate to be adjusted if it is determined that the current level of the quality gate is the same as the preset level and there is no historical change information of the quality gate related to the identifier of the software module to be tested between the current time and the sending time of the adjustment request;
[0023] A sending module is used to send approval information to the execution device; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality gate to be adjusted.
[0024] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0025] at least one processor; and
[0026] a memory communicatively connected to the at least one processor; wherein,
[0027] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the quality gate adjustment method described in any embodiment of the present invention.
[0028] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the quality gate adjustment method described in any embodiment of the present invention when executed.
[0029] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the quality gate adjustment method according to any embodiment of the present invention is implemented.
[0030] The technical solution of the embodiment of the present invention is applied to an execution device, and the technical method includes: when a test instruction of a newly added software module to be tested is obtained, the level of the quality access control is set to a preset level, wherein the preset level is a level other than the lowest level; when it is determined that the level of the quality access control needs to be lowered, an adjustment request is generated, wherein the adjustment request includes: the identification of the software module to be tested, the preset level, and the required level of the quality access control to be adjusted; the adjustment request is sent to an approval device, and approval information sent by the approval device according to the adjustment request is received, wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted; the level of the quality access control is set to the actual level, and the software module to be tested is tested based on the actual level. It has the following technical effects: by setting the quality access control to a preset level other than the lowest level for the newly added software module to be tested, and when it is determined that the level of the quality access control needs to be lowered, an adjustment request is sent to the approval device, and finally the software module to be tested is tested according to the actual level indicated in the approval information, it can ensure that the level reduction process of the quality access control is controlled, avoid the problem of low delivery quality caused by arbitrarily lowering the level of the quality access control, thereby improving the delivery quality of the software module to be tested.
[0031] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 is a flow chart of a quality gate adjustment method provided by an embodiment of the present invention;
[0034] Figure 2 is a flow chart of another quality gate adjustment method provided by an embodiment of the present invention;
[0035] Figure 3 is a flowchart of a specific quality gate adjustment method provided by an embodiment of the present invention;
[0036] Figure 4 is a flow chart of another quality gate adjustment method provided by an embodiment of the present invention;
[0037] Figure 5 is a flowchart of another specific quality gate adjustment method provided by an embodiment of the present invention;
[0038] Figure 6 It is a structural schematic diagram of a quality access control adjustment device provided by an embodiment of the present invention;
[0039] Figure 7 It is a structural schematic diagram of another quality access control adjustment device provided by an embodiment of the present invention;
[0040] Figure 8 It is a structural schematic diagram of an electronic device for implementing the quality gate adjustment method of an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0042] It should be noted that the terms "first", "second", "demand", "actual", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "comprises" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the embodiments of the present invention comply with the relevant provisions of national laws and regulations.
[0043] Figure 1 : is a flow chart of a quality access control adjustment method provided by an embodiment of the present invention. This embodiment can be applied to the scenario where the software version is tested according to the quality access control level before delivery. The method can be executed by a quality access control adjustment device, which can be implemented in the form of hardware and / or software. The quality access control adjustment device can be configured in an electronic device, for example, in an execution device. Figure 1 As shown, the method includes the following steps 101 to 104.
[0044] Step 101: When a test instruction of a newly added software module to be tested is obtained, the level of the quality access control is set to a preset level.
[0045] Among them, the preset levels are levels other than the lowest level.
[0046] The newly added software module to be tested in this embodiment refers to a software module that has not been tested by the quality control gate before. The software module to be tested in this embodiment can be an application, or can be a service group in an application.
[0047] The service group in this embodiment refers to: in an application, according to the needs of differentiated R&D management, according to the differences in the importance of business services, business segmentation end-to-end R&D and other dimensions, a group of services and physical data objects (table groups) of the application are combined into an architectural unit. The purpose of setting up service groups is to support R&D management work such as R&D division of labor, code management, version production, production deployment and operation, so as to make R&D management work more refined. Optionally, the service groups of each application can be managed in the Enterprise Asset Management (EAM) system.
[0048] The software module to be tested in this embodiment can be a software module in the continuous delivery pipeline. The continuous delivery pipeline refers to the concept of development and operation integration (Development Operations, referred to as: DevOps) to implement the version management process and the system of automated version continuous delivery. The continuous delivery pipeline can quickly realize business value. The continuous delivery pipeline in this embodiment includes a componentized pipeline and a standardized pipeline. The software module to be tested in this embodiment can be a module in the componentized pipeline mode, or it can be a module in the standardized pipeline mode. Therefore, the quality access control adjustment method provided in this embodiment has strong versatility.
[0049] The quality gate in this embodiment refers to the software that implements the quality gate mechanism. The quality gate includes multiple configuration items. Each configuration item corresponds to a software test project. The quality gate has levels. The higher the level, the stricter the standard of the software test project. Optionally, the quality gate has 4 levels, and level 4 has the highest requirements.
[0050] Optionally, the configuration items of the quality gate in this embodiment may include: code scanning, unit testing, interface testing, smoke testing, integration testing, system testing, random testing, and exploratory testing, etc. Each configuration item corresponds to multiple levels.
[0051] The quality gate in this embodiment can be controlled and configured according to the software module dimension. In this embodiment, the configuration items of the quality gate include code scanning, unit testing, interface testing, smoke testing, and each configuration item corresponds to 4 levels.
[0052] Each configuration item of the quality access control is set with: 1. The corresponding switch. When the switch is on, the control of the configuration item takes effect; when the switch is off, the configuration item is not checked; 2. It is divided into four levels: level 1 (basic), level 2 (general), level 3 (excellent) and level 4 (benchmark). Each level has corresponding indicator requirements (as shown in the following table), that is, the minimum threshold requirements. Among them, level 4 is the highest level, with the highest requirements for version quality and the greatest control. Table 1 shows the minimum threshold requirements for each configuration item. Configuration items can be divided into configuration item categories and configuration item subcategories. A configuration item category can include at least one configuration item subcategory.
[0053] Table 1 Minimum threshold requirements for configuration items of quality access control
[0054]
[0055] The test instruction in this embodiment is an instruction sent by other devices to the execution device. The test instruction is used to instruct to test the software module to be tested according to the level of quality access control.
[0056] As the demand for rapid delivery of responsive business value continues to increase, the quality requirements for software versions are getting higher and higher. The quality access control mode in the relevant technology can no longer meet the quality requirements of the software version. A more stringent delivery access control logic is urgently needed to improve the quality of version delivery and ensure production safety. In this embodiment, in order to avoid the problem of low delivery quality of software versions in the relevant technology, in step 101, when the test instruction is obtained, the level of the quality access control is set to a preset level. The preset level in this embodiment is a level other than the lowest level. By way of example, the preset level in this embodiment can be the highest level.
[0057] Step 102: When it is determined that the quality threshold level needs to be lowered, an adjustment request is generated.
[0058] The adjustment request includes: the identification of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted.
[0059] In some scenarios, the actual requirement of the software module to be tested for the quality gate level may be lower than the preset level. For example, the preset level is the highest level, and the actual requirement of the software module to be tested for the quality gate level may be the second highest level. In this case, the quality gate level is reduced.
[0060] In this embodiment, when the execution device receives a level reduction request sent by other devices, it determines that the level of the quality access control needs to be reduced. Alternatively, the test instruction includes the required level of the quality access control of the software module to be tested. If the execution device determines that the required level is lower than the preset level, it determines that the level of the quality access control needs to be reduced.
[0061] In this embodiment, when the execution device determines that the level of the quality gate needs to be lowered, it generates an adjustment request, which includes: the identifier of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted.
[0062] It should be noted that, in this embodiment, closing a configuration item in the quality access control is also regarded as a scenario of lowering the level of the quality access control.
[0063] Step 103: Send an adjustment request to the approval device, and receive approval information sent by the approval device according to the adjustment request.
[0064] The approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted.
[0065] In step 103, the execution device sends an adjustment request to the approval device. After receiving the adjustment request, the approval device determines approval information according to the adjustment request and sends the approval information to the execution device. The execution device receives the approval information.
[0066] The approval information of this embodiment includes the identification of the software module to be tested and the actual level of the quality gate to be adjusted. The actual level of the quality gate to be adjusted in this embodiment may be the same as or different from the required level of the quality gate to be adjusted. This embodiment does not limit this.
[0067] Optionally, the adjustment request in this embodiment may also include the name of the configuration item requested to be closed in the quality access control. Correspondingly, the approval information in this embodiment may also include the name of the configuration item allowed to be closed after approval in the quality access control.
[0068] Optionally, in the scenario of lowering the minimum threshold of each configuration item, the adjustment request may also include the name of the configuration item for which the minimum threshold is requested to be lowered and the required minimum threshold after the lowering. Correspondingly, the approval information in this embodiment may also include the name of the configuration item for which the minimum threshold is allowed to be lowered after approval in the quality access control and the actual minimum threshold after the lowering.
[0069] Step 104: Set the level of the quality gate to the actual level, and test the software module to be tested based on the actual level.
[0070] After obtaining the actual level in the approval information, in step 104, the level of the quality gate is set to the actual level, and the software module to be tested is tested based on the actual level.
[0071] In one implementation, when testing a software module to be tested based on the actual level, the following steps may be included: obtaining rules corresponding to the actual level; testing the software module to be tested according to the test content included in the quality access control to obtain the actual test value of the software module to be tested; if the actual test value satisfies the rules, it is determined that the test of the software module to be tested has passed, and it is determined that the software to be tested is a delivered version; if the actual test value does not satisfy the rules, it is determined that the test of the software module to be tested has failed.
[0072] Optionally, the rule corresponding to the actual level in this embodiment may be the minimum threshold corresponding to each configuration item of the quality access control. Alternatively, the rule corresponding to the actual level in this embodiment may be the threshold range corresponding to each configuration item of the quality access control.
[0073] Testing the software module to be tested according to the test content included in the quality access control refers to testing the software module to be tested according to the test content of the configuration items included in the quality access control. For example, if the actual level of the quality access control is level 3 and each configuration item is in the open state, the software module to be tested is scanned in code to obtain the actual value of the code scan. Unit testing is performed on the software module to be tested to obtain the actual value of the unit test. Interface testing is performed on the software module to be tested to obtain the actual value of the interface test. Smoke testing is performed on the software module to be tested to obtain the actual value of the smoke test. The actual value corresponding to each configuration item is matched with the rule of the configuration item. Only when the actual value corresponding to each configuration item satisfies the rule of the configuration item, it is determined that the software module to be tested has passed the test. It indicates that the software to be tested is a delivery version. If the actual value corresponding to any configuration item does not meet the rule of the configuration item, it is determined that the software module to be tested has not passed the test. This implementation method can ensure that the delivery version is a version that meets the actual level of the quality access control, thereby further improving the delivery quality.
[0074] For example, suppose the actual level of the quality gate is level three, and only the interface test is in the open state. The interface test is performed on the software module to be tested, and the actual success rate of the interface test is 96%. The minimum threshold of the interface test success rate corresponding to level three is 95%. Because 96% is greater than 95%, it is determined that the actual test value meets the rule, and the software module to be tested has passed the quality gate and can be delivered.
[0075] The quality access control adjustment method provided in this embodiment includes: when a test instruction of a newly added software module to be tested is obtained, the level of the quality access control is set to a preset level, wherein the preset level is a level other than the lowest level; when it is determined that the level of the quality access control needs to be lowered, an adjustment request is generated, wherein the adjustment request includes: an identifier of the software module to be tested, a preset level, and a required level of the quality access control to be adjusted; the adjustment request is sent to an approval device, and approval information sent by the approval device according to the adjustment request is received, wherein the approval information includes: an identifier of the software module to be tested and an actual level of the quality access control to be adjusted; the level of the quality access control is set to the actual level, and the software module to be tested is tested based on the actual level. It has the following technical effects: by setting the quality access control to a preset level other than the lowest level for the newly added software module to be tested, and when it is determined that the level of the quality access control needs to be lowered, an adjustment request is sent to the approval device, and finally the software module to be tested is tested according to the actual level indicated in the approval information, it can ensure that the level reduction process of the quality access control is controlled, avoid the problem of low delivery quality caused by arbitrarily lowering the level of the quality access control, thereby improving the delivery quality of the software module to be tested.
[0076] Figure 2is a flow chart of another quality gate adjustment method provided by an embodiment of the present invention. The quality gate adjustment method provided by this embodiment, Figure 1 Based on the illustrated embodiment and various optional implementations, other steps included in the method are described in detail. Figure 2 As shown, the quality gate adjustment method provided in this embodiment includes the following steps 201 to 208.
[0077] Step 201: Configure the automatic bounce function and bounce time for the quality access control.
[0078] In order to avoid the situation where the actual level of the quality access control does not match the level required by subsequent software modules to be tested after the newly added software modules to be tested, thereby affecting the delivery quality of subsequent software modules to be tested, in this embodiment, an automatic rebound function and rebound time can be configured for the quality access control.
[0079] Step 202: When a test instruction of a newly added software module to be tested is obtained, the level of the quality access control is set to a preset level.
[0080] Among them, the preset levels are levels other than the lowest level.
[0081] Step 203: When it is determined that the quality threshold level needs to be lowered, an adjustment request is generated.
[0082] The adjustment request includes: the identification of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted.
[0083] Step 204: Send an adjustment request to the approval device.
[0084] Step 205: Receive approval information sent by the approval device according to the adjustment request.
[0085] The approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted.
[0086] Step 206: Set the level of the quality gate to the actual level, and test the software module to be tested based on the actual level.
[0087] The implementation process and technical principle of step 202 and step 101, step 203 and step 102, step 204 and step 205 and step 103, and step 206 and step 104 are similar, and will not be repeated here.
[0088] Step 207: When the rebound time arrives, the level of the quality gate is restored to the level before the preset level.
[0089] In this embodiment, in the scenario where the approval information sent by the approval device according to the adjustment request is received, when the bounce time arrives, the level of the quality access control is restored to the level before the preset level. For example, before step 202, the level of the quality access control is the first level, then when the bounce time arrives, the level of the quality access control is restored to the first level.
[0090] This implementation method restores the level of the quality gate to the level before the preset level after the rebound time, so as to avoid affecting the delivery quality of subsequent software modules.
[0091] Step 208: If the approval information has not been received when the bounce time arrives, a withdrawal request is sent to the approval device, and the level of the quality access control is restored to the level before the preset level.
[0092] The withdrawal request is used to indicate the withdrawal of the adjustment request.
[0093] If the approval information is not received when the bounce time arrives, it means that the adjustment request has expired, and a withdrawal request is sent to withdraw the adjustment request. Step 208 can prevent the approval device from processing the expired adjustment request, thereby avoiding the waste of approval resources and improving the utilization rate of approval resources.
[0094] In one scenario, if the automatic bounce function is not configured and the approval information is not received after a preset time, a withdrawal request is automatically sent to the approval device. Exemplarily, the preset time may be 2 weeks.
[0095] Figure 3 FIG. 1 is a flowchart of a specific quality gate adjustment method provided by an embodiment of the present invention. Figure 3 As shown, the quality gate adjustment method in this example includes the following steps.
[0096] Step 301: Modify the level of the quality gate.
[0097] Optionally, the level of the quality gate at this time may be a preset level.
[0098] Step 302: If the quality access control level is increased, the required level will take effect directly.
[0099] Step 303: If the quality access level is lowered, the quality access level approval process is triggered.
[0100] Optionally, the adjustment request may include: the identification of the software module to be tested, the preset level and the required level of the quality gate to be adjusted. The adjustment request may also include the reason for the adjustment, whether to automatically bounce and the bounce time.
[0101] This embodiment may involve online approval and offline approval.
[0102] Step 304: If it is an online approval, an adjustment request is generated and sent to the approval device.
[0103] Step 305: If it is an offline approval, the requirement level takes effect directly.
[0104] Step 305 is an emergency process. If the reviewer is aware of the situation and fails to review the application in time due to objective reasons, the reviewer can go through the offline review mode and provide the relevant information that has been reviewed and approved by the reviewer, which will take effect in time. After the reviewer takes effect, the reviewer will be notified by email.
[0105] The quality access control adjustment method provided in this embodiment not only supports online approval, but also supports offline approval. In the event that timely approval cannot be made due to objective reasons, the quality access control level can be directly adjusted after prior communication via telephone or email, etc., to facilitate timely version delivery and improve convenience.
[0106] If the approval information fed back by the approval device rejects the adjustment process, the process ends.
[0107] If the approval information fed back by the approval device indicates that the approval has passed the adjustment process, or the requirement level takes effect directly, step 306 is executed: determining whether to set an automatic rebound function.
[0108] Step 307: If the automatic rebound function is set, then according to the configuration, when the rebound time arrives, the level of the quality access control is restored to the level before the preset level.
[0109] The quality access control adjustment method provided in this embodiment, on the one hand, realizes that after the rebound time, the level of the quality access control is restored to the level before the preset level, so as to avoid affecting the delivery quality of subsequent software modules and realize strict control of the quality access control. On the other hand, if the approval information has not been received when the rebound time arrives, it means that the adjustment request has expired, and a withdrawal request is sent to withdraw the adjustment request, so as to avoid the approval device from processing the expired adjustment request, thereby avoiding the waste of approval resources and improving the utilization rate of approval resources.
[0110] Figure 4 It is a flowchart of another quality access control adjustment method provided by an embodiment of the present invention. This embodiment can be applied to the scenario where, before the software version is delivered, the adjustment request is approved based on the adjustment request of the quality access control level to obtain the approval information so that the execution device can test the software module to be tested according to the actual level in the approval information. The method can be executed by a quality access control adjustment device, and the quality access control adjustment device can be implemented in the form of hardware and / or software. The quality access control adjustment device can be configured in an electronic device, for example, in an approval device. Figure 4 As shown, the method includes the following steps 401 to 403.
[0111] Step 401: Receive an adjustment request sent by an execution device.
[0112] The adjustment request includes: the identification of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted.
[0113] The process of executing the device generating the adjustment request is shown in step 102 and will not be described in detail here.
[0114] It should be noted that if multiple adjustment requests for the same software module to be tested are received within a short period of time, the latest adjustment request received shall prevail in the subsequent processing flow. By way of example, the short period of time in this embodiment may be 5 minutes, 10 minutes, etc.
[0115] Step 402: If it is determined that the current level of the quality gate is the same as the preset level, and there is no historical change information of the quality gate related to the identification of the software module to be tested between the current time and the time when the adjustment request is sent, then the required level of the quality gate to be adjusted is determined as the actual level of the quality gate to be adjusted.
[0116] In step 402, it is determined that the current level of the quality gate is the same as the preset level, and there is no historical change information of the quality gate related to the identification of the software module to be tested between the current moment and the moment when the adjustment request is sent, indicating that the level of the quality gate has not been adjusted, so adjustment is allowed, and the required level of the quality gate to be adjusted is determined as the actual level of the quality gate to be adjusted.
[0117] Step 403: Send approval information to the execution device.
[0118] The approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted.
[0119] The steps after the execution device receives the approval information are similar to step 104 and will not be repeated here.
[0120] Optionally, the quality gate adjustment method provided in this embodiment may further include the following steps 404 to 407.
[0121] Step 404: If it is determined that the current level of the quality gate is the same as the preset level, and there is historical change information of the quality gate related to the identifier of the software module to be tested between the current moment and the time when the adjustment request is sent, then determine whether there is a level that is the same as the required level in the actual level to be adjusted in the historical change information.
[0122] Step 405: If it is determined that there is a level that is the same as the required level in the actual level to be adjusted of the historical change information, the first prompt information is displayed.
[0123] The first prompt information is used to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to the required level.
[0124] The scenario shown in step 404 and step 405 is: it is determined that the current level of the quality access control is the same as the preset level, and there is historical change information of the quality access control related to the identification of the software module to be tested between the current time and the time when the adjustment request is sent, and there is a level that is the same as the required level in the actual level to be adjusted in the historical change information, indicating that during the submission of the adjustment request, the equivalent value of the quality access control has been adjusted to the required level. The reason for this scenario may be that the approval was not timely or it was approved through the offline approval process.
[0125] In step 405, a first prompt message is displayed to remind the reviewer.
[0126] Step 406: If it is determined that the current level of the quality access control is different from the preset level, and there is a level that is the same as the required level in the actual level to be adjusted in the historical change information, then the first prompt information is displayed.
[0127] Step 406 shows a scenario where the current level of the quality access control is different from the preset level, and the actual level to be adjusted in the historical change information has the same level as the required level, indicating that during the submission of the adjustment request, the equivalent value of the quality access control has been adjusted to the required level. The cause of this scenario may be failure to approve in time, omission of approval, or approval through an offline approval process.
[0128] Step 407: Determine the actual level of the quality gate to be adjusted according to the first input information of the user based on the first prompt information, or determine not to adjust the level of the quality gate.
[0129] In this embodiment, the first input information input by the user can be used to indicate that the required level in the adjustment request is determined as the actual level of the quality gate to be adjusted. The user in this embodiment refers to an approval person.
[0130] Alternatively, the first input information input by the user may be used to indicate that the level input by the user is determined as the actual level of the quality gate to be adjusted. In this embodiment, the level input by the user may be the level of the quality gate determined by the user to match the software module to be tested.
[0131] Alternatively, the first input information input by the user may be used to indicate that the quality gate level adjustment is not to be performed.
[0132] Steps 404 to 407 can ensure that the adjustment process is an effective adjustment process, ensuring timely approval, missed approval, and untimely approval scenarios as well as quality access control.
[0133] Optionally, the quality gate adjustment method provided in this embodiment further includes the following steps 408 and 409 .
[0134] Step 408: If it is determined that the current level of the quality access control is the same as the preset level, there is historical change information of the quality access control related to the identification of the software module to be tested between the current moment and the time when the adjustment request is sent, and it is determined that there is no level that is the same as the required level in the actual level to be adjusted in the historical change information, a second prompt message is displayed.
[0135] The second prompt information is used to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to another level.
[0136] The scenario shown in step 408 is that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to another level. The cause of this scenario may be the omission of approval or the failure to approve in time.
[0137] Step 409: Determine the actual level of the quality gate to be adjusted according to the second input information of the user based on the second prompt information, or determine not to adjust the level of the quality gate.
[0138] In this embodiment, the second input information input by the user may be used to instruct to determine the required level in the adjustment request as the actual level of the quality gate to be adjusted.
[0139] Alternatively, the second input information input by the user may be used to indicate that the level input by the user is determined as the actual level to be adjusted for the quality gate.
[0140] Alternatively, the second input information input by the user may be used to indicate that the quality gate level adjustment is not to be performed.
[0141] The quality access control adjustment method provided in this embodiment can ensure that the quality access control level reduction process is controlled, avoid the problem of low delivery quality caused by arbitrarily reducing the quality access control level, and thus improve the delivery quality of the software module to be tested. At the same time, the quality access control adjustment method can ensure that the adjustment process is an effective adjustment process, and ensure the quality access control in the scenarios of timely approval, missed approval, and untimely approval.
[0142] Figure 5 FIG. 1 is a flowchart of another specific quality gate adjustment method provided by an embodiment of the present invention. It shows the approval algorithm involved in the quality gate adjustment method provided by this embodiment. Figure 5 As shown, the approval algorithm provided in this embodiment includes the following steps.
[0143] Step 501: Receive an adjustment request.
[0144] Step 502: Obtain historical change information of quality access control related to the identification of the software module to be tested.
[0145] Step 503: Determine whether the current level of the quality access control is consistent with the preset level.
[0146] Step 504: If the current level of the quality gate is consistent with the preset level, determine whether there is historical change information of the quality gate related to the identifier of the software module to be tested.
[0147] Step 505: If it does not exist, the required level of the quality gate to be adjusted is determined as the actual level of the quality gate to be adjusted.
[0148] Step 506: If the current level of the quality gate is inconsistent with the preset level, or the current level of the quality gate is consistent with the preset level and there is historical change information of the quality gate related to the identification of the software module to be tested, then determine whether there is a level that is the same as the required level in the actual level to be adjusted in the historical change information.
[0149] Step 507: If it is determined that there is a level that is the same as the required level in the actual level to be adjusted in the historical change information, a first prompt message is displayed to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to the required level, and confirm whether to adjust the level of the quality gate.
[0150] Step 508: If it is determined that there is no level that is the same as the required level in the actual level to be adjusted in the historical change information, a second prompt message is displayed to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to other levels, and confirm whether to adjust the level of the quality gate.
[0151] Step 509: If the user chooses to adjust the quality gate level, the actual level of the quality gate to be adjusted is determined according to the first input information of the user based on the first prompt information, or according to the second input information of the user based on the second prompt information.
[0152] Step 510: If the user chooses not to adjust the quality gate level, it is determined that the quality gate level adjustment is not performed, and the adjustment request is closed.
[0153] The quality access control adjustment method provided in this embodiment is strictly controlled, fully considering the scenario when the approver fails to handle it in time, and considering the scenario when the quality access control is repeatedly closed or lowered, resulting in the access control not being managed as expected, thereby improving the standardization and convenience of quality access control, ensuring the control of quality access control, and further improving the delivery quality. At the same time, it is determined that the approver has timely and completely mastered the adjustment information of the quality access control, and the practicality is high.
[0154] Figure 6 1 is a schematic diagram of the structure of a quality access control adjustment device provided by an embodiment of the present invention. The device is arranged in an execution device. Figure 6 As shown, the quality access control adjustment device provided in this embodiment includes the following modules: a setting module 61 , a generating module 62 , a sending and receiving module 63 , and a setting and testing module 64 .
[0155] The setting module 61 is used to set the level of the quality access control to a preset level when obtaining the test instruction of the newly added software module to be tested.
[0156] The preset level is a level other than the lowest level.
[0157] The generating module 62 is configured to generate an adjustment request when it is determined that the level of the quality threshold needs to be lowered.
[0158] The adjustment request includes: the identifier of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted.
[0159] The sending and receiving module 63 is used to send the adjustment request to the approval device and receive the approval information sent by the approval device according to the adjustment request.
[0160] The approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted.
[0161] A test module 64 is provided, which is used to set the level of the quality gate to the actual level, and to test the software module to be tested based on the actual level.
[0162] In one embodiment, a test module 64 is provided to be specifically used for: obtaining the rules corresponding to the actual level; testing the software module to be tested according to the test content included in the quality access control to obtain the actual test value of the software module to be tested; if the actual test value satisfies the rules, it is determined that the test of the software module to be tested has passed, and it is determined that the software to be tested is a delivery version; if the actual test value does not satisfy the rules, it is determined that the test of the software module to be tested has failed.
[0163] In one embodiment, the device further comprises: a configuration module and a restoration module. The configuration module is used to configure an automatic rebound function and a rebound time for the quality access control. The restoration module is used to restore the level of the quality access control to the level before the preset level when the rebound time arrives.
[0164] In one embodiment, the device further includes a sending restoration module, which is used to send a withdrawal request to the approval device if the approval information has not been received when the bounce time arrives, and restore the level of the quality access control to the level before the preset level. The withdrawal request is used to indicate the withdrawal of the adjustment request.
[0165] The quality gate adjustment device provided in the embodiment of the present invention can execute the quality gate adjustment method provided in any embodiment of the present invention executed by the execution device, and has the corresponding functional modules and beneficial effects of the execution method.
[0166] Figure 7 1 is a schematic diagram of the structure of another quality access control adjustment device provided by an embodiment of the present invention. The device is arranged in the approval equipment. Figure 7 As shown, the quality gate adjustment device provided in this embodiment includes the following modules: a receiving module 71 , a first determining module 72 and a sending module 73 .
[0167] The receiving module 71 is used to receive an adjustment request sent by an execution device.
[0168] The adjustment request includes: an identifier of the software module to be tested, a preset level, and a required level of the quality gate to be adjusted.
[0169] The first determination module 72 is used to determine the required level of the quality gate to be adjusted as the actual level of the quality gate to be adjusted if it is determined that the current level of the quality gate is the same as the preset level, and there is no historical change information of the quality gate related to the identifier of the software module to be tested between the current moment and the sending moment of the adjustment request.
[0170] The sending module 73 is used to send approval information to the execution device; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality gate to be adjusted.
[0171] In one embodiment, the device further includes a second determining module, a first display module and a third determining module.
[0172] The second determination module is used to determine whether there is a level that is the same as the required level in the actual level to be adjusted of the historical change information if it is determined that the current level of the quality gate is the same as the preset level, and there is historical change information of the quality gate related to the identifier of the software module to be tested between the current moment and the time when the adjustment request is sent.
[0173] The first display module is configured to display first prompt information if it is determined that there is a level that is the same as the required level in the actual level to be adjusted of the historical change information.
[0174] The first prompt information is used to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to the required level.
[0175] The first display module is further used to display a first prompt message if it is determined that the current level of the quality access control is different from the preset level, and there is a level that is the same as the required level in the actual level to be adjusted of the historical change information.
[0176] The third determination module is used to determine the actual level of the quality gate to be adjusted according to the first input information of the user based on the first prompt information, or determine not to adjust the level of the quality gate.
[0177] In one embodiment, the device further includes: a second display module and a fourth determination module.
[0178] The second display module is configured to display second prompt information if it is determined that there is no level that is the same as the required level in the actual level to be adjusted of the historical change information.
[0179] The second prompt information is used to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to another level.
[0180] The fourth determination module is used to determine the actual level of the quality gate to be adjusted according to the second input information of the user based on the second prompt information, or determine not to adjust the level of the quality gate.
[0181] The quality access control adjustment device provided in the embodiment of the present invention can execute the quality access control adjustment method provided in any embodiment of the present invention executed by the approval device, and has the corresponding functional modules and beneficial effects of the execution method.
[0182] Figure 8 1 is a schematic diagram of the structure of an electronic device that implements the quality gate adjustment method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0183] like Figure 8As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0184] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0185] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the quality gate adjustment method.
[0186] In some embodiments, the quality gate adjustment method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the quality gate adjustment method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the quality gate adjustment method in any other appropriate manner (for example, by means of firmware).
[0187] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0188] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0189] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0190] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0191] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0192] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0193] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the quality gate adjustment method provided in any embodiment of the present invention.
[0194] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0195] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0196] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A quality access control adjustment method, characterized in that: Applied to an execution device, the method includes: When a test instruction for a newly added software module to be tested is obtained, the quality access control level is set to a preset level; wherein the preset level is a level other than the lowest level; When it is determined that the level of the quality gate needs to be lowered, an adjustment request is generated; wherein the adjustment request includes: the identifier of the software module to be tested, the preset level, and the required level of the quality gate to be adjusted; Sending the adjustment request to the approval device, and receiving approval information sent by the approval device according to the adjustment request; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality access control to be adjusted; The level of the quality gate is set to the actual level, and the software module to be tested is tested based on the actual level.
2. The method according to claim 1, characterized in that The testing of the software module to be tested based on the actual level includes: Obtaining the rules corresponding to the actual level; Testing the software module to be tested according to the test content included in the quality access control to obtain an actual test value of the software module to be tested; If the actual test value satisfies the rule, it is determined that the software module to be tested has passed the test, and the software to be tested is determined to be a delivered version; If the actual test value does not satisfy the rule, it is determined that the software module to be tested has failed the test.
3. The method according to claim 1, characterized in that Before setting the quality access control level to a preset level, the method further includes: Configuring an automatic bounce function and a bounce time for the quality access control; After testing the software module to be tested based on the actual level, the method further includes: When the rebound time arrives, the level of the quality gate is restored to the level before the preset level.
4. The method according to claim 3, characterized in that After sending the adjustment request to the approval device, the method further includes: If the approval information has not been received when the bounce time arrives, a withdrawal request is sent to the approval device, and the level of the quality access control is restored to the level before the preset level; wherein the withdrawal request is used to indicate the withdrawal of the adjustment request.
5. A quality gate adjustment method, characterized in that: Applied to an approval device, the method includes: Receive an adjustment request sent by an execution device; wherein the adjustment request includes: an identifier of the software module to be tested, a preset level, and a required level of the quality gate to be adjusted; If it is determined that the current level of the quality gate is the same as the preset level, and there is no historical change information of the quality gate related to the identifier of the software module to be tested between the current time and the time when the adjustment request is sent, then the required level of the quality gate to be adjusted is determined as the actual level of the quality gate to be adjusted; Sending approval information to the execution device; wherein the approval information includes: the identification of the software module to be tested and the actual level of the quality gate to be adjusted.
6. The method according to claim 5, characterized in that The method further comprises: If it is determined that the current level of the quality gate is the same as the preset level, and there is historical change information of the quality gate related to the identifier of the software module to be tested between the current time and the time when the adjustment request is sent, determining whether there is an actual level to be adjusted in the historical change information that is the same as the required level; If it is determined that the actual level to be adjusted in the historical change information is the same as the required level, a first prompt message is displayed; wherein the first prompt message is used to indicate that during the submission of the adjustment request, the equivalent value of the quality gate has been adjusted to the required level; If it is determined that the current level of the quality access control is different from the preset level, and there is a level that is the same as the required level in the actual level to be adjusted in the historical change information, displaying a first prompt message; According to the first input information of the user based on the first prompt information, the actual level of the quality gate to be adjusted is determined, or it is determined not to adjust the level of the quality gate.
7. The method according to claim 6, characterized in that The method further comprises: If it is determined that the actual level to be adjusted in the historical change information does not have the same level as the required level, display a second prompt message; wherein the second prompt message is used to indicate that the equivalent value of the quality gate has been adjusted to another level during the submission of the adjustment request; According to the second input information of the user based on the second prompt information, the actual level of the quality gate to be adjusted is determined, or it is determined not to adjust the level of the quality gate.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the quality gate adjustment method described in any one of claims 1 to 4, or execute the quality gate adjustment method described in any one of claims 5 to 7.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which is used to enable a processor to implement the quality gate adjustment method according to any one of claims 1 to 4, or the quality gate adjustment method according to any one of claims 5 to 7 when executed.
10. A computer program product comprising a computer program, characterized in that When executed by a processor, the computer program implements the quality gate adjustment method according to any one of claims 1 to 4, or implements the quality gate adjustment method according to any one of claims 5 to 7.
