Commit Graph

528 Commits

Author SHA1 Message Date
Monika Kurovszky
f9e30ce70e SA04-008: update api-python core expected result
Change-Id: I0b9731dd79c9a04b4af6151e2f276a33c17e07b0
2020-07-03 11:19:08 +02:00
Monika Kurovszky
21c2678784 SA04-008: gnathub --dry-run without project file
A new behavior is added to --dry-run switch in
  order to be able to run it without project file
  and list GNATdashboard predefined plugins.
  The old behavior is kept unchanged.

  Adding specific test for "gnathub --dry-run"

Change-Id: I05019f8442ac84eae5420ee9cce567d86b429405
2020-06-16 16:54:54 +02:00
Monika Kurovszky
8ac7cfba76 S304-007: --targs:tool behavior change
When no switch is provided this switch will be
  ignored without raising error.
  A warning message is displayed to notify the user
  about that.

Change-Id: I3d170ad300c38c2a1d8f6fcf2ae2ef676ac95ef1
2020-06-10 18:02:00 +02:00
Monika Kurovszky
b1b5d12c9d T529-001: support spaces in scenario variable paths
* -X switch argument parsing is separately done
    to ensure a better handling for cases where the
    paths contains white spaces in folder names
  * handling white spaces for sonar-scanner command
    line execution

Change-Id: I5d4b33953dec87ea50546ef43ab82c2a63374ed1
2020-06-08 17:55:00 +02:00
Monika Kurovszky
31c9695a8e T514-002: sonar-config plugin fix for relpath issue
os.path.relpath on Windows is not returning the proper relative
  path when using a drive as start point

Change-Id: I329632c5342da353c2daf6a7c9fe983662168d21
2020-05-26 18:36:41 +02:00
Clément Fumex
0e77691e36 T511-031 use copy2 instead of GNAThub.Run with cp
Change-Id: Ide29c93c20a57e1ba0dfefa6cff305da8ab4695c
2020-05-12 16:17:46 +02:00
Monika Kurovszky
cd010777ba T429-008: sonar-project.properties update
In order to fit SonarQube 7.9LTS, add attribute
  scm.exclusions.disable=true

Change-Id: I762c47891491ba8f27b71a2bd345db796a84bacd
2020-05-12 15:32:30 +02:00
Lespinasse
698860cfef Webui: Change flask host
Change-Id: Ie577d0ed0016f4a87614adc437bde2bf6474792d
For: T423-040
2020-04-27 16:54:29 +02:00
Lespinasse
edb7e577de Put logs in verbose for html-report
Change-Id: I46e5bb35fa31656283c0a6ee1e80777ba3049dcd
For: T311-011
2020-04-16 14:37:55 +02:00
Monika Kurovszky
3a22976a0d T311-011: Non-zero error code when plugin failure
For the case that one or more plugins are failing
  during plugin-runner execution report a non-zero
  error code is returned to notify this behavior.

Change-Id: I68cb5e0404462e91940dcdb43e79b57682b96d88
2020-04-09 10:47:40 +02:00
Lespinasse
bcbf8cb6a4 Webui : cache error with chrome
- Change the get function for annotated source

Change-Id: Icf0eeed472d7b634d0eb53003fc4bea2e3adf45a
For: T316-036
2020-04-03 16:00:00 +02:00
Lespinasse
d596f25b5b Webui : Add race condition for Codepeer
- Get race condition file
	- Parse race condition file
	- Create new in annotated source tab to show race condition
	- Add sorting to race condition
	- Add scrolling to race condition

Change-Id: Ic81417cb707c1301199700bf979a18a8149864c0
For: T323-017
2020-03-25 14:30:45 +01:00
Jeanne Lespinasse
3212e6daaf Revert "Webui & GnatCoverage integration"
This reverts commit 0686d4e6a1.

Change-Id: I642cb21e062f1974bf84102a58470e149debf26a
2020-03-10 16:56:52 +01:00
Lespinasse
98d9adb55f Patch encode_message for gnatcoverage
Change-Id: I79beafc8cc7d65a58f229977d11f8b905541568b
For: SB20-012
2020-03-09 17:33:34 +01:00
Lespinasse
0686d4e6a1 Webui & GnatCoverage integration
- Fix errors when not running codepeer
	- Change default ranking for GNatcoverage
	- Add coverage status to GNATcoverage message
	- Change line background to show coverage status
	- Add coverage per file in message/project view
	- Add coverage per folder in project view
	- Add coverage per project in project view

Change-Id: I166c578dec20ec61dd88026f6fe0b641341f85ec
For: SB20-012
2020-03-05 17:13:27 +01:00
Lespinasse
555cf1f0ec WebUI & GNATcoverage integration
- Interface is working with .xcov+ output

TODO:
	- Change to xml output to get more information

Change-Id: Ibcc663f7ae0ef51d544a095662b72d27a2d58a81
For: SB20-012
2020-02-20 15:02:43 +01:00
Adrien Boulanger
04afd4a314 T212-021/T213-011: Add test
Change-Id: I0c82e44ef9a7347b1a2ed8f814ed60d6e849b452
2020-02-18 11:02:21 +01:00
Adrien Boulanger
474799203a T212-021/T213-011: Fix GNATStack plugin
- gnatstack is target agnostic => remove the target intelligence
- the parsing was failing when an entry point was containing in
its cycle a entity without locations (they were ignored: for now
add a map storing their id/name)

Change-Id: I4bd907b6d8f91ae1d2e7c84a6ab502033dc808ab
2020-02-17 15:48:40 +01:00
Monika Kurovszky
6ef2735f75 T128-034: Filter GNATcheck exempted violations
From GNATcheck report, GNAThub will filter all
  the reported issues in the exempted violations
  section

  Section title filter handled formats are:
    "2.2. EXEMPTED VIOLATIONS"
    "2. Exempted Coding Standard Violations"

  Update GNATcheck test according to the new filter

Change-Id: I56feb3850d4a2876215e7581a2bbf5452abcdfca
2020-02-07 10:28:07 +01:00
Lespinasse
104dd162ea WebIU: Add custom reviews
- Now works with review kind
	- Get custom review in .gpr file
	- Merge it with default review status

Change-Id: I48b1a589f4d7132e348bb150f33d6e59f5b768bc
For: T103-005
2020-01-21 11:23:49 +01:00
Lespinasse
aff4646d7e WebUI: Warning when Flask is running
- Now hidding the header which include the warning shown by flask

Change-Id: Ibfab04688175ac3b17edfb1fe4aca37fe878051c
For: T103-006
2020-01-08 17:23:09 +01:00
Lespinasse
1977665adf WebUI: Put version control for Codepeer
Gnathub now create a file version.txt with the codepeer version in it.
While starting the server, the codepeer-passed/ route is called
and then verify if codepeer executable exist
and if its version is the same as the one registered.
If everything is correct, return 200.
If version are not matching, return 202,
which trigger an error on the interface.

Change-Id: Ib25ac3d0fae5cd1268a879d67ca7d6bde7f57921
For: SB26-048
2020-01-08 13:00:24 +01:00
Lespinasse
3f8fc824d6 WebUI: change to flask server
- All routes from old server replicated
	- Server is working on its own

DONE:
	- Link with GNAThub endled
	- Endpoints completed
	- Check in production mode
	- Logs working fine

Change-Id: I908502a17f27287db573ecbc3174c43ab4fa1192
For: SB18-033
2019-12-12 11:58:45 +01:00
Lespinasse
e7554eda63 WebUI : Verify port given to server
- Added th rule port > 1024

Change-Id: I30b42ceedd5bd660d9f95faaf5329e608aa69c51
For: SA09-047
2019-11-05 17:49:32 +01:00
Lespinasse
8debb41612 WebUI and GNAThub : Server error
- Fix the bug with truncated logs while using GNAThub.Run()
	- Handle exception like "port already in use"
	- Fix the bug while closing/opening server too quickly

Change-Id: I9a063c60f1726302e0837423274cb259fab84795
For: RA22-034
For: S911-037
2019-10-30 12:34:00 +01:00