- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.4k
 
chore: Add a CircleCI parameter for target publish-binary branch #32665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…ed value for branch - migrates trigger-publish-binary-pipeline.js to an inlined bash script to speed it up and simplify it - adds a pipeline parameter that can be set via CircleCI UI to determine which branch we use in the publish-binary pipeline, to reduce file churn and human error - updates the packages/electron/README.md to include the simplified steps
| - [ ] Temporarily update the circle configuration to allow `cypress` to run against the branch | ||
| - [ ] Temporarily set target `cypress-publish-binary` branch as a `branch` property on the request body in [../../scripts/binary/trigger-publish-binary-pipeline.js](../../scripts/binary/trigger-publish-binary-pipeline.js) script, so that you can test against this branch from the electron upgrade branch. This property must be set both at the root of the body object, and on the `parameters` key. If it is not set at the root, the binary pipeline will continue to use the primary branch. | ||
| - [ ] Add your branch name to the `&full-workflow-filters` anchor in [`@pipeline.yml`](../../.circleci/src/pipeline/@pipeline.yml) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be parameterized as well (separately, to reduce delta surface)
          
  cypress 
  
 | 
    ||||||||||||||||||||||||||||||||||||||||
| Project | 
          cypress
         | 
      
| Branch Review | 
          ci/parameterize-binary-branch
         | 
      
| Run status | 
          
         | 
      
| Run duration | 19m 17s | 
      
| Commit | 
          
         | 
      
| Committer | Cacie Prins | 
      
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
| 
         | 
      
        0
       | 
    
| 
         | 
      
        14
       | 
    
| 
         | 
      
        1098
       | 
    
| 
         | 
      
        4
       | 
    
| 
         | 
      
        26522
       | 
    
| View all changes introduced in this branch ↗︎ | |
Warning
Partial Report: The results for the Application Quality reports may be incomplete.
        UI Coverage
         45.61%
       | 
    |
|---|---|
| 
         | 
      
        187  
       | 
    
| 
         | 
      
        161  
       | 
    
        Accessibility
         97.98%
       | 
    |
|---|---|
| 
         | 
      
        4 critical  
        8 serious  
        2 moderate  
        2 minor
       | 
    
| 
         | 
      
        101  
       | 
    
57afea5    to
    5d50a15      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cacieprins Is it possible to have the trigger-publish-binary-pipeline workflow run on this PR to test it working?
| if [[ $? != 0 ]]; then | ||
| echo "Failed to compose the request body. Skipping pipeline trigger." | ||
| exit 1 | ||
| fi | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional details
This should reduce cognitive load regarding branches when performing Electron upgrades.
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation?type definitions?Note
Adds a CircleCI parameter to select the cypress-publish-binary branch and replaces the Node trigger script with an inline bash command, updating docs accordingly.
publish-binary-branchin.circleci/config.ymland@pipeline.yml.commands/trigger-publish-binary-pipeline.yml(bash), persistingtriggered_pipeline.json.create-and-trigger-packaging-artifactsjob, passing<< pipeline.parameters.publish-binary-branch >>.scripts/binary/trigger-publish-binary-pipeline.js.packages/electron/README.mdElectron upgrade steps to include adding branch to&full-workflow-filtersand settingpublish-binary-branchin CircleCI UI.Written by Cursor Bugbot for commit 2b684c4. This will update automatically on new commits. Configure here.