Skip to content
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

chore(build): workaround set-env deprecation (#7010) #7011

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

sfoster1
Copy link
Member

Github recently disabled the ::set-env command in their protocol runners because it was insecure (https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/). The fix for this was to use environment file piping instead. Unfortunately, even if you're interacting with it through e.g. a node wrapper like in https://github.com/actions/core, this is what you're always doing, so core needed a bump to v1.2.6 in all its dependencies. This didn't happen in https://github.com/actions/github-script as of this writing (open pr: actions/github-script#91) and therefore our builds started breaking.

The workaround is to enable the old behavior and have a message that yells at you about it.

Github recently disabled the ::set-env command in their protocol runners because it was insecure (https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/). The fix for this was to use environment file piping instead. Unfortunately, even if you're interacting with it through e.g. a node wrapper like in https://github.com/actions/core, this is what you're always doing, so core needed a bump to v1.2.6 in all its dependencies. This didn't happen in https://github.com/actions/github-script as of this writing (open pr: actions/github-script#91) and therefore our builds started breaking.

The workaround is to enable the old behavior and have a message that yells at you about it.
@sfoster1 sfoster1 added the chore label Nov 16, 2020
@sfoster1 sfoster1 requested a review from a team November 16, 2020 22:40
@codecov
Copy link

codecov bot commented Nov 16, 2020

Codecov Report

❗ No coverage uploaded for pull request base (edge@ee8abac). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge    #7011   +/-   ##
=======================================
  Coverage        ?   79.16%           
=======================================
  Files           ?      167           
  Lines           ?    17092           
  Branches        ?        0           
=======================================
  Hits            ?    13531           
  Misses          ?     3561           
  Partials        ?        0           
Impacted Files Coverage Δ
opentrons/system/wifi.py 93.61% <0.00%> (ø)
opentrons/hardware_control/execution_manager.py 93.75% <0.00%> (ø)
opentrons/legacy_api/instruments/pipette.py 94.75% <0.00%> (ø)
opentrons/data_storage/database.py 85.71% <0.00%> (ø)
opentrons/api/routers.py 100.00% <0.00%> (ø)
opentrons/drivers/connection.py 44.23% <0.00%> (ø)
...pentrons/protocol_api/paired_instrument_context.py 82.79% <0.00%> (ø)
opentrons/protocol_api/contexts.py 100.00% <0.00%> (ø)
opentrons/hardware_control/__main__.py 0.00% <0.00%> (ø)
opentrons/protocol_engine/execution/movement.py 100.00% <0.00%> (ø)
... and 157 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee8abac...b7c1b6b. Read the comment docs.

Copy link
Contributor

@mcous mcous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sfoster1 sfoster1 merged commit 84f126d into edge Nov 16, 2020
@sfoster1 sfoster1 deleted the chore_setenv-fix-backpot branch November 16, 2020 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants