Skip to content

Commit 9eba673

Browse files
committed
add code
1 parent f3bf934 commit 9eba673

31,536 files changed

Lines changed: 11878025 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Documentation: https://docs.codecov.io/docs/codecov-yaml
2+
3+
codecov:
4+
branch: develop
5+
6+
coverage:
7+
status:
8+
project:
9+
default:
10+
branches:
11+
- develop
12+
13+
comment:
14+
layout: "reach,diff,flags,files,footer"
15+
behavior: default
16+
require_changes: no
17+
branches:
18+
- develop
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Dubbo-Admin feature request template
3+
about: If you would like to request a feature to Dubbo-Admin, please use this template.
4+
5+
---
6+
7+
- [ ] I have searched the [issues](https://github.com/apache/dubbo-admin/issues) of this repository and believe that this is not a duplicate.
8+
- [ ] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/develop/README.md) of this repository and believe that this is not a duplicate.
9+
10+
### Is your feature request related to a problem? Please describe.
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
### Describe the solution you'd like
14+
A clear and concise description of what you want to happen.
15+
16+
### Describe alternatives you've considered
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
### Additional context
20+
Add any other context or screenshots about the feature request here.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Dubbo-Admin issue report template
3+
about: If you would like to report a issue to Dubbo-Admin, please use this template.
4+
5+
---
6+
7+
- [ ] I have searched the [issues](https://github.com/apache/dubbo-admin/issues) of this repository and believe that this is not a duplicate.
8+
- [ ] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/develop/README.md) of this repository and believe that this is not a duplicate.
9+
10+
### Environment
11+
12+
* Dubbo Admin version: xxx
13+
* Registry center detail (type and version): xxx
14+
* Operating System version: xxx
15+
* Java version: xxx
16+
17+
### Steps to reproduce this issue
18+
19+
1. xxx
20+
2. xxx
21+
3. xxx
22+
23+
Pls. provide [GitHub address] to reproduce this issue.
24+
25+
### Expected Result
26+
27+
What do you expected from the above steps?
28+
29+
### Actual Result
30+
31+
What actually happens?
32+
33+
If there is an exception, please attach the exception trace:
34+
35+
```
36+
Just put your stack trace here!
37+
```
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The branch of 0.2.0 is master-0.2.0. If your PR is to solve the problem of 0.2.0, please submit the PR to it.
2+
Please do not create a Pull Request without creating an issue first.
3+
4+
## What is the purpose of the change
5+
6+
XXXXX
7+
8+
## Brief changelog
9+
10+
XX
11+
12+
## Verifying this change
13+
14+
XXXX
15+
16+
Follow this checklist to help us incorporate your contribution quickly and easily:
17+
18+
* [ ] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
19+
* [ ] Format the pull request title like `[ISSUE #123] Fix UnknownException when host config not exist`. Each commit in the pull request should have a meaningful subject line and body.
20+
* [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
21+
* [ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist.
22+
* [ ] Run `mvn clean compile --batch-mode -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true to make sure basic checks pass.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
java: [ 8, 11 ]
11+
timeout-minutes: 30
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK ${{ matrix.java }}
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: ${{ matrix.java }}
18+
- name: Build with Maven
19+
run: ./mvnw clean install --batch-mode -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true
20+
- name: Upload coverage to codecov
21+
uses: codecov/codecov-action@v1
22+
with:
23+
flags: unit
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 20
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Copy files
12+
run: cp docker/latest/** ./
13+
- name: Docker build
14+
run: docker build -t apache/dubbo-admin-integration:latest .
15+
- name: Prepare agent
16+
run: mkdir jacoco && wget https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.6/org.jacoco.agent-0.8.6-runtime.jar -O jacoco/jacoco.jar && wget https://repo1.maven.org/maven2/org/jacoco/org.jacoco.cli/0.8.6/org.jacoco.cli-0.8.6-nodeps.jar -O jacoco/jacoco-cli.jar
17+
- name: Build provider and consumer image
18+
run: ./mvnw --batch-mode --projects dubbo-admin-test --activate-profiles build-provider package && ./mvnw --batch-mode --projects dubbo-admin-test --activate-profiles build-consumer package
19+
- name: Setup xvfb
20+
run: sudo apt-get install xvfb ttf-wqy-zenhei -y && fc-cache -v
21+
- name: Run integration test
22+
run: xvfb-run --server-args="-screen 0, 1024x768x24" ./mvnw --batch-mode --projects dubbo-admin-test --activate-profiles dubbo-admin-integration-test -Ddocker.showLogs=true docker:stop docker:remove verify
23+
- name: Save failure screenshots
24+
if: ${{ failure() }}
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: failure-screenshots
28+
path: dubbo-admin-test/target/screens/
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: screenshots
32+
path: dubbo-admin-test/target/screens/
33+
- name: Set up JDK
34+
uses: actions/setup-java@v1
35+
with:
36+
java-version: 8
37+
- name: Compile server project
38+
run: ./mvnw clean package -DskipTests=true -pl dubbo-admin-server
39+
- name: Generate report
40+
run: java -jar jacoco/jacoco-cli.jar report jacoco/jacoco.exec --classfiles dubbo-admin-server/target/classes/ --sourcefiles dubbo-admin-server/src --xml jacoco/jacoco.xml
41+
- name: Upload coverage to codecov
42+
uses: codecov/codecov-action@v1
43+
with:
44+
flags: integration
45+
directory: ./jacoco
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# maven ignore
2+
target/
3+
*.jar
4+
!.mvn/wrapper/*
5+
*.war
6+
*.zip
7+
*.tar
8+
*.tar.gz
9+
.flattened-pom.xml
10+
11+
# eclipse ignore
12+
.settings/
13+
.project
14+
.classpath
15+
16+
# idea ignore
17+
.idea/
18+
*.ipr
19+
*.iml
20+
*.iws
21+
22+
# temp ignore
23+
*.log*
24+
*.cache
25+
*.diff
26+
*.patch
27+
*.tmp
28+
29+
# system ignore
30+
.DS_Store
31+
Thumbs.db
32+
33+
dubbo-admin-server/src/main/resources/public
34+
dubbo-admin-server/target
35+
dubbo-admin-ui/dist
36+
dubbo-admin-ui/node
37+
dubbo-admin-ui/node-modules
47.2 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Apache Dubbo Admin is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

0 commit comments

Comments
 (0)