Comments (15)
Yes. Please see https://github.com/Azure/azure-functions-java-worker/blob/dev/appveyor.yml for reference
from azure-functions-powershell-worker.
cc: @soninaren
@tylerl0706 / @daxian-dbw - Let me know if you have any questions
from azure-functions-powershell-worker.
@pragnagopa We don't use func
CLI in our CI.
But we should write some E2E tests for PowerShell functions with the CLI (not sure how nodejs worker does E2E testing) -- is that what you are asking for in this issue?
from azure-functions-powershell-worker.
How do you run E2E tests?
from azure-functions-powershell-worker.
I don't know 😄 that's why I was asking if that's what you want for this issue. We are not using func
CLI in our CI today.
from azure-functions-powershell-worker.
Also, please see https://github.com/Azure/azure-functions-java-worker/tree/dev/endtoendtests/Azure.Functions.Java.Tests.E2E if you can just reuse that project. Ideally, I would maintain one E2E test project that can be reused across all the language workers.
from azure-functions-powershell-worker.
Great, I will take a look at the project. A quick glance tells me it's using dotnet xunit
runner, which has been deprecated recently (https://xunit.github.io/releases/2.4). You possibly will need to update it to use dotnet test
.
from azure-functions-powershell-worker.
cc: @paulbatum
Thanks I will look into it. Here is the flow E2E tests
- Add E2E tests that cover supported triggers and bindings
- Build powershell worker
- Download CLI from the URL above. CLI will be updated before every functions runtime release
- Copy powershell worker to CLI\workers directory
- Use CLI to install extensions
- Start functions host via CLI func host start
- Run tests against the localhost.
you can add these either as a nightly runs or run them as part of every commit/PR. Next steps would be
- Deploy to Azure
- Run E2E tests using URL for the deployed APP
As long as CI follows this pattern we are OK. If maintaining a single E2E test project makes sense, I will refactor the tests later.
from azure-functions-powershell-worker.
Something weird is happening with the downloaded Azure.Functions.Cli.zip
on macOS... I can't quite figure it out.
Invoke-RestMethod "https://functionsclibuilds.blob.core.windows.net/builds/2/latest/Azure.Functions.Cli.osx-x64.zip" -OutFile Azure.Functions.Cli.zip
Expand-Archive ./Azure.Functions.Cli.zip
./Azure.Functions.Cli/func
This opens the binary as a text file for me in PowerShell:
but in bash, it works once... but now I'm just getting a bunch of:
bash: ./func: Permission denied
It.. shouldn't require sudo...?
from azure-functions-powershell-worker.
chmod -x ./func
was needed 🤦♂️
from azure-functions-powershell-worker.
What's the proper scoping of this work item? What do we need to achieve for preview?
from azure-functions-powershell-worker.
We have these now for HttpTrigger. We can probably close this. Although I don't know if the expectation is having tests for every trigger... And how we'd do that (how do we trigger a blob trigger without Azure?)
@pragnagopa any thoughts?
from azure-functions-powershell-worker.
Let's sync with them on this next week.
from azure-functions-powershell-worker.
Apologies I missed last weeks ping on this issue.
Yes. We do need tests for the supported triggers. Please see Azure.Functions.Java.Tests.E2E for a sample E2E test project.
This is a requirement for any release. Without test coverage, there is a huge risk of regressions both ways
- Host breaking powershell functions
- Changes in powershell worker not compatible with host changes.
@TylerLeonhardt already added coverage for HttpTriggers. When you add support for rest of the triggers, this work item is part of development
- Add Unit tests
- Add E2E tests
from azure-functions-powershell-worker.
Talked to @paulbatum about this in the sync this week - he said that we can probably get some help setting these E2E tests up (creating the resources in Azure, supplying the subscription).
Ideally, we should be able to grab the E2E tests from Java or Node and run them with a PowerShell Function App.
cc @fabiocav
from azure-functions-powershell-worker.
Related Issues (20)
- [Linux Consumption] [Portal] Portal shows Linux Consumption as an option for Powershell 7.4 it is not supported HOT 3
- [Linux Elastic Premium] Kudu SSH appears to fail for powershell7.4 HOT 3
- Linux (Consumption) not supported in PowerShell 7.4 yet HOT 1
- Feature Request: Recursive Directory Searching for function.json HOT 1
- Az-Accounts: Issue re-emerging.. HOT 4
- Support OpenTelemetry in the PowerShell worker
- Profile.ps1 not instrumented HOT 1
- Diagram of module interaction w/ worker HOT 1
- Update PowerShell SDK for 7.4 to 7.4.2
- Update PowerShell SDK for 7.2 to 7.2.19 HOT 1
- Document OpenTelemetry support HOT 1
- Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan
- Convert pipelines to 1ES
- Fix OTel test concurrency issue
- Backport 1ES pipelines to all release branches HOT 1
- Add back E2E tests for 1ES official pipeline
- Fix failing public pipeline
- Migrate the pipeline changes to host v3 branch
- Add back E2E tests for 1ES public pipeline
- Disable auto module upgrades for 7.2 on EOL day
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-powershell-worker.