Jan Kaluza
aac4227eb8
Add 'mbs-build local [[--add-local-build n:s:v], ...]' to use local builds as dependency.
2017-08-17 10:00:19 +02:00
Jan Kaluza
6a94a43ee1
Fix test_content_generator tests by ensuring that build_log is removed before running first test
2017-08-08 13:47:49 +02:00
Jan Kaluza
4bbb0cc416
Create module-build-macros component just once - do not duplicate it for each resubmition of a module.
2017-08-08 06:52:28 +02:00
Jan Kaluža
9d0528b6b7
Merge #629 Upload build logs to Koji, use .txt extension instead of .yaml by default.
2017-08-08 04:37:02 +00:00
Jan Kaluza
7d3b4f5147
Upload build logs to Koji, use .txt extension instead of .yaml by default.
2017-08-07 15:39:44 +02:00
Filip Valder
09b3f32dbb
Fix #619 : Support for module YAML file validation within a SCM repository
2017-08-07 13:10:53 +02:00
Filip Valder
7ef2975984
PEP8 fixes
2017-07-17 18:29:10 +02:00
Ralph Bean
bb56e4f057
Refactor get_build_by_artifact so that it always returns the same kind of dict.
2017-07-14 09:21:52 -04:00
Ralph Bean
d9b1576353
Tests for _get_build_by_artifact.
...
Tests for https://pagure.io/fm-orchestrator/pull-request/583
2017-07-13 14:09:37 -04:00
Ralph Bean
4c60030d31
Use a real module dist_tag here instead of module_x (for believability!)
2017-07-13 14:01:52 -04:00
Ralph Bean
ed0db4ddea
Indentation.
2017-07-13 14:01:27 -04:00
Ralph Bean
5d034185af
Remove unused bits.
2017-07-13 14:01:09 -04:00
Ralph Bean
af5460db80
Merge #604 Remove checksum comparison in CG test.
2017-07-12 18:18:18 +00:00
Ralph Bean
b3dc1bf4a9
Longer timeout on test_submit_build_resume
...
This should "fix" #568 .
2017-07-11 13:47:18 -04:00
Stanislav Ochotnicky
a6411bc6b1
Clean up logs for build tests
2017-07-11 13:28:08 -04:00
Ralph Bean
0d614e5bdc
Revert "Remove checksum comparison in CG test."
...
This reverts commit 98a1a55694 .
2017-07-11 13:27:54 -04:00
Matt Prahl
0f5bd40cb7
Merge #606 Create app_context before database session.
2017-07-11 12:46:22 +00:00
Jan Kaluža
746f284c0a
Merge #600 Include logger tests.
2017-07-11 07:55:58 +00:00
Jan Kaluza
1621c1e4fd
Create app_context before database session.
2017-07-11 09:41:55 +02:00
Ralph Bean
10bf49bffe
Use tempdir for storing logs during test.
2017-07-11 09:35:10 +02:00
Jan Kaluza
35176e903b
Include logger tests.
2017-07-11 08:31:05 +02:00
Yashvardhan Nanavati
d79a9584c7
Find module build using attributes of a component build in koji
2017-07-07 14:37:43 -04:00
Ralph Bean
98a1a55694
Remove checksum comparison in CG test.
...
The checksum of the build.log file changes every time because it is (in
part) based on the timestamp that the file was written (at the time of
the test run).
2017-07-07 14:35:08 -04:00
Ralph Bean
5ac5ab0c13
Merge #601 Add build log into koji content generator
2017-07-07 15:56:55 +00:00
mprahl
3e819abcb6
Include the query arguments in the pagination metadata
2017-07-06 09:09:17 -04:00
Stanislav Ochotnicky
40074b088e
Fix test for logging change
...
Change of configuration to enable logging by default caused the test to
fail because mocked object had no id. This change fixes the test and
sets up cleanup for logs
2017-07-04 08:51:53 +02:00
Stanislav Ochotnicky
747b60f4b4
Add build logs into the koji content generator
...
This change adds another output next to the mmd file - a build.log which
will contain builds collected during the module build
2017-07-03 13:07:43 +02:00
Jan Kaluza
a07b44411c
Set the state_reason when format_mmd raises in frontend and do not overwrite the state_reason in backend.
2017-06-06 14:49:49 +02:00
Jan Kaluza
b4c0f49e4b
Fix get_reusable_component in case when database returns components in different order than what we have in MBS.
2017-06-05 15:03:59 +02:00
Ralph Bean
2ab6193987
Rename consecutive to concurrent.
...
Fixes #574 .
2017-05-31 13:54:11 -04:00
Jan Kaluža
acc74bd6e0
Merge #565 Support 'order_by' and 'order_desc_by' in filter_module_builds(...)
2017-05-25 13:14:32 +00:00
Jan Kaluza
f27b0ddb81
Regenerate the repo when module-build-macros is reused to ensure it is in the buildroot.
2017-05-24 14:26:08 +02:00
Jan Kaluza
b082c81c20
Support 'order_by' and 'order_desc_by' in filter_module_builds(...)
2017-05-23 09:52:19 +02:00
Jan Kaluza
af2d2f8ad1
Do not reuse components when rpm macros change
2017-05-22 13:42:02 +02:00
Jan Kaluža
4593ee5d95
Merge #526 Do not tag built components if there is any failed one.
2017-05-17 09:48:05 +00:00
Stanislav Ochotnicky
5eb4c1652f
Modify content generator based on Koji dev feedback
...
- Change the type of build from modulemd to just module
- Change build output type from modulemd to file
- Provide the typeinfo also for the modulemd.yaml output
- Convert dashes to underscores for build version (i.e. mbs stream).
koji build versions can't have dashes - we can provide real value in
the extra section
- Add name, stream, version data into build extra section
- Add tool information for modulemd
- Add buildroot components from host running mbs
- Added few methods licensed under BSD 3-clause (from atomic-reactor)
2017-05-15 10:39:01 +02:00
Jan Kaluza
7d7a45f997
Do not tag built components if there is any failed one.
2017-05-12 10:39:48 +02:00
Matt Prahl
5c6a0459c9
Merge #547 Skip the batch when there are no components to build.
2017-05-11 13:58:25 +00:00
Jan Kaluža
6a7555777b
Merge #548 Delete build target when module build is complete after configurable time
2017-05-11 13:57:34 +00:00
Jan Kaluza
22758419c0
Delete build target after config.koji_target_delete_time seconds.
2017-05-11 14:43:05 +02:00
Jan Kaluža
9a4da7241d
Merge #528 Add functionality of koji content generator imports
2017-05-11 12:23:36 +00:00
Jan Kaluza
186295bf17
Skip the batch when there are no components to build.
2017-05-10 09:10:14 +02:00
Jan Kaluza
22db6bb64a
Do not recreate properties in Config class - fixes the home dir expansion
2017-05-09 14:20:06 +02:00
Ralph Bean
3f8cacd8e5
Convert all dates to ISO in the API.
...
This should fix #523 .
There, @james is right. Converting to "human" time values in an API
just makes things harder for API users. We should leave
human-conversion to real UIs (like cli tools or web UIs).
2017-05-04 13:13:50 -04:00
Stanislav Ochotnicky
9127687fee
Implement import content generator output into koji
...
This commit prepares a directory with outputs that will be uploaded to
koji (just the mmd file for now). It also adjusts koji_import to call
CGImport with the metadata and the directory to import the results.
Last step will be to call this method at the end of successful module
build
2017-05-04 15:45:46 +02:00
Stanislav Ochotnicky
bb464b80b2
Fix content generator using name instead of mmd content
...
The original variable name was confusing and caused the misuse. This has
been fixed as well
2017-05-04 15:45:45 +02:00
Stanislav Ochotnicky
acb59d23f1
Add an example mmd file into the test database
...
This will actually be used to test the content generator functionality
2017-05-04 15:45:42 +02:00
Ralph Bean
155853fa3c
Merge #522 Add Koji content generator class
2017-05-02 16:10:23 +00:00
Jan Kaluža
f441077706
Merge #515 Add config option for allowing custom scmurls
2017-05-02 12:57:48 +00:00
Jan Kaluža
85554e519a
Merge #520 Do not build module-build-macros when all the components will be reused from previous module build.
2017-05-02 10:12:50 +00:00