Skip to content

Commit 84b1c31

Browse files
committed
V1 libray worker
1 parent 91494ba commit 84b1c31

File tree

718 files changed

+2647
-37076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

718 files changed

+2647
-37076
lines changed

.artifactignore

-7
This file was deleted.

.ci/e2e_integration_test/start-e2e.ps1

-102
This file was deleted.

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ omit =
4949
# Removing the imported libraries that might show up in this.
5050
*/azure/functions/*
5151
*/azure/*
52-
*/azure_functions_worker/_thirdparty/*
52+
*/azure_functions_worker_v1/_thirdparty/*

.devcontainer/Dockerfile

-21
This file was deleted.

.devcontainer/devcontainer.json

-57
This file was deleted.

.flake8

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
ignore = W503,E402,E731
77

88
exclude = .git, __pycache__, build, dist, .eggs, .github, .local, docs/,
9-
Samples, azure_functions_worker/protos/,
10-
azure_functions_worker/_thirdparty/typing_inspect.py,
11-
tests/unittests/test_typing_inspect.py,
12-
tests/unittests/broken_functions/syntax_error/main.py,
9+
Samples, azure_functions_worker_v1/protos/,
10+
azure_functions_worker_v1/utils/typing_inspect.py,
11+
tests/protos/,
1312
.env*, .vscode, venv*, *.venv*
1413

1514
max-line-length = 88

.github copy/CONTRIBUTING.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Contributing to Azure Functions Python Worker
2+
First, thank you for contributing to Azure Functions Python Worker repository!
3+
4+
## Basics
5+
If you would like to become an active contributor to this project, please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/).
6+
7+
## Table of Contents
8+
[Before starting](#before-starting)
9+
- [GitHub basics](#github-basics)
10+
- [Code of Conduct](#code-of-conduct)
11+
12+
[Making Changes](#making-changes)
13+
- [Pull Requests](#pull-requests)
14+
- [Pull Request Guidelines](#pull-request-guidelines)
15+
- [Cleaning up commits](#cleaning-up-commits)
16+
- [General guidelines](#general-guidelines)
17+
- [Testing guidelines](#testing-guidelines)
18+
19+
## Before starting
20+
21+
### GitHub basics
22+
23+
#### GitHub workflow
24+
25+
If you don't have experience with Git and GitHub, some of the terminology and process can be confusing. [Here's a guide to understanding GitHub](https://guides.github.com/introduction/flow/).
26+
27+
#### Forking the Azure/Azure-Functions-Python-Worker repository
28+
29+
If you don't have contributor [`Azure/Azure-Functions-Python-Worker`](https://github.com/Azure/azure-functions-python-worker/) repository, we ask that you fork the repository and submit your Pull Request from there. We block PRs from forks to go through E2E tests, however, we will cherry-picked PRs once they pass unit tests to validate the E2E tests. [Here's a guide to forks in GitHub](https://guides.github.com/activities/forking/).
30+
31+
### Code of Conduct
32+
33+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
34+
35+
## Making Changes
36+
37+
### Pull Requests
38+
39+
You can find all of the pull requests that have been opened in the [Pull Request](https://github.com/Azure/azure-functions-python-worker/pulls) section of the repository.
40+
41+
To open your own pull request, click [here](https://github.com/Azure/azure-functions-python-worker/compare). When creating a pull request, keep the following in mind:
42+
- Make sure you are pointing to the fork and branch that your changes were made in (if working from a different fork).
43+
- Choose the correct branch you want your pull request to be merged into.
44+
- The pull request template that is provided **should be filled out**; this is not something that should just be deleted or ignored when the pull request is created
45+
- Deleting or ignoring this template will elongate the time it takes for your pull request to be reviewed
46+
<!-- - The SLA for reviewing pull requests is **three business days** -->
47+
48+
### Pull Request Guidelines
49+
50+
A pull request template will automatically be included as a part of your PR. Please fill out the checklist as specified. Pull requests **will not be reviewed** unless they include a properly completed checklist.
51+
52+
#### Cleaning up Commits
53+
54+
If you are thinking about making a large change, **break up the change into small, logical, testable chunks, and organize your pull requests accordingly**.
55+
56+
Often when a pull request is created with a large number of files changed and/or a large number of lines of code added and/or removed, GitHub will have a difficult time opening up the changes on their site. This forces the Azure Azure-Functions-Python-Worker team to use separate software to do a code review on the pull request.
57+
58+
If you find yourself creating a pull request and are unable to see all the changes on GitHub, we recommend **splitting the pull request into multiple pull requests that are able to be reviewed on GitHub**.
59+
60+
If splitting up the pull request is not an option, we recommend **creating individual commits for different parts of the pull request, which can be reviewed individually on GitHub**.
61+
62+
For more information on cleaning up the commits in a pull request, such as how to rebase, squash, and cherry-pick, click [here](https://github.com/Azure/azure-powershell/blob/dev/documentation/cleaning-up-commits.md).
63+
64+
#### General guidelines
65+
66+
The following guidelines must be followed in **EVERY** pull request that is opened.
67+
68+
- Title of the pull request is clear and informative
69+
- There are a small number of commits that each have an informative message
70+
- A description of the changes the pull request makes is included, and a reference to the issue being resolved, if the change address any
71+
- All files have the Microsoft copyright header
72+
73+
#### Testing Guidelines
74+
75+
The following guidelines must be followed in **EVERY** pull request that is opened.
76+
77+
- Pull request includes test coverage for the included changes
78+
- Changes would not be merged until all the CI scenarios pass.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
title: "[Survey] "
2+
labels: ["Survey"]
3+
body:
4+
- type: checkboxes
5+
attributes:
6+
label: What stack do you primarily use?
7+
options:
8+
- label: Python
9+
- label: Node
10+
- label: PowerShell
11+
- label: .NET
12+
- label: Java
13+
- label: Go
14+
- label: Other (Please specify below)
15+
- type: textarea
16+
id: role
17+
attributes:
18+
label: What is your current role in which you use Azure Functions?
19+
description: Software Developer, Machine Learning Engineer, Full Stack Engineer, etc.
20+
render: bash
21+
validations:
22+
required: false
23+
- type: textarea
24+
id: scenarios
25+
attributes:
26+
label: What are the use cases and scenarios in which you use Azure Functions today?
27+
description: Describe how you are using Azure Functions, and expected end goals.
28+
render: bash
29+
validations:
30+
required: false
31+
- type: textarea
32+
id: pain-points
33+
attributes:
34+
label: What are the pain points you have experienced using Azure Functions?
35+
render: bash
36+
validations:
37+
required: false
38+
- type: textarea
39+
id: improvements
40+
attributes:
41+
label: Please share any suggestions for product improvements.
42+
render: bash
43+
validations:
44+
required: false
45+
- type: textarea
46+
id: tooling
47+
attributes:
48+
label: What developer tools do you use?
49+
description: Visual Studio Code, Command Line, etc.
50+
render: bash
51+
validations:
52+
required: false
53+
- type: checkboxes
54+
attributes:
55+
label: Would you be interested in meeting with the Azure Functions team to provide additional feedback?
56+
options:
57+
- label: "Yes"
58+
- label: "No"
59+
- type: textarea
60+
id: comments
61+
attributes:
62+
label: Please provide any other comments or feedback here, as well as your email if you indicated 'Yes' to being contacted from the Azure Functions team.
63+
render: bash
64+
validations:
65+
required: false
66+
- type: markdown
67+
attributes:
68+
value: |
69+
"Thank you for your feedback! For any specific questions or to report a bug, please create an issue [here](https://github.com/Azure/azure-functions-python-worker/issues)."

0 commit comments

Comments
 (0)