Open zarfld opened 1 day ago
see https://github.com/zarfld/AVB-Windows/issues/36
the issue get comments like
**Build Failure Details:**
- **Commit SHA**: <commit-sha>
- **Error Message**: []
- **Total Lines**: 0
- **Error Count**: 0
- **Build Logs**: <link-to-logs>
- **Timestamp**: <timestamp>
seems still like a template - no information about the errorrs occured nor a link to build logs
errors occured but no logs found to upload?
:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(789,40): error C2065: 'Filter': undeclared identifier [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(789,60): error C2065: 'SourceList': undeclared identifier [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(790,9): error C2065: 'WSASetLastError': undeclared identifier [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(794,12): error C2065: 'IP_MSFILTER': undeclared identifier [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(794,12): fatal error C1003: error count exceeds 100; stopping compilation [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] 96 Warning(s) 417 Error(s) Time Elapsed 00:00:22.22 Error: Process completed with exit code 1. 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s 0s Run actions/upload-artifact@v3 Warning: No files were found with the provided path: build.log. No artifacts will be uploaded. 2s Run python scripts/issue_creation.py
Issue created: https://github.com/zarfld/AVB-Windows/issues/36
errors but no build log found: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(790,9): error C2065: 'WSASetLastError': undeclared identifier [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(794,12): error C2065: 'IP_MSFILTER': undeclared identifier [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\ws2tcpip.h(794,12): fatal error C1003: error count exceeds 100; stopping compilation [D:\a\AVB-Windows\AVB-Windows\GUI\AVBTool.vcxproj] 96 Warning(s) 417 Error(s) Time Elapsed 00:00:22.71 Error: Process completed with exit code 1.
0s
0s
0s
0s 0s 0s 0s 0s 0s 0s 0s 0s 1s 2s
Run python scripts/issue_creation.py
Issue created: https://github.com/zarfld/AVB-Windows/issues/36
message states "error count exceeds 100; stopping compilation" but these logs are for these vcxproj are also required
Build Failure Details:
Run actions/upload-artifact@v3
With the provided path, there will be 1 file uploaded
Starting artifact upload For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging Artifact name is valid!
Container for artifact "build-logs" successfully created. Starting upload of file(s)
Total size of all the files uploaded is 15306 bytes File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded! The raw size of all the files that were specified for upload is 259948 bytes The size of all the files that were uploaded is 15306 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 0s 2s
Run python scripts/issue_creation.py
Issue created: https://github.com/zarfld/AVB-Windows/issues/36
created issue says "No Logs Available" iven if upload tasks says "upload successfully" and errors during buils occured:
Run msbuild AVB_Windows.sln /p:Configuration=Release > build.log 2>&1
Error: Process completed with exit code 1.
0s
....
....
0s
0s
0s
1s 0s 2s
Run python scripts/issue_creation.py
Feature Description: Enhanced Build Process with Automated Error Detection and Issue Creation
Objective: Improve the build process by implementing a system that checks for build errors from previous build iterations. If no logs or errors are available, the system should skip the error-checking step. When build errors occur, the system should automatically create issues in the repository to facilitate prompt resolution.
1. Overview
The proposed feature aims to enhance the existing Continuous Integration (CI) pipeline by:
2. Functional Requirements
2.1. Build Error Checking
2.2. Automated Issue Creation
build-failure
,bug
) to the issue.3. Implementation Details
3.1. Integration with CI Pipeline
3.2. Error Detection Mechanism
3.3. Conditional Execution
3.4. Issue Creation Process
4. Steps to Implement
4.1. Modify CI Workflow
4.2. Implement Conditional Logic
if
statements or CI tool-specific conditional execution to skip the error-checking step when logs are unavailable.4.3. Automate Issue Creation
octokit
library for JavaScript or PyGitHub for Python.4.4. Testing
6. Benefits
7. Considerations
8. Future Enhancements
9. Conclusion
Implementing this feature enhances the robustness of the build process by ensuring that build errors are promptly detected and addressed. Automating the creation of issues streamlines the workflow, reduces manual effort, and contributes to overall code quality and project stability.
Note: The specific implementation details may vary based on the CI tool and repository hosting service used. Adjust the scripts and configurations accordingly to fit your project's environment.