Undefined environment variable in compute/tests/test_transform.py
See original GitHub issue🐛🐛 Bug Report
⚗️ Current Behavior
The environment variable has to be first defined in GitHub actions via secrets. Otherwise, it will crash
environment-variables encrypted-secrets https://github.com/activeloopai/Hub/blob/29ec1cda491d9a8afc794484f31137fb2d8085dd/hub/compute/tests/test_transform.py#L369
⚙️ Environment
Only true for CI/CD with GitHub Actions, not for CircleCI.
🧰 Possible Solution (optional)
- Defined a secret with the variable in GitHub repository settings.
- Update the workflow
jobs:
ci:
runs-on: ubuntu-latest
env:
ACTIVELOOP_HUB_PASSWORD: ${{ secrets.ACTIVELOOP_HUB_PASSWORD }}
- Uncomment the test function
def test_transform_overwrite():
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
react evironment variables .env return undefined
I am building a react app and i need to fetch data from my api, now i want to store the api url...
Read more >Working with Environment Variables in Node.js - Twilio
Environment variables are a great way to configure parts of your Node.js application. Learn how to work with them using helpful tools such ......
Read more >Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >How to Set Environment Variables in Linux - phoenixNAP
Set an environment variable in Linux by following this short tutorial. Learn how to view and manage a list of environment variables.
Read more >Environment variable - Wikipedia
An environment variable is a dynamic-named value that can affect the way running processes will behave on a computer. They are part of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Anselmoo Fetching secrets and writing to a remote destination seem unnecessary for this test. Do you think it makes more sense to write to a local path (eg
ds.store('./tmp
) rather than a remote test account?Sorry @Anselmoo ! Don’t know how I missed this. This looks right so I will close the issue.