單雅輝 劉青凱 楊章 田鴻運 鄒勇剛



摘要: 隨著軟件復雜度的增加和交付需求的變化,快速集成和自動部署成為高性能數值模擬軟件推廣應用的瓶頸。為滿足軟件構建和發布的差異化需求,簡化從用戶需求到軟件發布的工作流程,基于Jenkins設計持續集成平臺,實現軟件靜態審查、編譯、測試和發布流程的自動化,全面記錄軟件構建日志和測試結果。利用Docker技術將構建環境容器化,實現環境的快速搭建和配置管理,滿足多樣化目標環境需求。該平臺的實際應用效果顯示,基于該平臺的產品發布周期相比之前縮短約75%,可極大簡化軟件安裝和部署難度。
關鍵詞: 持續集成; 軟件測試; 軟件發布; 自動部署
中圖分類號: TP311.56 ? 文獻標志碼: B
Abstract: With the software complexity increasing and the delivery requirements changing, rapid integration and automatic deployment become the bottleneck in the application of high-performance numerical simulation software. In order to meet the differentiated requirements of software construction and release, the workflow from user requirements to software distribution is simplified, and then the continuous integration platform based on Jenkins is designed to realize the automation of software static review, compilation, testing and release process, in which the software build logs and test results can be recorded comprehensively. The Docker technology is used to containerize the environment, and then the rapid construction and configuration management of the environment can be realized to meet the needs of diversified target environment. The application effect of the platform shows that the product distribution cycle based on this platform is about 75% shorter than before, which can greatly simplify the difficulty of software installation and deployment.
Key words: continuous integration; software testing; software release; automatic deployment
0 引 言
數值模擬軟件是一類特殊的計算機應用軟件,其服務于科學計算,以再現、發現和預測真實客觀系統運行規律和演化特征的數值模擬為主要目標。[1]目前,數值模擬軟件已廣泛應用于國家重大領域,包括全球氣候預測、地球資源環境檢測、核能開發利用、電磁環境和信息安全等。
隨著數值模擬軟件應用范圍不斷擴大,數值模擬軟件的研發呈現以下3個方面特征[2]:(1)應用需求日趨復雜,軟件規模不斷增加,代碼行數由過去的幾千行發展到數萬行甚至數十萬行;(2)高效能計算共性技術不斷發展,基于編程框架與離散中臺的研發模式日益普及,使得軟件架構趨于層次化和模塊化,軟件集成復雜度隨之增加;(3)軟件運……