GithubHelp home page GithubHelp logo

fidalgo's Introduction

Fidalgo Unix Shell Environment

A non-offical unix environment to support Fidalgo development.

The shell

  • codifies the environment described in the team wiki and one-note.
  • allows for sharing kusto queries in a democratized format (see /kusto).
  • allows for sharing http requests templates ala PostMan (see /http).
  • provides an environment for incrementally running integration tests locally as they are run in the pipeline.
  • eliminates excessive multi-factor authentication when switching between environments.
  • provides an environment for senior developers to capture and share debug workflows with junior developers.
  • dogfoods Codespaces and DebBox.
  • is optional (see philosophy).

Codespace

Create a new codespace and enter the following in a bash terminal:

# hit CTRL+` to open a bash terminal
$ . profile.sh

Follow the onboarding flow.

Hello World!

Make a kusto query. Kusto queries are stored at /kusto.

# dump kusto query
[PUBLIC] $ fd-dri-certificate-active

# execute kusto query
[PUBLIC] $ fd-dri-certificate-active | fd-kusto-with-headers

Incrementally run a test

[PUBLIC] $ fd-login-as-network-administrator
[PUBLIC] $ # ...
  • After creating the dev-center, examine requests.
[PUBLIC] $ fd-dri-search-url ${NIX_ENV_PREFIX}-my-dev-center | fd-kusto | fd-line-fit

2022-06-08 09:17:11-AM 5017a21f91a322479d4d9f33d2ee0162 PUT  tm-centraluseuap.rp.fidalgo.azure.com /subscriptions/3de261df-f2d8-4c
  • Dump the log trace for a request. Replace the operation id with an operation id taken from the result of the previous query.
[PUBLIC] $ fd-dri-stack 5017a21f91a322479d4d9f33d2ee0162 | fd-kusto | fd-line-fit

Run the test again in dogfood

  • Run test again, but this time in dogfood.
[PUBLIC] $ fd-switch-to-dogfood
[DOGFOOD] $ fd-login-as-network-administrator
[DOGFOOD] $ # ...

fidalgo's People

Contributors

kingces95 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.