Agile processing method and system for traffic situation indexes
By building a data model of traffic situation indicators and a continuous integration cycle, and applying Git and continuous delivery technology, the efficiency problems in the development and processing of traffic situation indicators are solved, and the rapid and efficient processing and deployment of traffic situation indicators is achieved, and the fineness of urban traffic situations is supported. Management in a comprehensive way.
Patent Information
- Application Number
- CN202411067999.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
How to apply continuous integration and continuous delivery technology to the development and processing process of traffic situation indicators to achieve rapid and efficient processing and delivery of urban traffic situation indicators.
By building a traffic situation indicator data model, establishing a mapping relationship between the data source and the data model, using Git to create projects and branches, realizing continuous integration and version release cycles, including full and incremental continuous integration, and gradually deploying to quasi-production and production environments, Ensure automated development and testing of code.
The time period from business demand to implementation and deployment of traffic situation indicators has been shortened, development efficiency and testing efficiency have been improved, and efficient perception and refined management of urban traffic situations have been supported.
Smart Images

Figure CN119127151A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of software development, in particular to a method and system for agile processing of traffic situation indicators. Background Art
[0002] Urban traffic situation awareness is the basis for refined urban traffic management and smart transportation. In order to achieve accurate perception of urban traffic situation, a multi-level traffic situation indicator system has been formed at intersections, road sections, and road networks, including congestion, police force, law enforcement, parking, etc., and has been enriched and improved. How to process traffic situation indicators quickly and efficiently and quickly deliver them to urban traffic management users is the key to the effectiveness of these indicators.
[0003] Agile development is a popular development model and technology in the field of software development. It efficiently connects different roles such as software requirements, development, testing, deployment, and operation through technologies such as continuous integration (CI) and continuous delivery (CD), greatly shortening the time cycle from the proposal to the realization of business needs. Applying continuous integration and continuous delivery technologies to the development and processing of traffic situation indicators will form an agile processing system that integrates the characteristics of traffic situation awareness, realize dynamic, rapid, and intelligent development of traffic situation indicators, and provide strong support for the refined management and control of urban traffic.
[0004] How to apply continuous integration and continuous delivery technologies to the development and processing of traffic situation indicators to achieve effective processing of urban traffic situation indicators is a technical problem that needs to be solved. Summary of the invention
[0005] The technical task of the present invention is to address the above shortcomings and provide an agile processing method and system for traffic situation indicators to solve the technical problem of how to apply continuous integration and continuous delivery technology to the development and processing process of traffic situation indicators and realize effective urban traffic situation indicator processing.
[0006] In a first aspect, the present invention provides an agile processing method for urban traffic situation indicators, comprising the following steps:
[0007] Traffic situation indicator definition: Build a traffic situation indicator data model, establish a mapping relationship between the data source and the traffic situation indicator data model, and create projects and project branches corresponding to the traffic situation indicators on Git;
[0008] Traffic situation indicator processing code automatic development cycle: Generate indicator processing script program, test data and test code, synchronize indicator processing script program, test data and test code to the development environment for testing and repair, and upload indicator processing script program, test data and test code to the Git development branch;
[0009] Continuous integration cycle: including full continuous integration and incremental continuous integration;
[0010] Version release cycle: transfer Git development branch indicator processing scripts and test programs to Git release branches, and package them based on the release branches;
[0011] Quasi-production environment deployment cycle: Obtain desensitized test data from the production environment and push it to the quasi-production environment, upload the indicator processing script program and test program packaged from the Git release branch to the quasi-production environment and test them;
[0012] Production environment deployment cycle: package the indicator processing script program from the Git release branch and upload it to the production environment. According to the production environment operation requirements, test run the indicator processing script program. After the test run passes, transfer the Git release branch code to the main branch.
[0013] Preferably, the traffic situation index definition includes the following steps:
[0014] According to the needs of urban traffic management, define traffic situation indicators at different levels and in different business areas, sort out the business logic of indicator processing, and design the traffic situation indicator data model based on the business logic;
[0015] Construct the mapping relationship between the data source and the traffic situation indicator data model to form a data mapping document, and sort out and define the processing logic;
[0016] Create a project and project branch corresponding to the traffic situation indicator on Git, and upload the indicator definition, traffic situation indicator data model, and data mapping document to the Git development branch.
[0017] Preferably, the traffic situation indicator processing code automatic development cycle includes the following steps:
[0018] Automatic generation of indicator processing code: using the traffic situation indicator data model and data mapping as input, a processing script program for the traffic situation indicator from the data source to the traffic situation indicator data model is generated as an indicator processing script program;
[0019] Generate test data: automatically generate test data according to the definition of data source data format;
[0020] Generate test code: Manually select the test type of different fields in the traffic situation indicator data model, and then automatically generate test code;
[0021] Each developer synchronizes the indicator processing script program, test data, and test program developed by him to the development environment for testing and fixes any existing problems;
[0022] Upload the indicator processing script, test data, and test code to the Git development branch.
[0023] As a preferred method, full continuous integration includes the following steps: pull all the code, test data, and test programs of all developers from the Git development branch for packaging, synchronize them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch;
[0024] Incremental continuous integration includes the following steps: pull incremental code, test data, and test programs from the Git development branch for packaging, update them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
[0025] 5. In a second aspect, the present invention provides a traffic situation indicator agile processing system, which is used to realize traffic situation indicator agile processing through a traffic situation indicator agile processing method as described in any one of the first aspects, and the system includes a traffic situation indicator definition module, a traffic situation indicator processing code automatic development cycle module, a continuous integration cycle module, a version release cycle module, a quasi-production environment deployment cycle module, and a production environment deployment cycle module;
[0026] The traffic situation indicator definition module is used to perform the following: construct a traffic situation indicator data model, establish a mapping relationship between the data source and the traffic situation indicator data model, and create a project and project branch corresponding to the traffic situation indicator on Git;
[0027] The traffic situation indicator processing code automatic development cycle module is used to perform the following: generate indicator processing script programs, test data and test codes, synchronize the indicator processing script programs, test data and test codes to the development environment for testing and repair, and upload the indicator processing script programs, test data and test codes to the Git development branch;
[0028] The continuous integration cycle module is used to perform the following: including full continuous integration and incremental continuous integration;
[0029] The version release cycle module is used to perform the following: transfer the Git development branch indicator processing script program and test program to the Git release branch, and package based on the release branch;
[0030] The quasi-production environment deployment cycle module is used to perform the following: obtain the desensitized test data from the production environment and push it to the quasi-production environment, upload the indicator processing script program and test program packaged from the Git release branch to the quasi-production environment and test it;
[0031] The production environment deployment cycle module is used to perform the following: package the indicator processing script program from the Git release branch and upload it to the production environment, test run the indicator processing script program according to the production environment operation requirements, and after the test run passes, transfer the Git release branch code to the main branch.
[0032] Preferably, the traffic situation index definition module is used to perform the following operations:
[0033] According to the needs of urban traffic management, define traffic situation indicators at different levels and in different business areas, sort out the business logic of indicator processing, and design the traffic situation indicator data model based on the business logic;
[0034] Construct the mapping relationship between the data source and the traffic situation indicator data model to form a data mapping document, and sort out and define the processing logic;
[0035] Create a project and project branch corresponding to the traffic situation indicator on Git, and upload the indicator definition, traffic situation indicator data model, and data mapping document to the Git development branch.
[0036] Preferably, the traffic situation indicator processing code automatic development loop module is used to perform the following:
[0037] Automatic generation of indicator processing code: using the traffic situation indicator data model and data mapping as input, a processing script program for the traffic situation indicator from the data source to the traffic situation indicator data model is generated as an indicator processing script program;
[0038] Generate test data: automatically generate test data according to the definition of data source data format;
[0039] Generate test code: Manually select the test type of different fields in the traffic situation indicator data model, and then automatically generate test code;
[0040] Each developer synchronizes the indicator processing script program, test data, and test program developed by him to the development environment for testing and fixes any existing problems;
[0041] Upload the indicator processing script, test data, and test code to the Git development branch.
[0042] As a preferred method, full continuous integration includes the following steps: pull all the code, test data, and test programs of all developers from the Git development branch for packaging, synchronize them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch;
[0043] Incremental continuous integration includes the following steps: pull incremental code, test data, and test programs from the Git development branch for packaging, update them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
[0044] The traffic situation index agile processing method and system of the present invention have the following advantages:
[0045] (1) Agile development technologies such as continuous integration and continuous delivery are integrated into the traffic situation indicator processing process, forming an agile processing system for traffic situation indicators that includes six major processes and covers the entire process from demand to development, testing, and deployment, thus achieving the rapid realization of traffic situation indicators;
[0046] (2) With the definition of the traffic situation index data model and the mapping relationship between the data source and the data model as input, the automated development of the traffic situation index processing program is realized, which greatly improves the development efficiency of the traffic situation index processing program;
[0047] (3) Built-in null value check, association check, duplicate data check, data format check, data timeliness check and other types of traffic situation indicator testing methods realize the automatic generation of test data and test programs, greatly improving the testing efficiency of traffic situation indicator processing programs. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0049] The present invention is further described below in conjunction with the accompanying drawings.
[0050] Figure 1 This is a flowchart of an agile processing method for urban traffic situation indicators in Example 1. DETAILED DESCRIPTION
[0051] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.
[0052] The embodiments of the present invention provide an agile processing method and system for urban traffic situation indicators, which are used to solve the technical problem of how to apply continuous integration and continuous delivery technologies to the development and processing process of traffic situation indicators to achieve effective urban traffic situation indicator processing.
[0053] Embodiment 1:
[0054] The invention discloses an agile processing method for urban traffic situation indicators, which comprises six steps: traffic situation indicator definition, traffic situation indicator processing code automatic development cycle, continuous integration cycle, version release cycle, quasi-production environment deployment cycle and production environment deployment cycle.
[0055] Step S100 Traffic situation indicator definition: construct a traffic situation indicator data model, establish a mapping relationship between the data source and the traffic situation indicator data model, and create a project and project branch corresponding to the traffic situation indicator on Git.
[0056] In step S100 of this embodiment, the traffic situation index definition includes the following steps:
[0057] (1) Based on the needs of urban traffic management, define traffic situation indicators at different levels and in different business areas, sort out the business logic of indicator processing, and design the traffic situation indicator data model based on the business logic;
[0058] (2) Construct a mapping relationship between the data source and the traffic situation indicator data model to form a data mapping document, and sort out and define the processing logic;
[0059] (3) Create a project and project branch corresponding to the traffic situation indicator on Git, and upload the indicator definition, traffic situation indicator data model, and data mapping document to the Git development branch.
[0060] Step (1) defines traffic situation indicators at different levels such as intersections, road sections, and road networks, as well as traffic congestion situation, police force situation, illegal situation, parking situation, etc., completes the sorting of indicator processing business logic, and completes the design of the traffic situation indicator data model based on the business logic.
[0061] Step S200 Traffic situation indicator processing code automatic development cycle: generate indicator processing script program, test data and test code, synchronize the indicator processing script program, test data and test code to the development environment for testing and repair, and upload the indicator processing script program, test data and test code to the Git development branch.
[0062] As a specific implementation of step S200, the traffic situation indicator processing code automatic development cycle includes the following steps:
[0063] (1) Automatic generation of indicator processing code: Taking the traffic situation indicator data model and data mapping as input, a processing script program for the traffic situation indicator from the data source to the traffic situation indicator data model is generated as the indicator processing script program;
[0064] (2) Generate test data: automatically generate test data according to the definition of the data format of the data source;
[0065] (3) Generate test code: Manually select the test type of different fields in the traffic situation indicator data model, and then automatically generate test code;
[0066] (4) Each developer synchronizes the indicator processing script program, test data, and test program developed by him / her to the development environment for testing and fixes any existing problems;
[0067] (5) Upload the indicator processing script, test data, and test code to the Git development branch.
[0068] Step S300: Continuous integration cycle: including full continuous integration and incremental continuous integration.
[0069] In this embodiment, full continuous integration includes the following steps: pull all the code, test data, and test programs of all developers from the Git development branch for packaging, synchronize them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
[0070] Incremental continuous integration includes the following steps: pull incremental code, test data, and test programs from the Git development branch for packaging, update them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
[0071] Step S400: Version release cycle: transfer the Git development branch indicator processing script program and test program to the Git release branch, and package them based on the release branch.
[0072] Step S500: Quasi-production environment deployment cycle: obtain the desensitized test data from the production environment and push it to the quasi-production environment, upload the indicator processing script program and test program packaged from the Git release branch to the quasi-production environment and test them.
[0073] Step S600: Environment deployment cycle: package the indicator processing script program from the Git release branch and upload it to the production environment. According to the production environment operation requirements, test run the indicator processing script program. After the test run passes, transfer the Git release branch code to the main branch.
[0074] The method of this embodiment greatly shortens the time period from the proposal of business needs to the development, implementation and deployment of traffic situation indicators, strongly supports the efficient perception of urban traffic situation, and provides a basis for refined and intelligent management of urban traffic.
[0075] Embodiment 2:
[0076] The invention discloses an agile processing system for traffic situation indicators, comprising a traffic situation indicator definition module, a traffic situation indicator processing code automatic development cycle module, a continuous integration cycle module, a version release cycle module, a quasi-production environment deployment cycle module and a production environment deployment cycle module.
[0077] The traffic situation indicator definition module is used to perform the following: construct a traffic situation indicator data model, establish a mapping relationship between the data source and the traffic situation indicator data model, and create projects and project branches corresponding to the traffic situation indicators on Git.
[0078] The traffic situation indicator processing code automatic development cycle module is used to perform the following: generate indicator processing script programs, test data and test codes, synchronize the indicator processing script programs, test data and test codes to the development environment for testing and repair, and upload the indicator processing script programs, test data and test codes to the Git development branch.
[0079] The traffic situation index definition module of this embodiment is used to perform the following:
[0080] (1) Based on the needs of urban traffic management, define traffic situation indicators at different levels and in different business areas, sort out the business logic of indicator processing, and design the traffic situation indicator data model based on the business logic;
[0081] (2) Construct a mapping relationship between the data source and the traffic situation indicator data model to form a data mapping document, and sort out and define the processing logic;
[0082] (3) Create a project and project branch corresponding to the traffic situation indicator on Git, and upload the indicator definition, traffic situation indicator data model, and data mapping document to the Git development branch.
[0083] Step (1) defines traffic situation indicators at different levels such as intersections, road sections, and road networks, as well as traffic congestion situation, police force situation, illegal situation, parking situation, etc., completes the sorting of indicator processing business logic, and completes the design of the traffic situation indicator data model based on the business logic.
[0084] The continuous integration cycle module is used to perform the following: including full continuous integration and incremental continuous integration.
[0085] As a specific implementation of the continuous integration loop module, this module is used to execute the following automatic development cycle of traffic situation indicator processing code:
[0086] (1) Automatic generation of indicator processing code: Taking the traffic situation indicator data model and data mapping as input, a processing script program for the traffic situation indicator from the data source to the traffic situation indicator data model is generated as the indicator processing script program;
[0087] (2) Generate test data: automatically generate test data according to the definition of the data format of the data source;
[0088] (3) Generate test code: Manually select the test type of different fields in the traffic situation indicator data model, and then automatically generate test code;
[0089] (4) Each developer synchronizes the indicator processing script program, test data, and test program developed by him / her to the development environment for testing and fixes any existing problems;
[0090] (5) Upload the indicator processing script, test data, and test code to the Git development branch.
[0091] The version release cycle module is used to perform the following: transfer the Git development branch indicator processing script program and test program to the Git release branch, and package them based on the release branch.
[0092] In this embodiment, full continuous integration includes the following steps: pull all the code, test data, and test programs of all developers from the Git development branch for packaging, synchronize them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
[0093] Incremental continuous integration includes the following steps: pull incremental code, test data, and test programs from the Git development branch for packaging, update them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
[0094] The quasi-production environment deployment cycle module is used to perform the following: obtain the desensitized test data from the production environment and push it to the quasi-production environment, upload the indicator processing script program and test program packaged from the Git release branch to the quasi-production environment and test it;
[0095] The production environment deployment cycle module is used to perform the following: package the indicator processing script program from the Git release branch and upload it to the production environment, test run the indicator processing script program according to the production environment operation requirements, and after the test run passes, transfer the Git release branch code to the main branch.
[0096] The system of this embodiment can execute the method disclosed in Example 1 to realize traffic situation index processing.
[0097] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. An agile processing method for urban traffic situation indicators, characterized in that: The steps include: Traffic situation indicator definition: Build a traffic situation indicator data model, establish a mapping relationship between the data source and the traffic situation indicator data model, and create projects and project branches corresponding to the traffic situation indicators on Git; Traffic situation indicator processing code automatic development cycle: Generate indicator processing script program, test data and test code, synchronize indicator processing script program, test data and test code to the development environment for testing and repair, and upload indicator processing script program, test data and test code to the Git development branch; Continuous integration cycle: including full continuous integration and incremental continuous integration; Version release cycle: transfer Git development branch indicator processing scripts and test programs to Git release branches, and package them based on the release branches; Quasi-production environment deployment cycle: Obtain desensitized test data from the production environment and push it to the quasi-production environment, upload the indicator processing script program and test program packaged from the Git release branch to the quasi-production environment and test them; Production environment deployment cycle: package the indicator processing script program from the Git release branch and upload it to the production environment. According to the production environment operation requirements, test run the indicator processing script program. After the test run passes, transfer the Git release branch code to the main branch.
2. The method for agile processing of urban traffic situation indicators according to claim 1 is characterized in that: The definition of traffic situation indicators includes the following steps: According to the needs of urban traffic management, define traffic situation indicators at different levels and in different business areas, sort out the business logic of indicator processing, and design the traffic situation indicator data model based on the business logic; Construct the mapping relationship between the data source and the traffic situation indicator data model to form a data mapping document, and sort out and define the processing logic; Create a project and project branch corresponding to the traffic situation indicator on Git, and upload the indicator definition, traffic situation indicator data model, and data mapping document to the Git development branch.
3. The method for agile processing of urban traffic situation indicators according to claim 1 is characterized in that: The automatic development cycle of the traffic situation indicator processing code includes the following steps: Automatic generation of indicator processing code: using the traffic situation indicator data model and data mapping as input, a processing script program for the traffic situation indicator from the data source to the traffic situation indicator data model is generated as an indicator processing script program; Generate test data: automatically generate test data according to the definition of data source data format; Generate test code: Manually select the test type of different fields in the traffic situation indicator data model, and then automatically generate test code; Each developer synchronizes the indicator processing script program, test data, and test program developed by him to the development environment for testing and fixes any existing problems; Upload the indicator processing script, test data, and test code to the Git development branch.
4. The method for agile processing of urban traffic situation indicators according to claim 1 is characterized in that: Full continuous integration includes the following steps: pull all the code, test data, and test programs of all developers from the Git development branch for packaging, synchronize to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch; Incremental continuous integration includes the following steps: pull incremental code, test data, and test programs from the Git development branch for packaging, update them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
5. A traffic situation index agile processing system, characterized in that: Used to realize agile processing of traffic situation indicators by a traffic situation indicator agile processing method as described in any one of claims 1 to 4, the system includes a traffic situation indicator definition module, a traffic situation indicator processing code automatic development cycle, a continuous integration cycle module, a version release cycle module, a quasi-production environment deployment cycle module and a production environment deployment cycle module; The traffic situation indicator definition module is used to perform the following: construct a traffic situation indicator data model, establish a mapping relationship between the data source and the traffic situation indicator data model, and create a project and project branch corresponding to the traffic situation indicator on Git; The traffic situation indicator processing code automatic development cycle module is used to perform the following: generate indicator processing script programs, test data and test codes, synchronize the indicator processing script programs, test data and test codes to the development environment for testing and repair, and upload the indicator processing script programs, test data and test codes to the Git development branch; The continuous integration cycle module is used to perform the following: including full continuous integration and incremental continuous integration; The version release cycle module is used to perform the following: transfer the Git development branch indicator processing script program and test program to the Git release branch, and package based on the release branch; The quasi-production environment deployment cycle module is used to perform the following: obtain the desensitized test data from the production environment and push it to the quasi-production environment, upload the indicator processing script program and test program packaged from the Git release branch to the quasi-production environment and test it; The production environment deployment cycle module is used to perform the following: package the indicator processing script program from the Git release branch and upload it to the production environment, test run the indicator processing script program according to the production environment operation requirements, and after the test run passes, transfer the Git release branch code to the main branch.
6. The traffic situation index agile processing system according to claim 5 is characterized in that: The traffic situation indicator definition module is used to perform the following operations: According to the needs of urban traffic management, define traffic situation indicators at different levels and in different business areas, sort out the business logic of indicator processing, and design the traffic situation indicator data model based on the business logic; Construct the mapping relationship between the data source and the traffic situation indicator data model to form a data mapping document, and sort out and define the processing logic; Create a project and project branch corresponding to the traffic situation indicator on Git, and upload the indicator definition, traffic situation indicator data model, and data mapping document to the Git development branch.
7. The traffic situation index agile processing system according to claim 5 is characterized in that: The traffic situation indicator processing code automatic development loop module is used to perform the following: Automatic generation of indicator processing code: using the traffic situation indicator data model and data mapping as input, a processing script program for the traffic situation indicator from the data source to the traffic situation indicator data model is generated as an indicator processing script program; Generate test data: automatically generate test data according to the definition of data source data format; Generate test code: Manually select the test type of different fields in the traffic situation indicator data model, and then automatically generate test code; Each developer synchronizes the indicator processing script program, test data, and test program developed by him to the development environment for testing and fixes any existing problems; Upload the indicator processing script, test data, and test code to the Git development branch.
8. The traffic situation index agile processing system according to claim 5 is characterized in that: Full continuous integration includes the following steps: pull all the code, test data, and test programs of all developers from the Git development branch for packaging, synchronize to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch; Incremental continuous integration includes the following steps: pull incremental code, test data, and test programs from the Git development branch for packaging, update them to the test environment for integration testing, and fix existing problems. After the integration test passes, update the latest content to the Git development branch.
Citation Information
Patent Citations
DevOps quality guarantee system and method based on three-library mode
CN111857722A
Processing method for realizing CICD process based on webhook callback
CN114741111A
Front-end application deployment method and device
CN115016808A
Index data automatic calculation method and device fusing dimension model
CN115470195A
Edge cloud collaborative deployment reconstruction method based on micro-service agile deployment
CN117632146A
