CN114416106A - Method, system, electronic device and storage medium for updating compiling count value - Google Patents

Method, system, electronic device and storage medium for updating compiling count value Download PDF

Info

Publication number
CN114416106A
CN114416106A CN202210328196.1A CN202210328196A CN114416106A CN 114416106 A CN114416106 A CN 114416106A CN 202210328196 A CN202210328196 A CN 202210328196A CN 114416106 A CN114416106 A CN 114416106A
Authority
CN
China
Prior art keywords
count value
client
server
compiling
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210328196.1A
Other languages
Chinese (zh)
Other versions
CN114416106B (en
Inventor
江浩
王震
程欣欣
王大元
刘鑫
邹永强
杨晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202210328196.1A priority Critical patent/CN114416106B/en
Publication of CN114416106A publication Critical patent/CN114416106A/en
Application granted granted Critical
Publication of CN114416106B publication Critical patent/CN114416106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Security & Cryptography (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a system, an electronic device and a storage medium for updating a compiling count value, wherein the method comprises the following steps: after the client starts to execute the compilation, sending a compilation count value updating request to the server; and if the client receives the target count value sent by the server, updating the compiling count value stored by the client by adopting the target count value. After receiving a compiling count value updating request sent by a client, a server verifies the compiling count value updating request according to a preset wind control rule; if the verified verification result is that the compiling count value updating request is safe, the server side obtains a first count value corresponding to the client side from a database, adds the first count value and a preset adding value to obtain a target count value, sends the target count value to the client side, and updates the first count value by adopting the target count value. The invention avoids the mutual interference of clients of different development branches due to the conflict of the compiling count values, and improves the development efficiency.

Description

Method, system, electronic device and storage medium for updating compiling count value
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a system, electronic equipment and a storage medium for updating a compiling count value.
Background
Currently, software development adopts a development branch mode, namely: a project is divided into a plurality of development branches, and each development branch is developed according to different requirements.
In the development branch model, developers, development sites, compilation types, branch versions, and the like of the respective development branches differ. When any branch compiles the software under development of the branch, the compiling count value interferes with the compiling count values of other branches, so that the development efficiency is low.
Disclosure of Invention
Embodiments of the present invention provide a method, a system, an electronic device, and a storage medium for updating a compile count value, so as to solve a problem that when any branch compiles software under development of the branch, the compile count value interferes with compile count values of other branches, so that development efficiency is low.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for updating a compile count value, which is applied to a client, and includes:
after the client starts to execute the compilation, sending a compilation count value updating request to a server;
and if the client receives a target count value sent by the server, updating the compiling count value stored by the client by adopting the target count value.
Alternatively,
and the client side sends the compiling count value updating request to the server side in a continuous integration/continuous deployment CI/CD mode.
In a second aspect, an embodiment of the present invention provides a method for updating a compile count value, which is applied to a server, and includes:
after receiving a compiling count value updating request sent by a client, the server verifies the compiling count value updating request according to a preset wind control rule;
if the verification result of the verification is that the compiling count value updating request is safe, the server side obtains a first count value corresponding to the client side from a database, adds the first count value and a preset adding value to obtain a target count value, sends the target count value to the client side, and updates the first count value by adopting the target count value.
Alternatively,
verifying the compiling count value updating request according to a preset wind control rule, wherein the verifying comprises the following steps:
the server side extracts information to be checked from the compiling count value updating request; wherein the information to be verified comprises at least one of the following: an internet protocol, IP, address associated with the client, and/or a message authentication, MAC, code associated with the client;
the server side carries out first verification on the information to be verified, wherein the first verification is used for confirming whether the associated equipment associated with the compiling count value updating request is sent belongs to equipment in a preset trusted equipment library or not through the IP address and/or the MAC code;
and if the verification result of the first verification is that the associated equipment belongs to equipment in a preset trusted equipment library, the verification result of the verification is that the compiling count value updating request is safe.
Alternatively,
the information to be verified further includes: the time of sending the request;
if the verification result of the first verification is that the associated device belongs to a device in a preset trusted device library, the method further includes:
the server side carries out second verification on the information to be verified, and the second verification is used for determining whether the request quantity sent to the server side by the associated equipment in a preset time exceeds a preset request quantity threshold value or not through the request sending time and the IP address and/or the MAC code;
and if the verification result of the second verification indicates that the request quantity sent to the server by the associated equipment in the preset time does not exceed a preset request quantity threshold value, the verified verification result indicates that the compiling count value updating request is safe.
Alternatively,
the client sends the compiling count value updating request to a server in a CI/CD mode, and the associated equipment at least comprises: the client and the CI/CD equipment.
Alternatively,
the server side obtains a first count value corresponding to the client side from a database, and the method comprises the following steps:
querying the database for a first counter;
if the query result of the query is that the database has the first counter, acquiring the first count value from the first counter;
if the query result of the query is that the database does not have the first counter, and the server receives a counter creating instruction input by a user through a client, the server creates the first counter in the database, and acquires the first count value from the first counter.
In a third aspect, embodiments of the present invention provide a system for updating a compile count value,
the system comprises a client and a server;
the client is used for sending a compiling count value updating request to the server after the client starts to execute the compiling; if the client receives a target count value sent by the server, updating a compiling count value stored by the client by adopting the target count value;
the server is used for verifying the compiling count value updating request according to a preset wind control rule after the server receives the compiling count value updating request sent by the client; if the verification result of the verification is that the compiling count value updating request is safe, the server side obtains a first count value corresponding to the client side from a database, adds the first count value and a preset adding value to obtain a target count value, sends the target count value to the client side, and updates the first count value by adopting the target count value.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps in the method for updating a compile count value according to any one of the first aspect and the second aspect.
In a fifth aspect, the embodiments of the present invention provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps in the method for updating a compile count value according to any one of the first aspect or the second aspect.
In the embodiment of the invention, the server acquires the first count value corresponding to the client from the database, adds the first count value with a preset addition value to obtain a target count value, sends the target count value to the client to update the compiling count value stored by the client, and updates the first count value by adopting the target count value.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for updating compiled counter values according to an embodiment of the present invention;
FIG. 2 is a second flowchart illustrating a method for updating compiled counter values according to an embodiment of the present invention;
FIG. 3 is a third flowchart illustrating a method for updating compiled counter values according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating a method for updating a compile count value according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart illustrating a method for updating compiled counter values according to an embodiment of the present invention;
FIG. 6 is a block diagram of a method for updating compiled counter values according to an embodiment of the present invention;
FIG. 7 is a timing diagram illustrating a method for updating compiled counter values according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a process of obtaining a first count value in a method for updating a compiled count value according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an internal structure of a system for updating compiled counter values according to an embodiment of the present invention;
fig. 10 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for updating a compile count value, which is applied to a client, and as shown in fig. 1, fig. 1 is a schematic flow diagram of the method for updating a compile count value according to the embodiment of the present invention, where the method includes:
step 11: after the client starts to execute the compilation, sending a compilation count value updating request to the server;
step 12: and if the client receives the target count value sent by the server, updating the compiling count value stored by the client by adopting the target count value.
In some embodiments of the present invention, optionally, the client sends the compile count value update request to the server in a persistent integration/persistent deployment CI/CD manner.
CI (Continuous Integration), through which developers can frequently integrate code into the main branch of a common code repository. Developers can submit works to the repository multiple times at any time, rather than developing each functional module independently and submitting one at a time at the end of the development cycle.
CD (Continuous Deployment), software delivery flow is further automated for easy Deployment into the production environment at any time. CDs focus on the deployment pipeline through which teams automate the testing and deployment process. The pipeline is an automated system that can execute a progressive set of test suites for a build. CDs are highly automated and are also easily configured in some cloud computing environments. At each stage of the pipeline, a team is alerted if a build fails critical tests. Otherwise, the next test is continued, and the next stage is automatically entered after the test is continuously passed. The last part of the pipeline will deploy the build into an environment equivalent to the production environment. This is an integrated process because the build, deployment and environment are all executed and tested together, which enables the build to be deployable and verifiable in the actual production environment.
The CI/CD is beneficial to simplifying integration in the process of sending a compiling count value updating request to a server side by a client side into a simple and easily repeated daily development task, so that the integration is automated, manual operation is reduced, the overall construction cost is reduced, and defects can be found early in the development period.
An embodiment of the present invention provides a method for updating a compiling count value, which is applied to a server, and referring to fig. 2, fig. 2 is a second schematic flow chart of the method for updating a compiling count value according to the embodiment of the present invention, and the method includes:
step 21: after receiving a compiling count value updating request sent by a client, a server verifies the compiling count value updating request according to a preset wind control rule;
step 22: if the verification result is that the compiling count value updating request is safe, the server side obtains a first count value corresponding to the client side from the database, adds the first count value and a preset adding value to obtain a target count value, sends the target count value to the client side, and updates the first count value by adopting the target count value.
In some embodiments of the invention, optionally, the preset addition value is a positive value.
In some embodiments of the present invention, optionally, the preset addition value is a value of 1.
In the embodiment of the invention, the server acquires the first count value corresponding to the client from the database, adds the first count value with the preset added value to obtain the target count value, sends the target count value to the client to update the compiling count value stored by the client, and updates the first count value by adopting the target count value.
In some embodiments of the present invention, optionally referring to fig. 3, fig. 3 is a third schematic flowchart of a method for updating a compile count value according to an embodiment of the present invention, where verifying a compile count value update request according to a preset wind control rule includes:
step 31: the server side extracts information to be checked from the compiling count value updating request; wherein, the information to be verified comprises at least one of the following items: an internet protocol, IP, address associated with the client, and/or a message authentication, MAC, code associated with the client;
step 32: the server side carries out first verification on the information to be verified, wherein the first verification is used for confirming whether the associated equipment associated with the sent compiling count value updating request belongs to equipment in a preset trusted equipment library or not through the IP address and/or the MAC code;
step 33: and if the verification result of the first verification is that the associated equipment belongs to equipment in a preset trusted equipment library, the verification result of the verification is that the compiling count value updating request is safe.
The IP Address (Internet Protocol Address) refers to an Internet Protocol Address and is translated into an Internet Protocol Address. The IP address is a uniform address format provided by the IP protocol, and it allocates a logical address to each network and each host on the internet, so as to mask the difference of physical addresses.
MAC refers to the message authentication code (Hash function with key): in cryptography, a verification mechanism used by both communicating entities is a tool to ensure the integrity of message data. The construction method is proposed by m.bellare, and the security depends on the Hash function, so the construction method is also called the Hash function with the key. The message authentication code is a value obtained based on the key and the message digest, and can be used for data origination authentication and integrity check.
The device is verified through the IP address and/or the MAC code, response to a compiling count value updating request sent by the untrusted device is avoided, and safety of network communication is guaranteed.
In some embodiments of the present invention, optionally referring to fig. 4, fig. 4 is a fourth flowchart illustrating a method for updating a compile count value according to an embodiment of the present invention,
the information to be verified further includes: the time of sending the request;
if the verification result of the first verification is that the associated device belongs to a device in a preset trusted device library, the method further comprises the following steps:
step 41: the server side carries out second verification on the information to be verified, and the second verification is used for determining whether the number of the requests sent to the server side by the associated equipment in the preset time exceeds a preset request number threshold value or not through the request sending time and the IP address and/or the MAC code;
step 42: and if the verification result of the second verification is that the request quantity sent to the server by the associated equipment in the preset time does not exceed the preset request quantity threshold, the verified verification result is that the compiling count value updating request is safe.
In some embodiments of the present invention, optionally, an interval value between two adjacent groups of the time points of sending the request is compared with a preset interval threshold, and when the interval value is smaller than the interval threshold, the frequency of sending the request by the associated device is too high.
In some embodiments of the present invention, optionally, the time when the request is sent may be obtained by obtaining the update _ at field in the request.
The setting is beneficial to avoiding that the associated equipment sends a large number of requests in a short time, and the risk of downtime caused by exceeding the processing capacity of the equipment due to excessive request number is reduced.
In some embodiments of the present invention, optionally, the client sends the compile count value update request to the server in a CI/CD manner, and the association device at least includes: a client and a CI/CD device.
In some embodiments of the present invention, optionally referring to fig. 5, fig. 5 is a fifth flowchart illustrating a method for updating a compile count value according to an embodiment of the present invention,
the server side obtains a first count value corresponding to the client side from the database, and the method comprises the following steps:
step 51: querying a database for a first counter;
step 52: if the query result of the query is that the database has a first counter, acquiring a first count value from the first counter;
step 53: if the query result is that the database does not have the first counter, and the server receives a counter creating instruction input by the user through the client, the server creates the first counter in the database, and acquires a first count value from the first counter.
In some embodiments of the present invention, optionally, referring to fig. 6, fig. 6 is a schematic diagram of a framework for applying a method for updating a compile count value according to an embodiment of the present invention, where the method includes the following tools:
(1) API management: the method mainly realizes the POST request based on the HTTP, and the request parameters comprise token and mac, wherein the token corresponds to a token field in a counter data table and is used for uniquely identifying the counter. And the mac corresponds to a mac field in the counter data table and is used for identifying the identity of the current client.
(2) Counter management: counter management includes adding, deleting, modifying and querying operations for the complete counter record in the database.
(3) Database management: the database management is mainly used for finishing the data communication management of the server and the server so as to meet the requirements of the background of the server on the operations of adding, deleting, modifying and checking the database.
(4) Script management: after a brand-new counter is created, the server platform can generate a corresponding help document, a client script and a CI/CD script so as to facilitate fast access of iOS and Android platform App projects.
(5) And (3) risk control management: risk control management is mainly to avoid two risks:
the first risk: the request of the non-trusted client or the CI/CD equipment is verified by the ip and mac parameters of the request;
the second risk: the violence request of the trusted client or the CI/CD equipment is checked through the ip and mac parameters and the update _ at parameter.
(6) Log management: the log management tracks log information of each process of the client, the CI/CD, the server and the like, and assists maintenance personnel to carry out risk maintenance on the tool.
In some embodiments of the invention, the first and second electrodes are, optionally, exemplarily,
trigger compilation by CI/CD: carrying out engineering configuration and Pipeline configuration, and carrying out different engineering and Pipeline configurations aiming at the iOS and Android platforms to realize the following work:
1) triggering a client shell script to acquire the latest compiling count from a server;
2) updating compiling counting information in the engineering configuration;
3) executing App installation package compiling and generating an App installation package;
4) and returning the generated installation package to the developer.
Directly triggering compilation through a client: and remote reading and updating logic of client compiling and counting is realized by configuring a client shell script, an iOS and an Android client version management module.
In some embodiments of the present invention, optionally referring to fig. 7, fig. 7 is a timing diagram illustrating a method for updating a compile count value according to an embodiment of the present invention, where if the verification result is that the compile count value update request is safe, that is, corresponding to the failure of the stroke control in the diagram, the server returns a count value of 0 to the client, and the client updates the compile count to 0 and continues to perform the compilation.
In some embodiments of the present invention, optionally, referring to fig. 8, fig. 8 is a schematic flowchart illustrating a process of acquiring a first count value in a method for updating a compiled count value according to an embodiment of the present invention, where:
after the server side obtains a result that the wind control passes, whether a first counter exists in a database is inquired;
and if the query result is that the database has a first counter, acquiring a first count value corresponding to the client from the first counter, adding 1 to the first count value to obtain a value to update the first count value in the database, generating a request result, and sending the request result to the client.
If the query result is that the database does not have the first counter, and the server receives a counter creating instruction input by the user through the client, the server creates the first counter in the database, obtains a first count value corresponding to the client from the first counter, obtains a first numerical value in the database by adding 1 to the first numerical value, generates a request result, and sends the request result to the client.
Referring to fig. 9, fig. 9 is a schematic diagram illustrating an internal structure of a system 90 for updating a compile count value according to an embodiment of the present invention,
comprises a client 91 and a server 92;
the client 91 is used for sending a compiling count value updating request to the server 92 after the client 91 starts to execute the compiling; if the client 91 receives the target count value sent by the server 92, updating the compiling count value stored by the client by using the target count value;
the server 92 is configured to verify the compiling count value updating request according to a preset wind control rule after the server 92 receives the compiling count value updating request sent by the client 91; if the verified verification result is that the compiled count value updating request is safe, the server 92 acquires a first count value corresponding to the client 91 from the database, adds the first count value and a preset addition value to obtain a target count value, sends the target count value to the client 91, and updates the first count value by using the target count value.
In some embodiments of the present invention, the first and second electrodes are, optionally,
the client 91 is further configured to send the compile count value update request to the server 92 in a persistent integration/persistent deployment CI/CD manner.
In some embodiments of the present invention, the first and second electrodes are, optionally,
the server 92, configured to extract information to be verified from the compile count value update request by the server 92; wherein the information to be verified comprises at least one of the following: an internet protocol, IP, address associated with said client 91, and/or a message authentication, MAC, code associated with client 91;
the server 92 is configured to perform first verification on the information to be verified by the server 92, where the first verification is used to confirm whether the associated device associated with the request for sending the compiled counter value update belongs to a device in a preset trusted device library through the IP address and/or the MAC code;
and the server 92 is configured to, if the verification result of the first verification is that the associated device belongs to a device in a preset trusted device library, and the verification result of the verification is that the compiling count value updating request is safe.
In some embodiments of the present invention, the first and second electrodes are, optionally,
the information to be verified further includes: the time of sending the request;
the server 92, configured to perform a second check on the information to be checked by the server 92, where the second check is used to determine, according to the time of sending the request and through the IP address and/or the MAC code, whether the number of requests sent by the associated device to the server 92 in a preset time exceeds a preset threshold of the number of requests;
the server 92 is configured to, if the verification result of the second verification indicates that the number of requests sent by the associated device to the server 92 in the preset time does not exceed a preset request number threshold, obtain that the verification result is that the compiling count value updating request is safe.
In some embodiments of the present invention, the first and second electrodes are, optionally,
the server 92 is used for inquiring whether the database has a first counter or not;
the server 92 is configured to obtain the first count value from the first counter if the query result of the query indicates that the database has the first counter;
the server 92 is configured to, if the query result of the query indicates that the database does not have the first counter, and the server 92 receives a counter creation instruction input by the user through the client 91, create the first counter in the database by the server 92, and obtain the first count value from the first counter.
The system 90 for updating a compile count value provided in this embodiment of the application can implement each process implemented by the method embodiments of fig. 1 to 8, and achieve the same technical effect, and is not described here again to avoid repetition.
Referring to fig. 10, fig. 10 is a schematic diagram illustrating an internal structure of an electronic device 100 according to an embodiment of the present invention, and the electronic device 100 includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction, when executed by the processor, implements steps in any method for updating a compile count value according to the present invention.
The embodiment of the present invention provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the method for updating a compiling count value according to any one of the above embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for updating a compile count value, applied to a client, includes:
after the client starts to execute the compilation, sending a compilation count value updating request to a server;
and if the client receives a target count value sent by the server, updating the compiling count value stored by the client by adopting the target count value.
2. The method according to claim 1, wherein the client sends the compile count value update request to the server in a persistent integration/persistent deployment CI/CD manner.
3. A method for updating a compile count value is applied to a server, and is characterized by comprising the following steps:
after receiving a compiling count value updating request sent by a client, the server verifies the compiling count value updating request according to a preset wind control rule;
if the verification result of the verification is that the compiling count value updating request is safe, the server side obtains a first count value corresponding to the client side from a database, adds the first count value and a preset adding value to obtain a target count value, sends the target count value to the client side, and updates the first count value by adopting the target count value.
4. The method for updating compiled counter values according to claim 3, wherein verifying the compiled counter value update request according to a preset wind control rule comprises:
the server side extracts information to be checked from the compiling count value updating request; wherein the information to be verified comprises at least one of the following: an internet protocol, IP, address associated with the client, and/or a message authentication, MAC, code associated with the client;
the server side carries out first verification on the information to be verified, wherein the first verification is used for confirming whether the associated equipment associated with the compiling count value updating request is sent belongs to equipment in a preset trusted equipment library or not through the IP address and/or the MAC code;
and if the verification result of the first verification is that the associated equipment belongs to equipment in a preset trusted equipment library, the verification result of the verification is that the compiling count value updating request is safe.
5. The method of updating a compile count value of claim 4,
the information to be verified further includes: the time of sending the request;
if the verification result of the first verification is that the associated device belongs to a device in a preset trusted device library, the method further includes:
the server side carries out second verification on the information to be verified, and the second verification is used for determining whether the request quantity sent to the server side by the associated equipment in a preset time exceeds a preset request quantity threshold value or not through the request sending time and the IP address and/or the MAC code;
and if the verification result of the second verification indicates that the request quantity sent to the server by the associated equipment in the preset time does not exceed a preset request quantity threshold value, the verified verification result indicates that the compiling count value updating request is safe.
6. The method of updating a compile count value according to any one of claims 4 or 5,
the client sends the compiling count value updating request to a server in a CI/CD mode, and the associated equipment at least comprises: the client and the CI/CD equipment.
7. The method of updating compiled counter values according to claim 3, wherein the server obtains the first counter value corresponding to the client from a database, and includes:
querying the database for a first counter;
if the query result of the query is that the database has the first counter, acquiring the first count value from the first counter;
if the query result of the query is that the database does not have the first counter, and the server receives a counter creating instruction input by a user through a client, the server creates the first counter in the database, and acquires the first count value from the first counter.
8. A system for updating compiled counter values, wherein,
the system comprises a client and a server;
the client is used for sending a compiling count value updating request to the server after the client starts to execute the compiling; if the client receives a target count value sent by the server, updating a compiling count value stored by the client by adopting the target count value;
the server is used for verifying the compiling count value updating request according to a preset wind control rule after the server receives the compiling count value updating request sent by the client; if the verification result of the verification is that the compiling count value updating request is safe, the server side obtains a first count value corresponding to the client side from a database, adds the first count value and a preset adding value to obtain a target count value, sends the target count value to the client side, and updates the first count value by adopting the target count value.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps in the method of updating compile count values as claimed in any one of claims 1 to 7.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps in the method of updating a compile count value as claimed in any one of claims 1 to 7.
CN202210328196.1A 2022-03-31 2022-03-31 Method, system, electronic device and storage medium for updating compiling count value Active CN114416106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210328196.1A CN114416106B (en) 2022-03-31 2022-03-31 Method, system, electronic device and storage medium for updating compiling count value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210328196.1A CN114416106B (en) 2022-03-31 2022-03-31 Method, system, electronic device and storage medium for updating compiling count value

Publications (2)

Publication Number Publication Date
CN114416106A true CN114416106A (en) 2022-04-29
CN114416106B CN114416106B (en) 2022-08-02

Family

ID=81263827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210328196.1A Active CN114416106B (en) 2022-03-31 2022-03-31 Method, system, electronic device and storage medium for updating compiling count value

Country Status (1)

Country Link
CN (1) CN114416106B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567185A (en) * 2011-12-31 2012-07-11 北京新媒传信科技有限公司 Monitoring method of application server
CN103973505A (en) * 2013-01-25 2014-08-06 北京思博途信息技术有限公司 Method for processing monitoring request, SDK and server
CN108121768A (en) * 2017-11-30 2018-06-05 北京元心科技有限公司 Distributed system data processing method and device
CN110764771A (en) * 2018-07-27 2020-02-07 龙芯中科技术有限公司 Dynamic compiling method and device, readable storage medium and electronic equipment
CN110912689A (en) * 2019-10-30 2020-03-24 苏州科达科技股份有限公司 Method and system for generating and verifying unique value
CN110955432A (en) * 2019-11-20 2020-04-03 中国联合网络通信集团有限公司 Continuously integrated publishing method, device and system
CN112416334A (en) * 2019-08-23 2021-02-26 腾讯科技(深圳)有限公司 Page configuration method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567185A (en) * 2011-12-31 2012-07-11 北京新媒传信科技有限公司 Monitoring method of application server
CN103973505A (en) * 2013-01-25 2014-08-06 北京思博途信息技术有限公司 Method for processing monitoring request, SDK and server
CN108121768A (en) * 2017-11-30 2018-06-05 北京元心科技有限公司 Distributed system data processing method and device
CN110764771A (en) * 2018-07-27 2020-02-07 龙芯中科技术有限公司 Dynamic compiling method and device, readable storage medium and electronic equipment
CN112416334A (en) * 2019-08-23 2021-02-26 腾讯科技(深圳)有限公司 Page configuration method, device, equipment and storage medium
CN110912689A (en) * 2019-10-30 2020-03-24 苏州科达科技股份有限公司 Method and system for generating and verifying unique value
CN110955432A (en) * 2019-11-20 2020-04-03 中国联合网络通信集团有限公司 Continuously integrated publishing method, device and system

Also Published As

Publication number Publication date
CN114416106B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN110535938B (en) Data processing method, equipment and storage medium based on intelligent contract
CN109032611B (en) Script deployment method and device, computer equipment and storage medium
US8079017B2 (en) Automated QS interface testing framework
CN108989355B (en) Vulnerability detection method and device
CN103020529A (en) Software vulnerability analytical method based on scene model
KR101972825B1 (en) Method and apparatus for automatically analyzing vulnerable point of embedded appliance by using hybrid analysis technology, and computer program for executing the method
CN110727575B (en) Information processing method, system, device and storage medium
CN112631846A (en) Fault drilling method and device, computer equipment and storage medium
CN113489603B (en) Interactive background flow generation method and system in network target range
CN112512046B (en) Safety detection method for short message verification code authentication process of Android application program
CN116155771A (en) Network anomaly test method, device, equipment, storage medium and program
Pferscher et al. Stateful black-box fuzzing of bluetooth devices using automata learning
CN111914537A (en) Data verification method, device and equipment and readable storage medium
CN113760339A (en) Vulnerability repair method and device
CN111124429A (en) Continuous delivery method and device
CN114416106B (en) Method, system, electronic device and storage medium for updating compiling count value
CN117251354A (en) Abnormality test method and device applied to blockchain system and computer equipment
García-Valls et al. Provenance verification of smart contracts: Analysing the cost of ensuring authenticity over the logic hosted in blockchain networks
CN112380541A (en) Method and device for detecting vulnerability of intelligent contract and computer equipment
CN105068796A (en) Pushing method for patch program set and pushing system for patch program set
CN112882720B (en) Compiling method and device
CN114157429B (en) Block chain-based network equipment management method and equipment
CN113067840B (en) Method for realizing cloud plug-in vulnerability response honey net architecture
CN111399903B (en) Server connection method, device and related equipment
Lesiuta et al. SLIMECRAFT: State Learning for Client-Server Regression Analysis and Fault Testing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant