Граф коммитов

1698 Коммитов

Автор SHA1 Сообщение Дата
Victor Vazquez 02fd0811db
Increment version in changelog after release (#98)
* increment version in changelog to 0.1.0-beta.3
2022-07-13 21:53:34 +00:00
Victor Vazquez 6a1bc18f8c
update walk to walkDir API (#89) 2022-07-13 21:51:43 +00:00
Wallace Breza 13ec2b11aa
Addresses Static Web App deployment issues (#85)
Address a few different Static Web App deployment issues

- Deprecates usage of swa login. Will now manually query for deployment token and pass via --deployment-token param of swa deploy
- Defaults to default environment name regardless of azd environment name till Enhance static web apps endpoint listing with support for multiple environments. azure-dev-pr#1152 is resolved
- Adds deployment validation check to ensure environment is in "Ready" state
- Now works correctly in Linux based hosts
2022-07-13 13:43:51 -07:00
Victor Vazquez 5a2ad96e71
changelog for release (#96) 2022-07-13 12:23:33 -07:00
Daniel Jurek d524239905
Add instructions for Access is denied scenario on Windows (#78) 2022-07-13 15:45:53 +00:00
Karol Zadora-Przylecki e4f3e4f2cc
Update AI key (#82) 2022-07-12 12:35:48 -07:00
Victor Vazquez 6f08eff542
fix `disabled actions` detector (#72)
* fix disabled actions detector

* remove cspell checks for external projects

* update var creation
2022-07-12 11:59:30 -07:00
Victor Vazquez 5bbae065ec
Fix cspell from test-templates (#74)
* cspell

* run cspell on CI
2022-07-12 11:17:27 -07:00
Victor Vazquez 72167cb99a
update to run cspell for ext only (#75) 2022-07-12 17:41:58 +00:00
Daniel Jurek cb7695042f
Remove NPM instructions (#80) 2022-07-12 17:07:21 +00:00
Wei Lim 805fb400fe
Add missing newline to resource group URL printout (#49) 2022-07-12 09:07:43 -07:00
Matt Ellis 9cf0e0dff3
log.Print template contents when we fail to parse it (#69)
This should help debugging issues like #40
2022-07-12 00:59:17 -07:00
Matt Ellis 78811b097c
Fix debug message when --help is passed to CLI (#67)
* Fix debug message when `--help` is passed to CLI

We have logic very early in the startup process of `azd` to do an
initial parse of the command line arguments to see if `--debug` has
been passed (so we can set up our debugging channels to output to the
correct location).

That logic uses `pflag` to parse the command line with a very limited
set of flags (just `--debug`) with it configured to ignore all other
flags. However, pflag treats `--help` as special and when the flag is
not defined returns `ErrHelp` from `Parse` to denote that help was
requested.

Our logic would write any failure from `Parse` to the debug log, which
meant that we would end up printing something like this to stderr at
the start of the command when `--help` was passed:

```
Usage of :
      --debug
```

This change adds a `help` parameter so that we don't hit this behavior
if `pflag`.  The `--help` parameter will be interpreted correctly
later when we parse the command line "for real" using the normal cobra
logic.

* Add regression test

* Add CHANGELOG.md
2022-07-12 00:24:33 -07:00
Wallace Breza 34a4b0b982
Updates template testing script with additional options (#64)
Adds support to specify azure location/region to use (defaults to eastus2)
Adds configurable Playwright retries (defaults to 3)
Adds parallelism for azd up/down
Adds output to specify TEST_ONLY run
Adds option to specify whether local & remote cleanup should be performed
2022-07-11 17:55:54 -07:00
Wallace Breza 1362aba2a8
Adds missing WEB_URI bicep output/env variable (#68)
Adds missing WEB_URI variable that is required for local dev experience and testing.
2022-07-11 17:43:46 -07:00
Daniel Jurek c20b9fe9ca
Add container to version table (#65)
* First cut at adding container

* Improve table
2022-07-11 22:35:22 +00:00
Daniel Jurek 1d7e8755e9
Increment version after release (#57) 2022-07-11 14:51:53 -07:00
Daniel Jurek 7eae77b3a4
Increment vscode version after release (#58) 2022-07-11 14:36:59 -07:00
Wallace Breza c4e1a49ed5
Includes playwright tests in Python SWA/func template (#60)
Updates repoman config to include Playwright tests folder.
2022-07-11 14:26:01 -07:00
Wallace Breza e2dc7d1660
Updates the Playwright UI validation tests (#55)
Updates the Playwright UI validation tests.

- click() -> focus()
- fill(...) -> type(...)
- Adds extra DOM assertions
2022-07-11 14:13:50 -07:00
Daniel Jurek 4fc3800a1f
Update vscode extension link (#52) 2022-07-11 20:44:49 +00:00
Jon Gallant 76edf16f9b
Update vscode ext instructions (#2)
* Update vscode ext instructions

* Update azure-cli feature to 2.38
2022-07-11 13:41:28 -07:00
Daniel Jurek 62c419b34f
README Edits for going live (#37)
* Edits for going live

* Move uninstall instructions below install instructions
2022-07-11 20:19:54 +00:00
Daniel Jurek 15cff7dcab
Add az version guidance to issue report (#42)
* Add az version guidance to issue report

* Add az version minimum note
2022-07-11 20:19:22 +00:00
Daniel Jurek 4b105997b8
Installers: Default to using "latest" channel (#18) 2022-07-11 12:54:14 -07:00
Daniel Jurek 2ffef70f96
Set release version (#23)
* Set CLI version

* Work around hardcoded version number in tests
2022-07-11 11:10:05 -07:00
Daniel Jurek 74ba7271d7
Release day changes (#21)
* EngSys changes for release day

* unlisted -> public
2022-07-11 11:09:22 -07:00
Jon Gallant 041027da3e
Update az version to 2.38.0+ (#46) 2022-07-11 10:43:37 -07:00
Karol Zadora-Przylecki 76bb43e544
Add Python SWA template to well-known list in VS Code (#43) 2022-07-11 17:35:31 +00:00
Daniel Jurek 17408687d1
Use CDN instead of direct storage https host (#15) 2022-07-11 09:49:47 -07:00
Karol Zadora-Przylecki d85772eca6
Update VS Code changelog for initial release (#38) 2022-07-11 09:21:00 -07:00
Victor Vazquez 267fb2a189
add missing template (#35) 2022-07-11 09:00:19 -07:00
Wei Lim 35cd7a493e
Add info to user-agent when running in GitHub Actions. (#12)
This change:

- Adds a product identifier `GhActions` to user agent when the CLI is running on GitHub Actions.
- Centralizes user agent logic
- Adds running platform info `(Go <Version>; [windows|linux|openbsd|..]/<ARCH>)` to user agent
2022-07-11 08:38:10 -07:00
Jon Gallant 1eb5dbfa9d
Update workflows to use mcr (#19) 2022-07-08 17:44:26 -07:00
Matt Ellis 309af27129
Add a note to README.md for supported regions (#32)
Some of our templates use services which are not supported in all
Azure regions. Long term we hope to encode this information in a way
such that the CLI can restrict the list of locations to offer user to
pick from when they are doing a deployment, but that work is still in
progress. For now, add a note to some of our templates calling out
supported regions.

This list was generated by looking at every RP used for each template
and then fetching information from ARM to see what locations the
resources were suported in. When then intersect all these sets of
locations.

Unsurprisingly, the lists are the same between the node and python
versions of our templates.
2022-07-08 16:57:25 -07:00
Matt Ellis f68ac0ba83
Mark Daniel as an owner of the installers (#31)
He wrote them an is the expert, but due to how we have the source tree
laid out he wasn't being listed as a code-owner. Adjust things so that
he and I are the ones listed as owners for the installer.
2022-07-08 15:39:55 -07:00
Daniel Jurek 8f259a866e
Pipeline PR targeting (#20)
* Improve targeting for vscode pipeline

* Also add CLI
2022-07-08 15:39:00 -07:00
Victor Vazquez f40c0e000e
Detect `disabled GitHub Actions`. Notify and provide steps to enable then (#17)
detect disabled actions and notify user
2022-07-08 22:03:26 +00:00
Victor Vazquez f3c6daa59f
unify colors (#16)
* unify colors in terminal
2022-07-08 11:39:23 -07:00
Wei Lim 3f45f90e48
Improve `contributing.md` slightly (#13)
This change fixes typos and adds clarity
2022-07-08 09:28:15 -07:00
Wei Lim eeb4a78792
Fix error check in `rzip.CreateFromDirectory`. (#9)
The error check is incorrect: we need to check `err` first: If `err` is non-nil, `fs.FileInfo` will be `nil`
2022-07-08 09:06:47 -07:00
Karol Zadora-Przylecki 0c6289d0d3
Include version information in survey data (#14) 2022-07-08 08:45:30 -07:00
Matt Ellis f6035493c9
Print a warning when the CLI is out of date (#7)
* Print a warning when the CLI is out of date

This changes adds an update to date check to our CLI. It works by
fetching the latest version of the CLI from a well-known location and
prints a warning if it is larger. To improve user precived
performance, we run the logic to fetch the latest version in parallel
with the command the user is running and we cache the value we fetch
for 24 hours.

If the CLI is out of date, a warning like the following is printed
when the command completes:

```
warning: your version of azd is out of date, you have 0.0.1-beta.1686705 but the latest version is 0.0.1-beta.1686706

To update to the latest version, run:
powershell -c "Set-ExecutionPolicy Bypass Process -Force; irm 'https://aka.ms/install-azd.ps1' | iex"
```

When run on non windows platforms, the `bash` invocation is printed
instead.

This behavior may be disabled by setting AZD_SKIP_UPDATE_CHECK to
`true`.

* Update version URL; set User-Agent

Move to a new format for the aka.ms link for the latest version that
will give us more flexibility when we want to also include channel
information as part of the update check.

Also, set a custom User Agent as we do on other requests that we make.
2022-07-07 18:29:03 -07:00
Karol Zadora-Przylecki 0e735dfac8
Lowercase template repository URL for telemetry (#6) 2022-07-08 00:37:10 +00:00
Matt Ellis 2b665d7388
Update CONTRIBUTING.md to use a Fork Based workflow (#5)
* Update CONTRIBUTING.md to use a Fork Based workflow

We no longer need to use topic branches and should be doing fork based
workflows now.

* Exclude `NOTICE.txt` from cspell

This file is auto-generated from existing content based on all the
packages we import. There is no reason to spell check this file.
2022-07-07 14:15:45 -07:00
Matt Ellis 98a1113f9d
Publish a version.txt file to blob storage as part of the release (#4)
The CLI will use this file to determine the latest released version as
part of its up to date check.
2022-07-07 12:39:57 -07:00
Matt Ellis 390d672d24
Restore some files we lost when migrating the repository (#3)
The logic we used to migrate there repository did not copy over any of
the hidden files at the root of the repository.

This changes re-adds these missing files.
2022-07-07 12:11:05 -07:00
Daniel Jurek 3c6e5d7a9b Initial commit 2022-07-07 09:08:23 -07:00