question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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)

  1. Defined a secret with the variable in GitHub repository settings.
  2. Update the workflow
jobs:
  ci:
    runs-on: ubuntu-latest
    env:
      ACTIVELOOP_HUB_PASSWORD: ${{ secrets.ACTIVELOOP_HUB_PASSWORD }}
  1. Uncomment the test function def test_transform_overwrite():

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mynameisvinncommented, Apr 22, 2021

@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?

0reactions
mynameisvinncommented, May 8, 2021

Sorry @Anselmoo ! Don’t know how I missed this. This looks right so I will close the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found